Ignore:
Timestamp:
2010-12-16T18:20:22+01:00 (13 years ago)
Author:
bastiK
Message:

improve migration when remotecontrol plugin is removed (set remotecontol.enabled=yes) (see also #5748)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/ReadRemotePluginInformationTask.java

    r3669 r3730  
    295295    protected List<PluginInformation> filterDeprecatedPlugins(List<PluginInformation> plugins) {
    296296        List<PluginInformation> ret = new ArrayList<PluginInformation>(plugins.size());
    297         HashSet<String> deprecatedPluginNames = new HashSet<String>(PluginHandler.DEPRECATED_PLUGINS.keySet());
     297        HashSet<String> deprecatedPluginNames = new HashSet<String>();
     298        for (PluginHandler.DeprecatedPlugin p : PluginHandler.DEPRECATED_PLUGINS) {
     299            deprecatedPluginNames.add(p.name);
     300        }
    298301        for (PluginInformation plugin: plugins) {
    299302            if (deprecatedPluginNames.contains(plugin.name)) {
Note: See TracChangeset for help on using the changeset viewer.