Changeset 7509 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSetting.java
- Timestamp:
- 2014-09-07T16:33:52+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSetting.java
r7450 r7509 12 12 /** 13 13 * Setting to customize a MapPaint style. 14 * 15 * Can be changed by the user in the right click menu of the mappaint style 14 * 15 * Can be changed by the user in the right click menu of the mappaint style 16 16 * dialog. 17 * 17 * 18 18 * Defined in the MapCSS style, e.g. 19 19 * <pre> … … 23 23 * default: true; 24 24 * } 25 * 25 * 26 26 * way[highway][setting("highway_casing")] { 27 27 * casing-width: 2; … … 33 33 34 34 void addMenuEntry(JMenu menu); 35 35 36 36 Object getValue(); 37 37 38 38 /** 39 39 * A style setting for boolean value (yes / no). … … 71 71 menu.add(item); 72 72 } 73 73 74 74 public static BooleanStyleSetting create(Cascade c, StyleSource parentStyle, String key) { 75 75 String label = c.get("label", null, String.class); … … 83 83 return null; 84 84 } 85 String prefKey = parentStyle.url + ":boolean:" + key; 85 String prefKey = parentStyle.url + ":boolean:" + key; 86 86 return new BooleanStyleSetting(parentStyle, prefKey, label, def); 87 87 } … … 93 93 return Boolean.parseBoolean(val); 94 94 } 95 95 96 96 } 97 97 }
Note:
See TracChangeset
for help on using the changeset viewer.