Changeset 8017 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferencesModel.java
- Timestamp:
- 2015-02-09T08:43:18+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferencesModel.java
r7005 r8017 25 25 */ 26 26 public class PluginPreferencesModel extends Observable { 27 // remember the initial list of active plugins 28 private final Set<String> currentActivePlugins; 27 29 private final List<PluginInformation> availablePlugins = new ArrayList<>(); 30 private String filterExpression; 28 31 private final List<PluginInformation> displayedPlugins = new ArrayList<>(); 29 32 private final Map<PluginInformation, Boolean> selectedPluginsMap = new HashMap<>(); 33 // plugins that still require an update/download 30 34 private Set<String> pendingDownloads = new HashSet<>(); 31 private String filterExpression;32 private Set<String> currentActivePlugins;33 35 34 36 /** … … 197 199 PluginInformation pi = getPluginInformation(name); 198 200 if (pi != null) { 199 selectedPluginsMap.put(pi, selected);201 selectedPluginsMap.put(pi, selected); 200 202 if (pi.isUpdateRequired()) { 201 203 pendingDownloads.add(pi.name); … … 213 215 * @param plugins the list of plugins to clear for a pending download 214 216 */ 215 public void clearPendingPlugins(Collection<PluginInformation> plugins) {217 public void clearPendingPlugins(Collection<PluginInformation> plugins) { 216 218 if (plugins == null || plugins.isEmpty()) return; 217 for (PluginInformation pi: plugins) {219 for (PluginInformation pi: plugins) { 218 220 pendingDownloads.remove(pi.name); 219 221 }
Note:
See TracChangeset
for help on using the changeset viewer.