Changeset 33617 in osm for applications


Ignore:
Timestamp:
2017-09-16T22:12:53+02:00 (7 years ago)
Author:
donvip
Message:

update to JOSM 12870

Location:
applications/editors/josm/plugins/opendata
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/opendata/build.xml

    r33611 r33617  
    11<?xml version="1.0" encoding="utf-8"?>
    22<project name="opendata" default="dist" basedir=".">
    3     <property name="plugin.main.version" value="12828"/>
     3    <property name="plugin.main.version" value="12870"/>
    44    <property name="plugin.author" value="Don-vip"/>
    55    <property name="plugin.class" value="org.openstreetmap.josm.plugins.opendata.OdPlugin"/>
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/OdPlugin.java

    r33613 r33617  
    4646import org.openstreetmap.josm.plugins.opendata.core.modules.ModuleInformation;
    4747import org.openstreetmap.josm.plugins.opendata.core.util.OdUtils;
     48import org.openstreetmap.josm.tools.ImageProvider;
    4849import org.openstreetmap.josm.tools.Pair;
    4950
     
    6061    public OdPlugin(PluginInformation info) {
    6162        super(info);
     63        ImageProvider.addAdditionalClassLoaders(ModuleHandler.getResourceClassLoaders());
    6264        if (instance == null) {
    6365            instance = this;
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/modules/ModuleHandler.java

    r33518 r33617  
    7272        try {
    7373            sources.add(ClassLoader.getSystemClassLoader());
    74             sources.add(org.openstreetmap.josm.gui.MainApplication.class.getClassLoader());
     74            sources.add(ModuleHandler.class.getClassLoader());
    7575        } catch (SecurityException ex) {
    7676            sources.add(ImageProvider.class.getClassLoader());
     
    285285            ClassLoader moduleClassLoader = createClassLoader(toLoad);
    286286            sources.add(0, moduleClassLoader);
     287            ImageProvider.addAdditionalClassLoader(moduleClassLoader);
    287288            monitor.setTicksCount(toLoad.size());
    288289            for (ModuleInformation info : toLoad) {
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/util/OdUtils.java

    r32790 r33617  
    1717import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1818import org.openstreetmap.josm.data.osm.Relation;
    19 import org.openstreetmap.josm.plugins.opendata.core.modules.ModuleHandler;
    2019import org.openstreetmap.josm.tools.ImageProvider;
    2120import org.openstreetmap.josm.tools.Utils;
     
    6867
    6968    public static final ImageProvider getImageProvider(String iconName, boolean optional) {
    70         return new ImageProvider(iconName).setOptional(optional).setAdditionalClassLoaders(ModuleHandler.getResourceClassLoaders());
     69        return new ImageProvider(iconName).setOptional(optional);
    7170    }
    7271
Note: See TracChangeset for help on using the changeset viewer.