Ignore:
Timestamp:
2012-03-09T00:50:20+01:00 (12 years ago)
Author:
donvip
Message:

Update to JOSM 5056

Location:
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/layers/OdDataLayer.java

    r28000 r28017  
    6565       
    6666    @Override public Icon getBaseIcon() {
    67         return new ImageProvider(handler != null ? handler.getDataLayerIconName() : ICON_CORE_16).get(ModuleHandler.getResourceClassLoaders());
     67        return new ImageProvider(handler != null ? handler.getDataLayerIconName() : ICON_CORE_16).setAdditionalClassLoaders(ModuleHandler.getResourceClassLoaders()).get();
    6868    }
    6969
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/modules/ModuleInformation.java

    r28000 r28017  
    157157    }
    158158   
    159     private static final ImageIcon extractIcon(String iconPath, File jarFile, boolean warn) {
    160         return new ImageProvider(iconPath).setArchive(jarFile).setMaxWidth(24).setMaxHeight(24).setOptional(true).get(warn);
     159    private static final ImageIcon extractIcon(String iconPath, File jarFile, boolean suppressWarnings) {
     160        return new ImageProvider(iconPath).setArchive(jarFile).setMaxWidth(24).setMaxHeight(24).setOptional(true).setSuppressWarnings(suppressWarnings).get();
    161161    }
    162162
     
    193193        if (iconPath != null && file != null) {
    194194            // extract icon from the module jar file
    195             icon = extractIcon(iconPath, file, false);
     195            icon = extractIcon(iconPath, file, true);
    196196            // if not found, extract icon from the plugin jar file
    197197            if (icon == null) {
Note: See TracChangeset for help on using the changeset viewer.