Changeset 1084 in josm for trunk/src/org/openstreetmap/josm/actions/MoveAction.java
- Timestamp:
- 2008-11-18T19:53:53+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/MoveAction.java
r1023 r1084 17 17 import org.openstreetmap.josm.data.osm.OsmPrimitive; 18 18 import org.openstreetmap.josm.data.osm.visitor.AllNodesVisitor; 19 import org.openstreetmap.josm.tools.Short Cut;19 import org.openstreetmap.josm.tools.Shortcut; 20 20 21 21 /** … … 31 31 // any better idea? 32 32 private static Object calltosupermustbefirststatementinconstructor(Direction dir, boolean text) { 33 Short Cut sc;33 Shortcut sc; 34 34 String directiontext; 35 35 if (dir == Direction.UP) { 36 36 directiontext = tr("up"); 37 sc = Short Cut.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); 38 38 } else if (dir == Direction.DOWN) { 39 39 directiontext = tr("down"); 40 sc = Short Cut.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); 41 41 } else if (dir == Direction.LEFT) { 42 42 directiontext = tr("left"); 43 sc = Short Cut.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); 44 44 } else { //dir == Direction.RIGHT) { 45 45 directiontext = tr("right"); 46 sc = Short Cut.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); 47 47 } 48 48 if (text) { … … 56 56 super(tr("Move {0}", calltosupermustbefirststatementinconstructor(dir, true)), null, 57 57 tr("Moves Objects {0}", calltosupermustbefirststatementinconstructor(dir, true)), 58 (Short Cut)calltosupermustbefirststatementinconstructor(dir, false), true);58 (Shortcut)calltosupermustbefirststatementinconstructor(dir, false), true); 59 59 myDirection = dir; 60 60 }
Note:
See TracChangeset
for help on using the changeset viewer.