Changeset 5115 in josm
- Timestamp:
- 2012-03-23T10:06:14+01:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java
r5114 r5115 310 310 311 311 public static void pluginOperation(String install, String uninstall, String delete) { 312 final List<String> installList = Arrays.asList(install.toLowerCase().split(";")); 313 final List<String> removeList = Arrays.asList(uninstall.toLowerCase().split(";")); 314 final List<String> deleteList = Arrays.asList(delete.toLowerCase().split(";")); 312 final List<String> installList = new ArrayList<String>(); 313 final List<String> removeList = new ArrayList<String>(); 314 final List<String> deleteList = new ArrayList<String>(); 315 Collections.addAll(installList, install.toLowerCase().split(";")); 316 Collections.addAll(removeList, uninstall.toLowerCase().split(";")); 317 Collections.addAll(deleteList, delete.toLowerCase().split(";")); 318 installList.remove("");removeList.remove("");deleteList.remove(""); 319 320 if (!installList.isEmpty()) { 321 log("Plugins install: "+installList); 322 } 323 if (!removeList.isEmpty()) { 324 log("Plugins turn off: "+removeList); 325 } 326 if (!deleteList.isEmpty()) { 327 log("Plugins delete: "+deleteList); 328 } 315 329 316 330 final ReadLocalPluginInformationTask task = new ReadLocalPluginInformationTask(); … … 319 333 if (task.isCanceled()) return; 320 334 synchronized (CustomConfigurator.class) { 321 try { // proceed only after ll other tasks were finished335 try { // proceed only after all other tasks were finished 322 336 while (busy) CustomConfigurator.class.wait(); 323 337 } catch (InterruptedException ex) { } … … 351 365 new File(Main.pref.getPluginsDirectory(),pi.name+".jar").deleteOnExit(); 352 366 } 367 System.out.println(pls); 353 368 Main.pref.putCollection("plugins",pls); 354 369 } … … 576 591 String uninstall = elem.getAttribute("remove"); 577 592 String delete = elem.getAttribute("delete"); 578 log("PLUGIN: install %s, remove %s, delete %s", install, uninstall, delete);579 593 pluginOperation(install, uninstall, delete); 580 594 } -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/AdvancedPreference.java
r5114 r5115 302 302 if (tmpPrefs != Main.pref) { 303 303 loaded = tmpPrefs.getAllSettings(); 304 // plugins preference keys may be changed directly later, after plugins are downloaded 305 // so we do not want to show it in the table as "changed" now 306 loaded.put("plugins", orig.get("plugins")); 304 307 } else { 305 308 loaded = orig;
Note:
See TracChangeset
for help on using the changeset viewer.