Changeset 12588 in osm for applications/editors/josm/plugins/tcxplugin/src/org
- Timestamp:
- 2008-12-25T19:01:06+01:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/tcxplugin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tcxplugin
-
Property svn:ignore
set to
build
josm-site.xml
-
Property svn:ignore
set to
-
applications/editors/josm/plugins/tcxplugin/src/org/openstreetmap/josm/plugins/TcxPlugin.java
r11974 r12588 19 19 20 20 import org.openstreetmap.josm.Main; 21 import org.openstreetmap.josm.gui.MainMenu; 21 22 import org.openstreetmap.josm.actions.DiskAccessAction; 22 23 import org.openstreetmap.josm.actions.JosmAction; … … 25 26 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer; 26 27 import org.openstreetmap.josm.io.TcxReader; 28 import org.openstreetmap.josm.tools.Shortcut; 27 29 /** 28 30 * @author adrian … … 35 37 public OpenAction() 36 38 { 37 super("Import TCX File...", "tcxicon", "", KeyEvent.VK_T, KeyEvent.CTRL_MASK); 39 super(tr("Import TCX File..."), "tcxicon", tr("Import TCX file as GPS track"), 40 Shortcut.registerShortcut("menu:importtcx", tr("Menu: {0}", tr("Import TCX File...")), 41 KeyEvent.VK_T, Shortcut.GROUP_MENU)); 38 42 } 39 43 … … 98 102 public TcxPlugin() 99 103 { 100 JMenu menu = Main.main.menu.getMenu(0); 101 102 JosmAction openAction = new OpenAction(); 103 JMenuItem actionItem = new JMenuItem(openAction); 104 menu.insert(actionItem, 2); 105 actionItem.setAccelerator(openAction.shortcut); 106 104 MainMenu.add(Main.main.menu.fileMenu, new OpenAction()); 107 105 } 108 106 }
Note:
See TracChangeset
for help on using the changeset viewer.