Ignore:
Timestamp:
2008-11-18T19:53:53+01:00 (17 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/gui/MapView.java

    r1047 r1084  
    110110                                JosmAction mv;
    111111                                mv = new MoveAction(MoveAction.Direction.UP);
    112                                 if (mv.getShortCut() != null) {
    113                                         Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(mv.getShortCut().getKeyStroke(), "UP");
     112                                if (mv.getShortcut() != null) {
     113                                        Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(mv.getShortcut().getKeyStroke(), "UP");
    114114                                        Main.contentPane.getActionMap().put("UP", mv);
    115115                                }
    116116                                mv = new MoveAction(MoveAction.Direction.DOWN);
    117                                 if (mv.getShortCut() != null) {
    118                                         Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(mv.getShortCut().getKeyStroke(), "DOWN");
     117                                if (mv.getShortcut() != null) {
     118                                        Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(mv.getShortcut().getKeyStroke(), "DOWN");
    119119                                        Main.contentPane.getActionMap().put("DOWN", mv);
    120120                                }
    121121                                mv = new MoveAction(MoveAction.Direction.LEFT);
    122                                 if (mv.getShortCut() != null) {
    123                                         Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(mv.getShortCut().getKeyStroke(), "LEFT");
     122                                if (mv.getShortcut() != null) {
     123                                        Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(mv.getShortcut().getKeyStroke(), "LEFT");
    124124                                        Main.contentPane.getActionMap().put("LEFT", mv);
    125125                                }
    126126                                mv = new MoveAction(MoveAction.Direction.RIGHT);
    127                                 if (mv.getShortCut() != null) {
    128                                         Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(mv.getShortCut().getKeyStroke(), "RIGHT");
     127                                if (mv.getShortcut() != null) {
     128                                        Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(mv.getShortcut().getKeyStroke(), "RIGHT");
    129129                                        Main.contentPane.getActionMap().put("RIGHT", mv);
    130130                                }
Note: See TracChangeset for help on using the changeset viewer.