Ignore:
Timestamp:
2008-12-25T19:01:06+01:00 (16 years ago)
Author:
stoecker
Message:

updated a lot

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
  • applications/editors/josm/plugins/tcxplugin/src/org/openstreetmap/josm/plugins/TcxPlugin.java

    r11974 r12588  
    1919
    2020import org.openstreetmap.josm.Main;
     21import org.openstreetmap.josm.gui.MainMenu;
    2122import org.openstreetmap.josm.actions.DiskAccessAction;
    2223import org.openstreetmap.josm.actions.JosmAction;
     
    2526import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer;
    2627import org.openstreetmap.josm.io.TcxReader;
     28import org.openstreetmap.josm.tools.Shortcut;
    2729/**
    2830 * @author adrian
     
    3537        public OpenAction()
    3638        {
    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));
    3842        }
    3943       
     
    98102    public TcxPlugin()
    99103    {
    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());
    107105    }
    108106}
Note: See TracChangeset for help on using the changeset viewer.