Changeset 6004 in josm


Ignore:
Timestamp:
2013-06-12T20:55:17+02:00 (7 years ago)
Author:
Don-vip
Message:

include early plugins in the plugin classloader, allowing late plugins to rely on early ones

File:
1 edited

Legend:

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

    r5987 r6004  
    482482        List<URL> allPluginLibraries = new LinkedList<URL>();
    483483        File pluginDir = Main.pref.getPluginsDirectory();
    484         for (PluginInformation info : plugins) {
     484       
     485        // Add all plugins already loaded (to include early plugins in the classloader, allowing late plugins to rely on early ones)
     486        Collection<PluginInformation> allPlugins = new HashSet<PluginInformation>(plugins);
     487        for (PluginProxy proxy : pluginList) {
     488            allPlugins.add(proxy.getPluginInformation());
     489        }
     490       
     491        for (PluginInformation info : allPlugins) {
    485492            if (info.libraries == null) {
    486493                continue;
Note: See TracChangeset for help on using the changeset viewer.