Ignore:
Timestamp:
2008-11-18T20:04:58+01:00 (16 years ago)
Author:
frederik
Message:

changes in some JOSM plugins due to a renamed class in JOSM.

Location:
applications/editors/josm/plugins/livegps/livegps
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/livegps/livegps/LiveGpsDialog.java

    r11934 r11974  
    1919import org.openstreetmap.josm.gui.MapFrame;
    2020import org.openstreetmap.josm.gui.dialogs.ToggleDialog;
    21 import org.openstreetmap.josm.tools.ShortCut;
     21import org.openstreetmap.josm.tools.Shortcut;
    2222
    2323/**
     
    3939     * @param iconName
    4040     * @param tooltip
    41      * @param shortCut
     41     * @param shortcut
    4242     * @param preferredHeight
    4343     */
    4444    public LiveGpsDialog(final MapFrame mapFrame) {
    4545        super(tr("Live GPS"), "livegps", tr("Show GPS data."),
    46         ShortCut.registerShortCut("subwindow:livegps", tr("Toggle: {0}", tr("Live GPS")),
    47         KeyEvent.VK_G, ShortCut.GROUP_LAYER, ShortCut.SHIFT_DEFAULT), 100);
     46        Shortcut.registerShortcut("subwindow:livegps", tr("Toggle: {0}", tr("Live GPS")),
     47        KeyEvent.VK_G, Shortcut.GROUP_LAYER, Shortcut.SHIFT_DEFAULT), 100);
    4848        panel = new JPanel();
    4949        panel.setLayout(new GridLayout(6,2));
  • applications/editors/josm/plugins/livegps/livegps/LiveGpsPlugin.java

    r11934 r11974  
    2020import org.openstreetmap.josm.gui.MapFrame;
    2121import org.openstreetmap.josm.plugins.Plugin;
    22 import org.openstreetmap.josm.tools.ShortCut;
     22import org.openstreetmap.josm.tools.Shortcut;
    2323
    2424public class LiveGpsPlugin extends Plugin
     
    4040        public CaptureAction() {
    4141            super(tr("Capture GPS Track"), "capturemenu", tr("Connect to gpsd server and show current position in LiveGPS layer."),
    42                 ShortCut.registerShortCut("menu:livegps:capture", tr("Menu: {0}", tr("Capture GPS Track")),
    43                 KeyEvent.VK_R, ShortCut.GROUP_MENU), true);
     42                Shortcut.registerShortcut("menu:livegps:capture", tr("Menu: {0}", tr("Capture GPS Track")),
     43                KeyEvent.VK_R, Shortcut.GROUP_MENU), true);
    4444        }
    4545
     
    5252        public CenterAction() {
    5353            super(tr("Center Once"), "centermenu", tr("Center the LiveGPS layer to current position."),
    54             ShortCut.registerShortCut("edit:centergps", tr("Edit: {0}", tr("Center Once")),
    55             KeyEvent.VK_HOME, ShortCut.GROUP_EDIT), true);
     54            Shortcut.registerShortcut("edit:centergps", tr("Edit: {0}", tr("Center Once")),
     55            KeyEvent.VK_HOME, Shortcut.GROUP_EDIT), true);
    5656        }
    5757
     
    6666        public AutoCenterAction() {
    6767            super(tr("Auto-Center"), "autocentermenu", tr("Continuously center the LiveGPS layer to current position."),
    68             ShortCut.registerShortCut("menu:livegps:autocenter", tr("Menu: {0}", tr("Capture GPS Track")),
    69             KeyEvent.VK_HOME, ShortCut.GROUP_MENU), true);
     68            Shortcut.registerShortcut("menu:livegps:autocenter", tr("Menu: {0}", tr("Capture GPS Track")),
     69            KeyEvent.VK_HOME, Shortcut.GROUP_MENU), true);
    7070        }
    7171
     
    8787        lgpscapture = new JCheckBoxMenuItem(captureAction);
    8888        lgpsmenu.add(lgpscapture);
    89         lgpscapture.setAccelerator(captureAction.getShortCut().getKeyStroke());
     89        lgpscapture.setAccelerator(captureAction.getShortcut().getKeyStroke());
    9090
    9191        JosmAction centerAction = new CenterAction();
    9292        JMenuItem centerMenu = new JMenuItem(centerAction);
    9393        lgpsmenu.add(centerMenu);
    94         centerMenu.setAccelerator(centerAction.getShortCut().getKeyStroke());
     94        centerMenu.setAccelerator(centerAction.getShortcut().getKeyStroke());
    9595
    9696        JosmAction autoCenterAction = new AutoCenterAction();
    9797        lgpsautocenter = new JCheckBoxMenuItem(autoCenterAction);
    9898        lgpsmenu.add(lgpsautocenter);
    99         lgpsautocenter.setAccelerator(autoCenterAction.getShortCut().getKeyStroke());
     99        lgpsautocenter.setAccelerator(autoCenterAction.getShortcut().getKeyStroke());
    100100    }
    101101
Note: See TracChangeset for help on using the changeset viewer.