Changeset 8710 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2015-09-01T20:34:28+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/tagging
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
r8510 r8710 153 153 /** 154 154 * Called from the XML parser to set the icon. 155 * Th istask is performed in the background in order to speedup startup.155 * The loading task is performed in the background in order to speedup startup. 156 156 */ 157 157 public void setIcon(final String iconName) { 158 158 this.iconName = iconName; 159 if (!TaggingPresetReader.isLoadIcons()) { 160 return; 161 } 159 162 File arch = TaggingPresetReader.getZipIcons(); 160 163 final Collection<String> s = Main.pref.getCollection("taggingpreset.icon.sources", null); -
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetItems.java
r8674 r8710 1465 1465 1466 1466 public static Set<TaggingPresetType> getType(String types) throws SAXException { 1467 if (types == null || types.isEmpty()) { 1468 throw new SAXException(tr("Unknown type: {0}", types)); 1469 } 1467 1470 if (TYPE_CACHE.containsKey(types)) 1468 1471 return TYPE_CACHE.get(types); -
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetReader.java
r8540 r8710 51 51 52 52 private static volatile File zipIcons = null; 53 private static volatile boolean loadIcons = true; 53 54 54 55 /** … … 388 389 return zipIcons; 389 390 } 391 392 /** 393 * Returns true if icon images should be loaded. 394 */ 395 public static boolean isLoadIcons() { 396 return loadIcons; 397 } 398 399 /** 400 * Sets whether icon images should be loaded. 401 */ 402 public static void setLoadIcons(boolean loadIcons) { 403 TaggingPresetReader.loadIcons = loadIcons; 404 } 390 405 }
Note:
See TracChangeset
for help on using the changeset viewer.