Changeset 10781 in josm for trunk/src/org/openstreetmap/josm/plugins
- Timestamp:
- 2016-08-11T15:26:20+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r10768 r10781 67 67 import org.openstreetmap.josm.tools.I18n; 68 68 import org.openstreetmap.josm.tools.ImageProvider; 69 import org.openstreetmap.josm.tools.SubclassFilteredCollection; 69 70 import org.openstreetmap.josm.tools.Utils; 70 71 … … 986 987 // If only some plugins have to be updated, filter the list 987 988 if (pluginsWanted != null && !pluginsWanted.isEmpty()) { 988 for (Iterator<PluginInformation> it = plugins.iterator(); it.hasNext();) { 989 PluginInformation pi = it.next(); 990 boolean found = false; 991 for (PluginInformation piw : pluginsWanted) { 992 if (pi.name.equals(piw.name)) { 993 found = true; 994 break; 995 } 996 } 997 if (!found) { 998 it.remove(); 999 } 1000 } 989 final Collection<String> pluginsWantedName = Utils.transform(pluginsWanted, piw -> piw.name); 990 plugins = SubclassFilteredCollection.filter(plugins, pi -> pluginsWantedName.contains(pi.name)); 1001 991 } 1002 992 } catch (RuntimeException e) {
Note: See TracChangeset
for help on using the changeset viewer.