- Timestamp:
- 2019-07-07T16:46:25+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r14988 r15223 304 304 * Plugin class loaders. 305 305 */ 306 private static final Map< PluginInformation, PluginClassLoader> classLoaders = new HashMap<>();306 private static final Map<String, PluginClassLoader> classLoaders = new HashMap<>(); 307 307 308 308 private static PluginDownloadTask pluginDownloadTask; … … 859 859 PluginHandler.class.getClassLoader(), 860 860 null)); 861 classLoaders.put(info , cl);861 classLoaders.put(info.name, cl); 862 862 } 863 863 864 864 // resolve dependencies 865 865 for (PluginInformation info : toLoad) { 866 PluginClassLoader cl = classLoaders.get(info );866 PluginClassLoader cl = classLoaders.get(info.name); 867 867 DEPENDENCIES: 868 868 for (String depName : info.getLocalRequiredPlugins()) { 869 869 for (PluginInformation depInfo : toLoad) { 870 870 if (isDependency(depInfo, depName)) { 871 cl.addDependency(classLoaders.get(depInfo ));871 cl.addDependency(classLoaders.get(depInfo.name)); 872 872 continue DEPENDENCIES; 873 873 } … … 888 888 for (PluginInformation info : toLoad) { 889 889 monitor.setExtraText(tr("Loading plugin ''{0}''...", info.name)); 890 loadPlugin(parent, info, classLoaders.get(info ));890 loadPlugin(parent, info, classLoaders.get(info.name)); 891 891 monitor.worked(1); 892 892 }
Note:
See TracChangeset
for help on using the changeset viewer.