Changeset 937 in josm for trunk/src/org
- Timestamp:
- 2008-09-09T08:28:56+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/PluginPreference.java
r936 r937 336 336 Object pd[] = pluginMap.keySet().toArray(); 337 337 Arrays.sort(pd); 338 for(Object d : pd) 339 { 340 if(pluginMap.get(d)) 338 for (Object d : pd) { 339 if (pluginMap.get(d)) 341 340 plugins += ((PluginDescription)d).name + ","; 342 341 } 343 if (plugins.endsWith(","))342 if (plugins.endsWith(",")) 344 343 plugins = plugins.substring(0, plugins.length()-1); 345 if (plugins.length() == 0)344 if (plugins.length() == 0) 346 345 plugins = null; 347 346 348 347 String oldPlugins = Main.pref.get("plugins"); 349 if(oldPlugins == null && plugins == null) 350 return; 351 if(plugins == null || oldPlugins == null || !plugins.equals(oldPlugins)) 352 { 348 if ((plugins == null && oldPlugins != null) || 349 plugins != null && !plugins.equals(oldPlugins)) { 353 350 Main.pref.put("plugins", plugins); 354 351 gui.requiresRestart = true;
Note:
See TracChangeset
for help on using the changeset viewer.