Changeset 17036 in josm
- Timestamp:
- 2020-09-17T21:42:16+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/CopyCoordinatesAction.java
r16438 r17036 28 28 */ 29 29 public CopyCoordinatesAction() { 30 super(tr("Copy Coordinates"), null,30 super(tr("Copy Coordinates"), "copy", 31 31 tr("Copy coordinates of selected nodes to clipboard."), 32 32 Shortcut.registerShortcut("copy:coordinates", tr("Edit: {0}", tr("Copy Coordinates")), -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/AdvancedPreference.java
r16913 r17036 60 60 import org.openstreetmap.josm.spi.preferences.StringSetting; 61 61 import org.openstreetmap.josm.tools.GBC; 62 import org.openstreetmap.josm.tools.ImageProvider; 62 63 import org.openstreetmap.josm.tools.Logging; 63 64 import org.openstreetmap.josm.tools.Territories; … … 96 97 private static final class EditBoundariesAction extends AbstractAction { 97 98 EditBoundariesAction() { 98 super(tr("Edit boundaries") );99 super(tr("Edit boundaries"), ImageProvider.get("dialogs/edit", ImageProvider.ImageSizes.MENU)); 99 100 } 100 101 … … 111 112 private final class ResetPreferencesAction extends AbstractAction { 112 113 ResetPreferencesAction() { 113 super(tr("Reset preferences") );114 super(tr("Reset preferences"), ImageProvider.get("undo", ImageProvider.ImageSizes.MENU)); 114 115 } 115 116 … … 201 202 scroll.setPreferredSize(new Dimension(400, 200)); 202 203 203 JButton add = new JButton(tr("Add") );204 JButton add = new JButton(tr("Add"), ImageProvider.get("dialogs/add", ImageProvider.ImageSizes.SMALLICON)); 204 205 p.add(Box.createHorizontalGlue(), GBC.std().fill(GBC.HORIZONTAL)); 205 206 p.add(add, GBC.std().insets(0, 5, 0, 0)); … … 213 214 }); 214 215 215 JButton edit = new JButton(tr("Edit") );216 JButton edit = new JButton(tr("Edit"), ImageProvider.get("dialogs/edit", ImageProvider.ImageSizes.SMALLICON)); 216 217 p.add(edit, GBC.std().insets(5, 5, 5, 0)); 217 218 edit.addActionListener(e -> { … … 221 222 table.getSelectionModel().addListSelectionListener(event -> edit.setEnabled(table.getSelectedRowCount() == 1)); 222 223 223 JButton reset = new JButton(tr("Reset") );224 JButton reset = new JButton(tr("Reset"), ImageProvider.get("undo", ImageProvider.ImageSizes.SMALLICON)); 224 225 p.add(reset, GBC.std().insets(0, 5, 0, 0)); 225 226 reset.addActionListener(e -> table.resetPreferences(gui)); 226 227 table.getSelectionModel().addListSelectionListener(event -> reset.setEnabled(table.getSelectedRowCount() > 0)); 227 228 228 JButton read = new JButton(tr("Read from file") );229 JButton read = new JButton(tr("Read from file"), ImageProvider.get("open", ImageProvider.ImageSizes.SMALLICON)); 229 230 p.add(read, GBC.std().insets(5, 5, 0, 0)); 230 231 read.addActionListener(e -> readPreferencesFromXML()); 231 232 232 JButton export = new JButton(tr("Export selected items") );233 JButton export = new JButton(tr("Export selected items"), ImageProvider.get("save", ImageProvider.ImageSizes.SMALLICON)); 233 234 p.add(export, GBC.std().insets(5, 5, 0, 0)); 234 235 export.addActionListener(e -> exportSelectedToXML()); … … 408 409 private JMenu getProfileMenu() { 409 410 final JMenu p = new JMenu(tr("Load profile")); 411 p.setIcon(ImageProvider.get("open", ImageProvider.ImageSizes.MENU)); 410 412 p.addMenuListener(new MenuListener() { 411 413 @Override -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/ExportProfileAction.java
r16438 r17036 24 24 import org.openstreetmap.josm.spi.preferences.Setting; 25 25 import org.openstreetmap.josm.tools.Utils; 26 import org.openstreetmap.josm.tools.ImageProvider; 26 27 27 28 /** … … 41 42 public ExportProfileAction(Preferences prefs, String schemaKey, String prefPattern) { 42 43 super(tr("Save {0} profile", tr(schemaKey))); 44 new ImageProvider("save").getResource().attachImageIcon(this, true); 43 45 this.prefs = prefs; 44 46 this.prefPattern = prefPattern; -
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginPreference.java
r16799 r17036 491 491 putValue(NAME, tr("Load from list...")); 492 492 putValue(SHORT_DESCRIPTION, tr("Load plugins from a list of plugins")); 493 new ImageProvider("misc/statusreport").getResource().attachImageIcon(this); 493 494 } 494 495
Note:
See TracChangeset
for help on using the changeset viewer.