Ignore:
Timestamp:
2008-11-18T19:53:53+01:00 (15 years ago)
Author:
framm
Message:
  • cosmetics: rename ShortCut to Shortcut, and shortCut to shortcut
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/MoveAction.java

    r1023 r1084  
    1717import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1818import org.openstreetmap.josm.data.osm.visitor.AllNodesVisitor;
    19 import org.openstreetmap.josm.tools.ShortCut;
     19import org.openstreetmap.josm.tools.Shortcut;
    2020
    2121/**
     
    3131        // any better idea?
    3232        private static Object calltosupermustbefirststatementinconstructor(Direction dir, boolean text) {
    33                 ShortCut sc;
     33                Shortcut sc;
    3434                String directiontext;
    3535                if        (dir == Direction.UP)   {
    3636                        directiontext = tr("up");
    37                         sc = ShortCut.registerShortCut("core:moveup",    tr("Move objects {0}", directiontext), KeyEvent.VK_UP,    ShortCut.GROUPS_ALT1+ShortCut.GROUP_DIRECT);
     37                        sc = Shortcut.registerShortcut("core:moveup",    tr("Move objects {0}", directiontext), KeyEvent.VK_UP,    Shortcut.GROUPS_ALT1+Shortcut.GROUP_DIRECT);
    3838                } else if (dir == Direction.DOWN)  {
    3939                        directiontext = tr("down");
    40                         sc = ShortCut.registerShortCut("core:movedown",  tr("Move objects {0}", directiontext), KeyEvent.VK_DOWN,  ShortCut.GROUPS_ALT1+ShortCut.GROUP_DIRECT);
     40                        sc = Shortcut.registerShortcut("core:movedown",  tr("Move objects {0}", directiontext), KeyEvent.VK_DOWN,  Shortcut.GROUPS_ALT1+Shortcut.GROUP_DIRECT);
    4141                } else if (dir == Direction.LEFT)  {
    4242                        directiontext = tr("left");
    43                         sc = ShortCut.registerShortCut("core:moveleft",  tr("Move objects {0}", directiontext), KeyEvent.VK_LEFT,  ShortCut.GROUPS_ALT1+ShortCut.GROUP_DIRECT);
     43                        sc = Shortcut.registerShortcut("core:moveleft",  tr("Move objects {0}", directiontext), KeyEvent.VK_LEFT,  Shortcut.GROUPS_ALT1+Shortcut.GROUP_DIRECT);
    4444                } else { //dir == Direction.RIGHT) {
    4545                        directiontext = tr("right");
    46                         sc = ShortCut.registerShortCut("core:moveright", tr("Move objects {0}", directiontext), KeyEvent.VK_RIGHT, ShortCut.GROUPS_ALT1+ShortCut.GROUP_DIRECT);
     46                        sc = Shortcut.registerShortcut("core:moveright", tr("Move objects {0}", directiontext), KeyEvent.VK_RIGHT, Shortcut.GROUPS_ALT1+Shortcut.GROUP_DIRECT);
    4747                }
    4848                if (text) {
     
    5656                super(tr("Move {0}", calltosupermustbefirststatementinconstructor(dir, true)), null,
    5757                      tr("Moves Objects {0}", calltosupermustbefirststatementinconstructor(dir, true)),
    58                       (ShortCut)calltosupermustbefirststatementinconstructor(dir, false), true);
     58                      (Shortcut)calltosupermustbefirststatementinconstructor(dir, false), true);
    5959                myDirection = dir;
    6060        }
Note: See TracChangeset for help on using the changeset viewer.