Ignore:
Timestamp:
2011-12-27T16:11:03+01:00 (12 years ago)
Author:
bastiK
Message:

use builder pattern for ImageProvider (see #7192)

File:
1 edited

Legend:

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

    r4310 r4721  
    191191        if (iconPath != null && file != null) {
    192192            // extract icon from the plugin jar file
    193             icon = ImageProvider.getIfAvailable(null, null, null, iconPath, file);
     193            icon = new ImageProvider(iconPath).setArchive(file).setMaxWidth(24).setMaxHeight(24).setOptional(true).get();
    194194        }
    195195        if(oldcheck && mainversion > Version.getInstance().getVersion())
Note: See TracChangeset for help on using the changeset viewer.