Ticket #18638: 18638.shortcuts_names.patch
File 18638.shortcuts_names.patch, 2.8 KB (added by , 4 years ago) |
---|
-
src/org/openstreetmap/josm/gui/dialogs/layer/CycleLayerDownAction.java
27 27 public class CycleLayerDownAction extends JosmAction { 28 28 private static final long serialVersionUID = 1L; 29 29 private static final Shortcut cycleDown = 30 Shortcut.registerShortcut("core:cyclelayerdown", tr("Cycle layer sdown"), KeyEvent.VK_CLOSE_BRACKET, Shortcut.SHIFT);30 Shortcut.registerShortcut("core:cyclelayerdown", tr("Cycle layer down"), KeyEvent.VK_CLOSE_BRACKET, Shortcut.SHIFT); 31 31 32 32 /** 33 33 * Create a CycleLayerDownAction that cycles through layers that are in the model 34 34 */ 35 35 public CycleLayerDownAction() { 36 super(tr("Cycle layer s"), "dialogs/next", tr("Cycle through layers"), cycleDown, true, "cycle-layer", false);37 new ImageProvider("dialogs", " next").getResource().attachImageIcon(this, true);36 super(tr("Cycle layer down"), "dialogs/previous", tr("Cycle through data layers in a downward direction"), cycleDown, true, "cycle-layer-down", false); 37 new ImageProvider("dialogs", "previous").getResource().attachImageIcon(this, true); 38 38 putValue(SHORT_DESCRIPTION, tr("Cycle through visible layers.")); 39 39 putValue(NAME, tr("Cycle layers")); 40 40 } -
src/org/openstreetmap/josm/gui/dialogs/layer/CycleLayerUpAction.java
25 25 public class CycleLayerUpAction extends JosmAction { 26 26 private static final long serialVersionUID = 1L; 27 27 private static final Shortcut cycleUp = 28 Shortcut.registerShortcut("core:cyclelayerup", tr("Cycle layer sup"), KeyEvent.VK_OPEN_BRACKET, Shortcut.SHIFT);28 Shortcut.registerShortcut("core:cyclelayerup", tr("Cycle layer up"), KeyEvent.VK_OPEN_BRACKET, Shortcut.SHIFT); 29 29 30 30 /** 31 31 * Create a CycleLayerDownAction that cycles through layers that are in the model 32 32 */ 33 33 public CycleLayerUpAction() { 34 super(tr("Cycle layer up"), "dialogs/next", tr("Cycle up through layers"), cycleUp, true, "cycle-layer", false);34 super(tr("Cycle layer up"), "dialogs/next", tr("Cycle through data layers in an upward direction"), cycleUp, true, "cycle-layer-up", false); 35 35 new ImageProvider("dialogs", "next").getResource().attachImageIcon(this, true); 36 36 putValue(SHORT_DESCRIPTION, tr("Cycle through visible layers.")); 37 37 putValue(NAME, tr("Cycle layers"));