Changeset 6687 in josm for trunk/src/org
- Timestamp:
- 2014-01-15T01:33:11+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Condition.java
r6645 r6687 9 9 10 10 import org.openstreetmap.josm.data.osm.Node; 11 import org.openstreetmap.josm.data.osm.OsmPrimitive; 11 12 import org.openstreetmap.josm.data.osm.Relation; 12 13 import org.openstreetmap.josm.data.osm.Tag; … … 347 348 348 349 public boolean appliesImpl(Environment e) { 349 if ( equal(id, "closed")) {350 if ("closed".equals(id)) { 350 351 if (e.osm instanceof Way && ((Way) e.osm).isClosed()) 351 352 return true; … … 353 354 return true; 354 355 return false; 355 } else if ( equal(id, "modified")) {356 } else if ("modified".equals(id)) { 356 357 return e.osm.isModified() || e.osm.isNewOrUndeleted(); 357 } else if ( equal(id, "new")) {358 } else if ("new".equals(id)) { 358 359 return e.osm.isNew(); 359 } else if ( equal(id, "connection") && (e.osm instanceof Node)) {360 } else if ("connection".equals(id) && (e.osm instanceof Node)) { 360 361 return ((Node) e.osm).isConnectionNode(); 361 } else if ( equal(id, "tagged")) {362 } else if ("tagged".equals(id)) { 362 363 return e.osm.isTagged(); 363 364 } else if ("sameTags".equals(id)) { … … 365 366 } else if ("areaStyle".equals(id)) { 366 367 return ElemStyles.hasAreaElemStyle(e.osm, false); 368 } else if ("unconnected".equals(id) && (e.osm instanceof Node)) { 369 return OsmPrimitive.getFilteredList(e.osm.getReferrers(), Way.class).isEmpty(); 367 370 } 368 371 return true;
Note:
See TracChangeset
for help on using the changeset viewer.