Changeset 10482 in josm for trunk/src/org
- Timestamp:
- 2016-06-24T22:16:43+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/SideButton.java
r10428 r10482 42 42 setIcon(icon.getImageIconBounded( 43 43 ImageProvider.ImageSizes.SIDEBUTTON.getImageDimension())); 44 } else { /* TODO: remove when calling code is fixed, replace by exception */44 } else if(getIcon() != null) { /* TODO: remove when calling code is fixed, replace by exception */ 45 45 Main.warn("Old style SideButton usage for action " + action); 46 46 fixIcon(action); -
trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java
r10293 r10482 896 896 class LaunchFileChooserAction extends AbstractAction { 897 897 LaunchFileChooserAction() { 898 putValue(SMALL_ICON, ImageProvider.get("open"));898 new ImageProvider("open").getResource().attachImageIcon(this); 899 899 putValue(SHORT_DESCRIPTION, tr("Launch a file chooser to select a file")); 900 900 } … … 947 947 putValue(NAME, tr("New")); 948 948 putValue(SHORT_DESCRIPTION, getStr(I18nString.NEW_SOURCE_ENTRY_TOOLTIP)); 949 putValue(SMALL_ICON, ImageProvider.get("dialogs", "add"));949 new ImageProvider("dialogs", "add").getResource().attachImageIcon(this); 950 950 } 951 951 … … 977 977 putValue(NAME, tr("Remove")); 978 978 putValue(SHORT_DESCRIPTION, getStr(I18nString.REMOVE_SOURCE_TOOLTIP)); 979 putValue(SMALL_ICON, ImageProvider.get("dialogs", "delete"));979 new ImageProvider("dialogs", "delete").getResource().attachImageIcon(this); 980 980 updateEnabledState(); 981 981 } … … 1000 1000 putValue(NAME, tr("Edit")); 1001 1001 putValue(SHORT_DESCRIPTION, getStr(I18nString.EDIT_SOURCE_TOOLTIP)); 1002 putValue(SMALL_ICON, ImageProvider.get("dialogs", "edit"));1002 new ImageProvider("dialogs", "edit").getResource().attachImageIcon(this); 1003 1003 updateEnabledState(); 1004 1004 } … … 1074 1074 ActivateSourcesAction() { 1075 1075 putValue(SHORT_DESCRIPTION, getStr(I18nString.ACTIVATE_TOOLTIP)); 1076 putValue(SMALL_ICON, ImageProvider.get("preferences", "activate-right"));1076 new ImageProvider("preferences", "activate-right").getResource().attachImageIcon(this); 1077 1077 updateEnabledState(); 1078 1078 } … … 1128 1128 putValue(NAME, tr("Reset")); 1129 1129 putValue(SHORT_DESCRIPTION, tr("Reset to default")); 1130 putValue(SMALL_ICON, ImageProvider.get("preferences", "reset"));1130 new ImageProvider("preferences", "reset").getResource().attachImageIcon(this); 1131 1131 } 1132 1132 … … 1144 1144 putValue(NAME, tr("Reload")); 1145 1145 putValue(SHORT_DESCRIPTION, tr(getStr(I18nString.RELOAD_ALL_AVAILABLE), url)); 1146 putValue(SMALL_ICON, ImageProvider.get("dialogs", "refresh"));1146 new ImageProvider("dialogs", "refresh").getResource().attachImageIcon(this); 1147 1147 this.url = url; 1148 1148 this.sourceProviders = sourceProviders; … … 1262 1262 putValue(NAME, tr("New")); 1263 1263 putValue(SHORT_DESCRIPTION, tr("Add a new icon path")); 1264 putValue(SMALL_ICON, ImageProvider.get("dialogs", "add"));1264 new ImageProvider("dialogs", "add").getResource().attachImageIcon(this); 1265 1265 } 1266 1266 … … 1276 1276 putValue(NAME, tr("Remove")); 1277 1277 putValue(SHORT_DESCRIPTION, tr("Remove the selected icon paths")); 1278 putValue(SMALL_ICON, ImageProvider.get("dialogs", "delete"));1278 new ImageProvider("dialogs", "delete").getResource().attachImageIcon(this); 1279 1279 updateEnabledState(); 1280 1280 } … … 1299 1299 putValue(NAME, tr("Edit")); 1300 1300 putValue(SHORT_DESCRIPTION, tr("Edit the selected icon path")); 1301 putValue(SMALL_ICON, ImageProvider.get("dialogs", "edit"));1301 new ImageProvider("dialogs", "edit").getResource().attachImageIcon(this); 1302 1302 updateEnabledState(); 1303 1303 } -
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginPreference.java
r10378 r10482 347 347 putValue(NAME, tr("Download list")); 348 348 putValue(SHORT_DESCRIPTION, tr("Download the list of available plugins")); 349 putValue(SMALL_ICON, ImageProvider.get("download"));349 new ImageProvider("download").getResource().attachImageIcon(this); 350 350 } 351 351 … … 384 384 putValue(NAME, tr("Update plugins")); 385 385 putValue(SHORT_DESCRIPTION, tr("Update the selected plugins")); 386 putValue(SMALL_ICON, ImageProvider.get("dialogs", "refresh"));386 new ImageProvider("dialogs", "refresh").getResource().attachImageIcon(this); 387 387 } 388 388 … … 486 486 putValue(NAME, tr("Configure sites...")); 487 487 putValue(SHORT_DESCRIPTION, tr("Configure the list of sites where plugins are downloaded from")); 488 putValue(SMALL_ICON, ImageProvider.get("dialogs", "settings"));488 new ImageProvider("dialogs", "settings").getResource().attachImageIcon(this); 489 489 } 490 490
Note:
See TracChangeset
for help on using the changeset viewer.