Changeset 14801 in josm for trunk/src/org
- Timestamp:
- 2019-02-23T16:52:43+01:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ConditionFactory.java
r14484 r14801 316 316 } 317 317 318 /** 319 * Determines if this condition requires an exact key match. 320 * @return {@code true} if this condition requires an exact key match. 321 * @since 14801 322 */ 323 public boolean requiresExactKeyMatch() { 324 return !Op.NEGATED_OPS.contains(op); 325 } 326 318 327 @Override 319 328 public boolean applies(Environment env) { … … 388 397 super(k, v, op, false); 389 398 this.keyPattern = Pattern.compile(k); 399 } 400 401 @Override 402 public boolean requiresExactKeyMatch() { 403 return false; 390 404 } 391 405 -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java
r14746 r14801 53 53 import org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.KeyMatchType; 54 54 import org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.KeyValueCondition; 55 import org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.Op;56 55 import org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.PseudoClassCondition; 57 56 import org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.SimpleKeyValueCondition; … … 333 332 } else if (c instanceof KeyValueCondition) { 334 333 KeyValueCondition keyValueCondition = (KeyValueCondition) c; 335 if ( !Op.NEGATED_OPS.contains(keyValueCondition.op)) {334 if (keyValueCondition.requiresExactKeyMatch()) { 336 335 key = keyValueCondition.k; 337 336 }
Note:
See TracChangeset
for help on using the changeset viewer.