Changeset 27675 in osm for applications/editors


Ignore:
Timestamp:
2012-02-01T16:59:09+01:00 (13 years ago)
Author:
stoecker
Message:

fix deprecations

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

Legend:

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

    r26990 r27675  
    3030    <property name="commit.message" value="preset maintenance (Fahrradstraße)"/>
    3131    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    32     <property name="plugin.main.version" value="4549"/>
     32    <property name="plugin.main.version" value="4721"/>
    3333
    3434    <!--
  • applications/editors/josm/plugins/roadsigns/src/org/openstreetmap/josm/plugins/roadsigns/Sign.java

    r22420 r27675  
    8282    public ImageIcon getIcon() {
    8383        if (icon == null) {
    84             icon = ImageProvider.getIfAvailable(RoadSignsPlugin.iconDirs, "plugin.sign."+id, null, iconURL, null);
     84            icon = new ImageProvider(iconURL).setDirs(RoadSignsPlugin.iconDirs).setId("plugin.sign."+id).setOptional(true).get();
    8585        }
    8686        return icon;
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/LaunchAction.java

    r27576 r27675  
    2828                Shortcut.registerShortcut("edit:launchtageditor", tr("Launches the tag editor dialog"),
    2929                        KeyEvent.VK_T,Shortcut.GROUP_EDIT)
    30                 ,true);
     30                , true, "tageditor/launch", true);
    3131
    3232        DataSet.addSelectionListener(this);
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/preset/AbstractNameIconProvider.java

    r23189 r27675  
    3535   
    3636    public Icon getIcon() {
    37         if (icon == null) {
     37        if (icon == null && getIconName() != null) {
    3838            Collection<String> s = Main.pref.getCollection("taggingpreset.icon.sources", null);
    39             icon = ImageProvider.getIfAvailable(s, "presets", null, getIconName(), zipIconArchive);
    40             if (icon == null) return null;
    41             Image i = icon.getImage().getScaledInstance(16, 16, Image.SCALE_DEFAULT);
    42             icon = new ImageIcon(i);
     39            icon = new ImageProvider(getIconName()).setDirs(s).setId("presets").setArchive(zipIconArchive).setOptional(true)
     40            .setMaxWidth(16).setMaxHeight(16).get();
    4341        }
    4442        return icon;
Note: See TracChangeset for help on using the changeset viewer.