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

updated a lot

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  
    3131import org.openstreetmap.josm.io.GpxReader;
    3232import org.openstreetmap.josm.io.OsmReader;
     33import org.openstreetmap.josm.tools.Shortcut;
    3334import org.xml.sax.SAXException;
    3435
     
    4142   
    4243    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);
    4548    }
    4649
  • applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisiblePlugin.java

    r11974 r12588  
    88
    99import org.openstreetmap.josm.Main;
     10import org.openstreetmap.josm.gui.MainMenu;
    1011import org.openstreetmap.josm.plugins.Plugin;
    1112import org.openstreetmap.josm.actions.JosmAction;
     
    1617 */
    1718public class OpenVisiblePlugin extends Plugin {
    18    
     19
    1920    public OpenVisiblePlugin() {
    2021        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());
    2923    }
    3024
Note: See TracChangeset for help on using the changeset viewer.