Changeset 1603 in josm for trunk/src/org/openstreetmap/josm/plugins
- Timestamp:
- 2009-05-19T19:01:13+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginSelection.java
r1591 r1603 34 34 import javax.swing.JOptionPane; 35 35 import javax.swing.JPanel; 36 import javax.swing.UIManager; 36 37 import javax.swing.event.HyperlinkEvent; 37 38 import javax.swing.event.HyperlinkListener; 38 39 import javax.swing.event.HyperlinkEvent.EventType; 39 import javax.swing.UIManager;40 40 41 41 import org.openstreetmap.josm.Main; … … 135 135 if (pluginMap == null) 136 136 pluginMap = new HashMap<String, Boolean>(); 137 else 137 else { 138 138 // Keep the map in bounds; possibly slightly pointless. 139 for (final String pname : pluginMap.keySet()) 140 if (availablePlugins.get(pname) == null) pluginMap.remove(pname); 139 Set<String> pluginsToRemove = new HashSet<String>(); 140 for (final String pname : pluginMap.keySet()) { 141 if (availablePlugins.get(pname) == null) pluginsToRemove.add(pname); 142 } 143 144 for (String pname : pluginsToRemove) { 145 pluginMap.remove(pname); 146 } 147 } 141 148 142 149 pluginPanel.removeAll();
Note:
See TracChangeset
for help on using the changeset viewer.