Changeset 11974 in osm
- Timestamp:
- 2008-11-18T20:04:58+01:00 (16 years ago)
- 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 33 33 import org.openstreetmap.josm.command.Command; 34 34 import org.openstreetmap.josm.command.SequenceCommand; 35 import org.openstreetmap.josm.tools.Short Cut;35 import org.openstreetmap.josm.tools.Shortcut; 36 36 37 37 import org.xml.sax.SAXException; … … 56 56 public LakewalkerAction(String name) { 57 57 super(name, "lakewalker-sml", tr("Lake Walker."), 58 Short Cut.registerShortCut("tools:lakewalker", tr("Tool: {0}", tr("Lake Walker")),59 KeyEvent.VK_L, Short Cut.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); 60 60 this.name = name; 61 61 setEnabled(true); -
applications/editors/josm/plugins/livegps/livegps/LiveGpsDialog.java
r11934 r11974 19 19 import org.openstreetmap.josm.gui.MapFrame; 20 20 import org.openstreetmap.josm.gui.dialogs.ToggleDialog; 21 import org.openstreetmap.josm.tools.Short Cut;21 import org.openstreetmap.josm.tools.Shortcut; 22 22 23 23 /** … … 39 39 * @param iconName 40 40 * @param tooltip 41 * @param short Cut41 * @param shortcut 42 42 * @param preferredHeight 43 43 */ 44 44 public LiveGpsDialog(final MapFrame mapFrame) { 45 45 super(tr("Live GPS"), "livegps", tr("Show GPS data."), 46 Short Cut.registerShortCut("subwindow:livegps", tr("Toggle: {0}", tr("Live GPS")),47 KeyEvent.VK_G, Short Cut.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); 48 48 panel = new JPanel(); 49 49 panel.setLayout(new GridLayout(6,2)); -
applications/editors/josm/plugins/livegps/livegps/LiveGpsPlugin.java
r11934 r11974 20 20 import org.openstreetmap.josm.gui.MapFrame; 21 21 import org.openstreetmap.josm.plugins.Plugin; 22 import org.openstreetmap.josm.tools.Short Cut;22 import org.openstreetmap.josm.tools.Shortcut; 23 23 24 24 public class LiveGpsPlugin extends Plugin … … 40 40 public CaptureAction() { 41 41 super(tr("Capture GPS Track"), "capturemenu", tr("Connect to gpsd server and show current position in LiveGPS layer."), 42 Short Cut.registerShortCut("menu:livegps:capture", tr("Menu: {0}", tr("Capture GPS Track")),43 KeyEvent.VK_R, Short Cut.GROUP_MENU), true);42 Shortcut.registerShortcut("menu:livegps:capture", tr("Menu: {0}", tr("Capture GPS Track")), 43 KeyEvent.VK_R, Shortcut.GROUP_MENU), true); 44 44 } 45 45 … … 52 52 public CenterAction() { 53 53 super(tr("Center Once"), "centermenu", tr("Center the LiveGPS layer to current position."), 54 Short Cut.registerShortCut("edit:centergps", tr("Edit: {0}", tr("Center Once")),55 KeyEvent.VK_HOME, Short Cut.GROUP_EDIT), true);54 Shortcut.registerShortcut("edit:centergps", tr("Edit: {0}", tr("Center Once")), 55 KeyEvent.VK_HOME, Shortcut.GROUP_EDIT), true); 56 56 } 57 57 … … 66 66 public AutoCenterAction() { 67 67 super(tr("Auto-Center"), "autocentermenu", tr("Continuously center the LiveGPS layer to current position."), 68 Short Cut.registerShortCut("menu:livegps:autocenter", tr("Menu: {0}", tr("Capture GPS Track")),69 KeyEvent.VK_HOME, Short Cut.GROUP_MENU), true);68 Shortcut.registerShortcut("menu:livegps:autocenter", tr("Menu: {0}", tr("Capture GPS Track")), 69 KeyEvent.VK_HOME, Shortcut.GROUP_MENU), true); 70 70 } 71 71 … … 87 87 lgpscapture = new JCheckBoxMenuItem(captureAction); 88 88 lgpsmenu.add(lgpscapture); 89 lgpscapture.setAccelerator(captureAction.getShort Cut().getKeyStroke());89 lgpscapture.setAccelerator(captureAction.getShortcut().getKeyStroke()); 90 90 91 91 JosmAction centerAction = new CenterAction(); 92 92 JMenuItem centerMenu = new JMenuItem(centerAction); 93 93 lgpsmenu.add(centerMenu); 94 centerMenu.setAccelerator(centerAction.getShort Cut().getKeyStroke());94 centerMenu.setAccelerator(centerAction.getShortcut().getKeyStroke()); 95 95 96 96 JosmAction autoCenterAction = new AutoCenterAction(); 97 97 lgpsautocenter = new JCheckBoxMenuItem(autoCenterAction); 98 98 lgpsmenu.add(lgpsautocenter); 99 lgpsautocenter.setAccelerator(autoCenterAction.getShort Cut().getKeyStroke());99 lgpsautocenter.setAccelerator(autoCenterAction.getShortcut().getKeyStroke()); 100 100 } 101 101 -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/OsbDialog.java
r11568 r11974 73 73 import org.openstreetmap.josm.plugins.osb.gui.action.PopupFactory; 74 74 import org.openstreetmap.josm.plugins.osb.i18n.Messages; 75 import org.openstreetmap.josm.tools.Short Cut;75 import org.openstreetmap.josm.tools.Shortcut; 76 76 77 77 public class OsbDialog extends ToggleDialog implements OsbObserver, ListSelectionListener, LayerChangeListener, … … 91 91 super("OpenStreetBugs", "icon_error22", 92 92 Messages.translate(OsbDialog.class, "tooltip"), 93 Short Cut.registerShortCut(93 Shortcut.registerShortcut( 94 94 Messages.translate(OsbDialog.class, "shortcut"), 95 95 Messages.translate(OsbDialog.class, "shortcut"), 96 KeyEvent.VK_O, Short Cut.GROUP_MENU),96 KeyEvent.VK_O, Shortcut.GROUP_MENU), 97 97 150); 98 98 -
applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisiblePlugin.java
r5419 r11974 26 26 27 27 fileMenu.add(menuItem,2); 28 menuItem.setAccelerator(openVisible.short Cut);28 menuItem.setAccelerator(openVisible.shortcut); 29 29 } 30 30 -
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/SurveyorPlugin.java
r5429 r11974 86 86 JCheckBoxMenuItem autoSaveMenu = new JCheckBoxMenuItem(autoSaveAction); 87 87 gpsPlugin.getLgpsMenu().add(autoSaveMenu); 88 autoSaveMenu.setAccelerator(autoSaveAction.short Cut);88 autoSaveMenu.setAccelerator(autoSaveAction.shortcut); 89 89 } 90 90 -
applications/editors/josm/plugins/tcxplugin/src/org/openstreetmap/josm/plugins/TcxPlugin.java
r10833 r11974 103 103 JMenuItem actionItem = new JMenuItem(openAction); 104 104 menu.insert(actionItem, 2); 105 actionItem.setAccelerator(openAction.short Cut);105 actionItem.setAccelerator(openAction.shortcut); 106 106 107 107 } -
applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/UtilsPlugin.java
r5452 r11974 28 28 action = new SimplifyWayAction(); 29 29 SimplifyWay = Main.main.menu.toolsMenu.add(action); 30 SimplifyWay.setAccelerator(action.short Cut);30 SimplifyWay.setAccelerator(action.shortcut); 31 31 SimplifyWay.setEnabled(false); 32 32 } -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/OSMValidatorPlugin.java
r10663 r11974 88 88 WronglyOrderedWays.class, // ID 1001 .. 1099 89 89 UnclosedWays.class, // ID 1101 .. 1199 90 TagChecker.class, // ID 1201 .. 129991 90 UnconnectedWays.class, // ID 1301 .. 1399 92 91 }; -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ValidateAction.java
r11861 r11974 14 14 import org.openstreetmap.josm.data.osm.OsmPrimitive; 15 15 import org.openstreetmap.josm.plugins.validator.util.AgregatePrimitivesVisitor; 16 import org.openstreetmap.josm.tools.Short Cut;16 import org.openstreetmap.josm.tools.Shortcut; 17 17 18 18 /** … … 38 38 public ValidateAction(OSMValidatorPlugin plugin) { 39 39 super(tr("Validation"), "validator", tr("Performs the data validation"), 40 Short Cut.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); 41 41 this.plugin = plugin; 42 42 } -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ValidatorDialog.java
r11861 r11974 36 36 import org.openstreetmap.josm.gui.dialogs.ToggleDialog; 37 37 import org.openstreetmap.josm.tools.ImageProvider; 38 import org.openstreetmap.josm.tools.Short Cut;38 import org.openstreetmap.josm.tools.Shortcut; 39 39 40 40 /** … … 72 72 public ValidatorDialog(OSMValidatorPlugin plugin) { 73 73 super(tr("Validation errors"), "validator", tr("Open the validation window."), 74 Short Cut.registerShortCut("subwindow:validator", tr("Toggle: {0}", tr("Validation errors")),75 KeyEvent.VK_V, Short Cut.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); 76 76 77 77 this.plugin = plugin;
Note:
See TracChangeset
for help on using the changeset viewer.