Changeset 8742 in josm for trunk/src/org
- Timestamp:
- 2015-09-10T08:54:25+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
r8740 r8742 31 31 * 32 32 * @author Michael Zangl 33 * @since 874 033 * @since 8742 34 34 */ 35 35 public interface KeyValueVisitor { … … 38 38 * This method gets called for every tag received. 39 39 * 40 * @param primitive This primitive 40 41 * @param key The key 41 42 * @param value The value 42 43 */ 43 void visitKeyValue( String key, String value);44 void visitKeyValue(AbstractPrimitive primitive, String key, String value); 44 45 } 45 46 … … 514 515 * @param visitor The visitor to call. 515 516 * @see #getKeys() 516 * @since 874 0517 * @since 8742 517 518 */ 518 519 public void visitKeys(KeyValueVisitor visitor) { … … 520 521 if (keys != null) { 521 522 for (int i = 0; i < keys.length; i += 2) { 522 visitor.visitKeyValue( keys[i], keys[i + 1]);523 visitor.visitKeyValue(this, keys[i], keys[i + 1]); 523 524 } 524 525 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java
r8740 r8742 30 30 import org.openstreetmap.josm.Main; 31 31 import org.openstreetmap.josm.data.Version; 32 import org.openstreetmap.josm.data.osm.AbstractPrimitive; 32 33 import org.openstreetmap.josm.data.osm.AbstractPrimitive.KeyValueVisitor; 33 34 import org.openstreetmap.josm.data.osm.Node; … … 172 173 173 174 @Override 174 public void visitKeyValue( String key, String value) {175 public void visitKeyValue(AbstractPrimitive p, String key, String value) { 175 176 MapCSSKeyRules v = index.get(key); 176 177 if (v != null) {
Note:
See TracChangeset
for help on using the changeset viewer.