Changeset 3106 in josm for trunk/src/org/openstreetmap/josm/plugins
- Timestamp:
- 2010-03-10T18:51:45+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r3090 r3106 650 650 // filter plugins which actually have to be updated 651 651 // 652 Iterator<PluginInformation> it = plugins.iterator(); 653 while(it.hasNext()) { 654 PluginInformation pi = it.next(); 655 if (!pi.isUpdateRequired()) { 656 it.remove(); 652 Collection<PluginInformation> pluginsToUpdate = new ArrayList<PluginInformation>(); 653 for(PluginInformation pi: plugins) { 654 if (pi.isUpdateRequired()) { 655 pluginsToUpdate.add(pi); 657 656 } 658 657 } 659 658 660 if (!plugins .isEmpty()) {659 if (!pluginsToUpdate.isEmpty()) { 661 660 // try to update the locally installed plugins 662 661 // 663 662 PluginDownloadTask task2 = new PluginDownloadTask( 664 663 monitor.createSubTaskMonitor(1,false), 665 plugins ,664 pluginsToUpdate, 666 665 tr("Update plugins") 667 666 ); … … 672 671 } catch(ExecutionException e) { 673 672 e.printStackTrace(); 674 alertFailedPluginUpdate(parent, plugins );673 alertFailedPluginUpdate(parent, pluginsToUpdate); 675 674 return; 676 675 } catch(InterruptedException e) { 677 676 e.printStackTrace(); 678 alertFailedPluginUpdate(parent, plugins );677 alertFailedPluginUpdate(parent, pluginsToUpdate); 679 678 return; 680 679 }
Note:
See TracChangeset
for help on using the changeset viewer.