Changeset 12588 in osm for applications/editors/josm/plugins/openvisible/src/at
- Timestamp:
- 2008-12-25T19:01:06+01:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisibleAction.java
r7317 r12588 31 31 import org.openstreetmap.josm.io.GpxReader; 32 32 import org.openstreetmap.josm.io.OsmReader; 33 import org.openstreetmap.josm.tools.Shortcut; 33 34 import org.xml.sax.SAXException; 34 35 … … 41 42 42 43 public OpenVisibleAction() { 43 super(tr("Open Visible ..."), "openvisible", tr("Open only files that are visible in current view."), KeyEvent.VK_O, 44 InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK, true); 44 super(tr("Open Visible ..."), "openvisible", 45 tr("Open only files that are visible in current view."), 46 Shortcut.registerShortcut("tools:openvisible", tr("Menu: {0}", tr("Open Visible ...")), 47 KeyEvent.VK_I, Shortcut.GROUP_MENU, Shortcut.SHIFT_DEFAULT), true); 45 48 } 46 49 -
applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisiblePlugin.java
r11974 r12588 8 8 9 9 import org.openstreetmap.josm.Main; 10 import org.openstreetmap.josm.gui.MainMenu; 10 11 import org.openstreetmap.josm.plugins.Plugin; 11 12 import org.openstreetmap.josm.actions.JosmAction; … … 16 17 */ 17 18 public class OpenVisiblePlugin extends Plugin { 18 19 19 20 public OpenVisiblePlugin() { 20 21 super(); 21 JMenu fileMenu = Main.main.menu.fileMenu; 22 JosmAction openVisible = new OpenVisibleAction(); 23 24 //JMenu navigatorMenu = new JMenu("Open Visible"); 25 JMenuItem menuItem = new JMenuItem(openVisible); 26 27 fileMenu.add(menuItem,2); 28 menuItem.setAccelerator(openVisible.shortcut); 22 MainMenu.add(Main.main.menu.fileMenu, new OpenVisibleAction()); 29 23 } 30 24
Note:
See TracChangeset
for help on using the changeset viewer.