Changeset 10378 in josm for trunk/src/org/openstreetmap/josm/actions/MoveAction.java
- Timestamp:
- 2016-06-15T10:30:37+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/MoveAction.java
r9067 r10378 34 34 private static String calltosupermustbefirststatementinconstructortext(Direction dir) { 35 35 String directiontext; 36 if (dir == Direction.UP){36 if (dir == Direction.UP) { 37 37 directiontext = tr("up"); 38 } else if (dir == Direction.DOWN) 38 } else if (dir == Direction.DOWN) { 39 39 directiontext = tr("down"); 40 } else if (dir == Direction.LEFT) 40 } else if (dir == Direction.LEFT) { 41 41 directiontext = tr("left"); 42 42 } else { … … 49 49 private static Shortcut calltosupermustbefirststatementinconstructor(Direction dir) { 50 50 Shortcut sc; 51 if (dir == Direction.UP) { 52 sc = Shortcut.registerShortcut("core:moveup", tr("Move objects {0}", tr("up")), KeyEvent.VK_UP, Shortcut.SHIFT); 53 } else if (dir == Direction.DOWN) { 54 sc = Shortcut.registerShortcut("core:movedown", tr("Move objects {0}", tr("down")), KeyEvent.VK_DOWN, Shortcut.SHIFT); 55 } else if (dir == Direction.LEFT) { 56 sc = Shortcut.registerShortcut("core:moveleft", tr("Move objects {0}", tr("left")), KeyEvent.VK_LEFT, Shortcut.SHIFT); 51 // CHECKSTYLE.OFF: SingleSpaceSeparator 52 if (dir == Direction.UP) { 53 sc = Shortcut.registerShortcut("core:moveup", tr("Move objects {0}", tr("up")), KeyEvent.VK_UP, Shortcut.SHIFT); 54 } else if (dir == Direction.DOWN) { 55 sc = Shortcut.registerShortcut("core:movedown", tr("Move objects {0}", tr("down")), KeyEvent.VK_DOWN, Shortcut.SHIFT); 56 } else if (dir == Direction.LEFT) { 57 sc = Shortcut.registerShortcut("core:moveleft", tr("Move objects {0}", tr("left")), KeyEvent.VK_LEFT, Shortcut.SHIFT); 57 58 } else { //dir == Direction.RIGHT 58 59 sc = Shortcut.registerShortcut("core:moveright", tr("Move objects {0}", tr("right")), KeyEvent.VK_RIGHT, Shortcut.SHIFT); 59 60 } 61 // CHECKSTYLE.ON: SingleSpaceSeparator 60 62 return sc; 61 63 } … … 71 73 myDirection = dir; 72 74 putValue("help", ht("/Action/Move")); 73 if (dir == Direction.UP){75 if (dir == Direction.UP) { 74 76 putValue("toolbar", "action/move/up"); 75 } else if (dir == Direction.DOWN) 77 } else if (dir == Direction.DOWN) { 76 78 putValue("toolbar", "action/move/down"); 77 } else if (dir == Direction.LEFT) 79 } else if (dir == Direction.LEFT) { 78 80 putValue("toolbar", "action/move/left"); 79 81 } else { //dir == Direction.RIGHT
Note:
See TracChangeset
for help on using the changeset viewer.