Changeset 14395 in josm for trunk/src/org
- Timestamp:
- 2018-11-01T15:11:16+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r14394 r14395 850 850 for (String depName : info.getLocalRequiredPlugins()) { 851 851 for (PluginInformation depInfo : toLoad) { 852 if ( depInfo.getName().equals(depName)) {852 if (isDependency(depInfo, depName)) { 853 853 cl.addDependency(classLoaders.get(depInfo)); 854 854 continue DEPENDENCIES; … … 856 856 } 857 857 for (PluginProxy proxy : pluginList) { 858 if ( proxy.getPluginInformation().getName().equals(depName)) {858 if (isDependency(proxy.getPluginInformation(), depName)) { 859 859 cl.addDependency(proxy.getClassLoader()); 860 860 continue DEPENDENCIES; … … 876 876 monitor.finishTask(); 877 877 } 878 } 879 880 private static boolean isDependency(PluginInformation pi, String depName) { 881 return depName.equals(pi.getName()) || depName.equals(pi.provides); 878 882 } 879 883
Note:
See TracChangeset
for help on using the changeset viewer.