Changeset 11974 in osm


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
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/LakewalkerAction.java

    r11924 r11974  
    3333import org.openstreetmap.josm.command.Command;
    3434import org.openstreetmap.josm.command.SequenceCommand;
    35 import org.openstreetmap.josm.tools.ShortCut;
     35import org.openstreetmap.josm.tools.Shortcut;
    3636
    3737import org.xml.sax.SAXException;
     
    5656  public LakewalkerAction(String name) {
    5757    super(name, "lakewalker-sml", tr("Lake Walker."),
    58     ShortCut.registerShortCut("tools:lakewalker", tr("Tool: {0}", tr("Lake Walker")),
    59     KeyEvent.VK_L, ShortCut.GROUP_EDIT, ShortCut.SHIFT_DEFAULT), true);
     58    Shortcut.registerShortcut("tools:lakewalker", tr("Tool: {0}", tr("Lake Walker")),
     59    KeyEvent.VK_L, Shortcut.GROUP_EDIT, Shortcut.SHIFT_DEFAULT), true);
    6060    this.name = name;
    6161    setEnabled(true);
  • 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
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/OsbDialog.java

    r11568 r11974  
    7373import org.openstreetmap.josm.plugins.osb.gui.action.PopupFactory;
    7474import org.openstreetmap.josm.plugins.osb.i18n.Messages;
    75 import org.openstreetmap.josm.tools.ShortCut;
     75import org.openstreetmap.josm.tools.Shortcut;
    7676
    7777public class OsbDialog extends ToggleDialog implements OsbObserver, ListSelectionListener, LayerChangeListener,
     
    9191                super("OpenStreetBugs", "icon_error22",
    9292                                Messages.translate(OsbDialog.class, "tooltip"),
    93                                 ShortCut.registerShortCut(
     93                                Shortcut.registerShortcut(
    9494                                                Messages.translate(OsbDialog.class, "shortcut"),
    9595                                                Messages.translate(OsbDialog.class, "shortcut"),
    96                                                 KeyEvent.VK_O, ShortCut.GROUP_MENU),
     96                                                KeyEvent.VK_O, Shortcut.GROUP_MENU),
    9797                                150);
    9898               
  • applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisiblePlugin.java

    r5419 r11974  
    2626       
    2727        fileMenu.add(menuItem,2);
    28         menuItem.setAccelerator(openVisible.shortCut);
     28        menuItem.setAccelerator(openVisible.shortcut);
    2929    }
    3030
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/SurveyorPlugin.java

    r5429 r11974  
    8686        JCheckBoxMenuItem autoSaveMenu = new JCheckBoxMenuItem(autoSaveAction);
    8787        gpsPlugin.getLgpsMenu().add(autoSaveMenu); 
    88         autoSaveMenu.setAccelerator(autoSaveAction.shortCut);
     88        autoSaveMenu.setAccelerator(autoSaveAction.shortcut);
    8989    }
    9090
  • applications/editors/josm/plugins/tcxplugin/src/org/openstreetmap/josm/plugins/TcxPlugin.java

    r10833 r11974  
    103103        JMenuItem actionItem = new JMenuItem(openAction);
    104104        menu.insert(actionItem, 2);
    105         actionItem.setAccelerator(openAction.shortCut);
     105        actionItem.setAccelerator(openAction.shortcut);
    106106       
    107107    }
  • applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/UtilsPlugin.java

    r5452 r11974  
    2828                action = new SimplifyWayAction();
    2929                SimplifyWay = Main.main.menu.toolsMenu.add(action);
    30                 SimplifyWay.setAccelerator(action.shortCut);
     30                SimplifyWay.setAccelerator(action.shortcut);
    3131                SimplifyWay.setEnabled(false);
    3232        }
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/OSMValidatorPlugin.java

    r10663 r11974  
    8888            WronglyOrderedWays.class, // ID 1001 .. 1099
    8989            UnclosedWays.class, // ID 1101 .. 1199
    90             TagChecker.class, // ID 1201 .. 1299
    9190            UnconnectedWays.class, // ID 1301 .. 1399
    9291    };
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ValidateAction.java

    r11861 r11974  
    1414import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1515import org.openstreetmap.josm.plugins.validator.util.AgregatePrimitivesVisitor;
    16 import org.openstreetmap.josm.tools.ShortCut;
     16import org.openstreetmap.josm.tools.Shortcut;
    1717
    1818/**
     
    3838    public ValidateAction(OSMValidatorPlugin plugin) {
    3939        super(tr("Validation"), "validator", tr("Performs the data validation"),
    40         ShortCut.registerShortCut("tools:validate", tr("Tool: {0}", tr("Validation")), KeyEvent.VK_V, ShortCut.GROUP_EDIT, ShortCut.SHIFT_DEFAULT), true);
     40        Shortcut.registerShortcut("tools:validate", tr("Tool: {0}", tr("Validation")), KeyEvent.VK_V, Shortcut.GROUP_EDIT, Shortcut.SHIFT_DEFAULT), true);
    4141        this.plugin = plugin;
    4242    }
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ValidatorDialog.java

    r11861 r11974  
    3636import org.openstreetmap.josm.gui.dialogs.ToggleDialog;
    3737import org.openstreetmap.josm.tools.ImageProvider;
    38 import org.openstreetmap.josm.tools.ShortCut;
     38import org.openstreetmap.josm.tools.Shortcut;
    3939
    4040/**
     
    7272    public ValidatorDialog(OSMValidatorPlugin plugin) {
    7373        super(tr("Validation errors"), "validator", tr("Open the validation window."),
    74         ShortCut.registerShortCut("subwindow:validator", tr("Toggle: {0}", tr("Validation errors")),
    75         KeyEvent.VK_V, ShortCut.GROUP_LAYER, ShortCut.SHIFT_DEFAULT), 150);
     74        Shortcut.registerShortcut("subwindow:validator", tr("Toggle: {0}", tr("Validation errors")),
     75        KeyEvent.VK_V, Shortcut.GROUP_LAYER, Shortcut.SHIFT_DEFAULT), 150);
    7676
    7777        this.plugin = plugin;
Note: See TracChangeset for help on using the changeset viewer.