- Timestamp:
- 2010-01-15T23:23:43+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/PluginPreference.java
r2855 r2864 15 15 import java.awt.event.ComponentEvent; 16 16 import java.util.Collection; 17 import java.util.Collections; 17 18 import java.util.LinkedList; 18 19 import java.util.List; … … 255 256 return false; 256 257 if (model.isActivePluginsChanged()) { 257 Main.pref.putCollection("plugins", model.getSelectedPluginNames()); 258 LinkedList<String> l = new LinkedList<String>(model.getSelectedPluginNames()); 259 Collections.sort(l); 260 Main.pref.putCollection("plugins", l); 258 261 return true; 259 262 } -
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r2859 r2864 367 367 try { 368 368 monitor.beginTask(tr("Loading plugins ...")); 369 monitor.subTask(tr("Checking plugin preconditions...")); 369 370 List<PluginInformation> toLoad = new LinkedList<PluginInformation>(); 371 for (PluginInformation pi: plugins) { 372 if (checkLoadPreconditions(parent, plugins, pi)) { 373 toLoad.add(pi); 374 } 375 } 370 376 // sort the plugins according to their "staging" equivalence class. The 371 377 // lower the value of "stage" the earlier the plugin should be loaded. … … 381 387 } 382 388 ); 383 monitor.subTask(tr("Checking plugin preconditions..."));384 for (PluginInformation pi: plugins) {385 if (checkLoadPreconditions(parent, plugins, pi)) {386 toLoad.add(pi);387 }388 }389 389 if (toLoad.isEmpty()) 390 390 return;
Note:
See TracChangeset
for help on using the changeset viewer.