Changeset 5342 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Instruction.java
- Timestamp:
- 2012-07-15T14:59:10+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Instruction.java
r4191 r5342 9 9 import org.openstreetmap.josm.gui.mappaint.MapPaintStyles; 10 10 import org.openstreetmap.josm.gui.mappaint.MapPaintStyles.IconReference; 11 import org.openstreetmap.josm.gui.mappaint.StyleKeys; 11 12 12 abstract public class Instruction {13 abstract public class Instruction implements StyleKeys { 13 14 14 15 public abstract void execute(Environment env); … … 35 36 if (val instanceof Expression.LiteralExpression) { 36 37 Object litValue = ((Expression.LiteralExpression) val).evaluate(null); 37 if (key.equals( "text")) {38 if (key.equals(TEXT)) { 38 39 /* Special case for declaration 'text: ...' 39 40 * … … 72 73 value = val; 73 74 } 74 if (key.equals( "icon-image") || key.equals("fill-image") || key.equals("pattern-image")) {75 if (key.equals(ICON_IMAGE) || key.equals(FILL_IMAGE) || key.equals("pattern-image")) { 75 76 if (value instanceof String) { 76 77 value = new IconReference((String) value, env.source);
Note:
See TracChangeset
for help on using the changeset viewer.