Ignore:
Timestamp:
2016-06-12T00:00:29+02:00 (8 years ago)
Author:
stoecker
Message:

see #9995, see #10684 - remove more hardcoded places of images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java

    r10332 r10356  
    299299            putValue(NAME, tr("Search"));
    300300            putValue(SHORT_DESCRIPTION,   tr("Search for objects"));
    301             putValue(SMALL_ICON, ImageProvider.get("dialogs", "search"));
     301            new ImageProvider("dialogs", "search").getResource().getImageIcon(this, true);
    302302            updateEnabledState();
    303303        }
     
    361361            putValue(NAME, tr("History"));
    362362            putValue(SHORT_DESCRIPTION, tr("Display the history of the selected objects."));
    363             putValue(SMALL_ICON, ImageProvider.get("dialogs", "history"));
     363            new ImageProvider("dialogs", "history").getResource().getImageIcon(this, true);
    364364            updateEnabledState(model.getSize());
    365365        }
     
    401401            putValue(NAME, tr("Zoom to selection"));
    402402            putValue(SHORT_DESCRIPTION, tr("Zoom to selection"));
    403             putValue(SMALL_ICON, ImageProvider.get("dialogs/autoscale", "selection"));
     403            new ImageProvider("dialogs/autoscale", "selection").getResource().getImageIcon(this, true);
    404404            updateEnabledState();
    405405        }
     
    442442            putValue(NAME, tr("Zoom to selected element(s)"));
    443443            putValue(SHORT_DESCRIPTION, tr("Zoom to selected element(s)"));
    444             putValue(SMALL_ICON, ImageProvider.get("dialogs/autoscale", "selection"));
     444            new ImageProvider("dialogs/autoscale", "selection").getResource().getImageIcon(this, true);
    445445            updateEnabledState();
    446446        }
Note: See TracChangeset for help on using the changeset viewer.