Ticket #18638: 18638.shortcuts_names.patch

File 18638.shortcuts_names.patch, 2.8 KB (added by taylor.smock, 4 years ago)

Modify GerdP's patch to add consistency in action UI descriptions

  • src/org/openstreetmap/josm/gui/dialogs/layer/CycleLayerDownAction.java

     
    2727public class CycleLayerDownAction extends JosmAction {
    2828    private static final long serialVersionUID = 1L;
    2929    private static final Shortcut cycleDown =
    30             Shortcut.registerShortcut("core:cyclelayerdown", tr("Cycle layers down"), KeyEvent.VK_CLOSE_BRACKET, Shortcut.SHIFT);
     30            Shortcut.registerShortcut("core:cyclelayerdown", tr("Cycle layer down"), KeyEvent.VK_CLOSE_BRACKET, Shortcut.SHIFT);
    3131
    3232    /**
    3333     * Create a CycleLayerDownAction that cycles through layers that are in the model
    3434     */
    3535    public CycleLayerDownAction() {
    36         super(tr("Cycle layers"), "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);
    3838        putValue(SHORT_DESCRIPTION, tr("Cycle through visible layers."));
    3939        putValue(NAME, tr("Cycle layers"));
    4040    }
  • src/org/openstreetmap/josm/gui/dialogs/layer/CycleLayerUpAction.java

     
    2525public class CycleLayerUpAction extends JosmAction {
    2626    private static final long serialVersionUID = 1L;
    2727    private static final Shortcut cycleUp =
    28             Shortcut.registerShortcut("core:cyclelayerup", tr("Cycle layers up"), KeyEvent.VK_OPEN_BRACKET, Shortcut.SHIFT);
     28            Shortcut.registerShortcut("core:cyclelayerup", tr("Cycle layer up"), KeyEvent.VK_OPEN_BRACKET, Shortcut.SHIFT);
    2929
    3030    /**
    3131     * Create a CycleLayerDownAction that cycles through layers that are in the model
    3232     */
    3333    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);
    3535        new ImageProvider("dialogs", "next").getResource().attachImageIcon(this, true);
    3636        putValue(SHORT_DESCRIPTION, tr("Cycle through visible layers."));
    3737        putValue(NAME, tr("Cycle layers"));