Changeset 5478 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2012-08-26T17:16:50+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/preferences/CachedProperty.java
r5464 r5478 12 12 private int updateCount; 13 13 14 protected CachedProperty(String key, T defaultValue,String defaultValueAsString) {15 super(key, defaultValue);14 protected CachedProperty(String key, String defaultValueAsString) { 15 super(key, null); 16 16 Main.pref.addPreferenceChangeListener(this); 17 17 this.defaultValueAsString = defaultValueAsString; … … 50 50 return updateCount; 51 51 } 52 53 @Override 54 public T getDefaultValue() { 55 return fromString(getDefaultValueAsString()); 56 } 52 57 53 58 public String getDefaultValueAsString() { -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java
r5464 r5478 49 49 * will create AudioMarkers for .wav files, ImageMarkers for .png/.jpg/.jpeg 50 50 * files, and WebMarkers for everything else. (The creation of a WebMarker will 51 * fail if there's no va ild URL in the <link> tag, so it might still make sense51 * fail if there's no valid URL in the <link> tag, so it might still make sense 52 52 * to add Makers for such waypoints at the end of the list.) 53 53 * … … 77 77 // will make gui for it so I'm keeping it here 78 78 79 private final static Map<String, TemplateEntryProperty> cache = new HashMap<String, Marker.TemplateEntryProperty>();79 private final static Map<String, TemplateEntryProperty> cache = new HashMap<String, TemplateEntryProperty>(); 80 80 81 81 // Legacy code - convert label from int to template engine expression … … 137 137 138 138 private TemplateEntryProperty(String key, String defaultValue, TemplateEntryProperty parent) throws ParseError { 139 super(key, new TemplateParser(defaultValue).parse(),defaultValue);139 super(key, defaultValue); 140 140 this.parent = parent; 141 141 updateValue(); // Needs to be called because parent wasn't know in super constructor
Note:
See TracChangeset
for help on using the changeset viewer.