Ignore:
Timestamp:
2012-02-20T19:25:50+01:00 (13 years ago)
Author:
stoecker
Message:

fix toolbar issues

Location:
applications/editors/josm/plugins
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandAction.java

    r27632 r27906  
    3737        private Command parentCommand;
    3838        public CommandAction(Command parentCommand, CommandLine parentPlugin) {
    39                 super(tr(parentCommand.name), "blankmenu", tr(parentCommand.name), null, false, false);
     39                super(tr(parentCommand.name), "blankmenu", tr(parentCommand.name), null, true, parentCommand.name, true);
    4040                if (!parentCommand.icon.equals("")) {
    4141                        try {
     
    4848                        }
    4949                }
    50                 putValue("toolbar", parentCommand.name);
    51                 Main.toolbar.register(this);
    52                 installAdapters();
    5350
    5451                this.parentCommand = parentCommand;
  • applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLineAction.java

    r27852 r27906  
    4141        public CommandLineAction(CommandLine parentPlugin) {
    4242                super(tr("Command line"), "blankmenu", tr("Set input focus to the command line."),
    43                 Shortcut.registerShortcut("edit:simplifyArea", tr("Tool: {0}", tr("Command line")), KeyEvent.VK_ENTER, Shortcut.DIRECT), true);
     43                Shortcut.registerShortcut("tool:commandline", tr("Tool: {0}", tr("Command line")), KeyEvent.VK_ENTER, Shortcut.DIRECT), true, "commandline", true);
    4444                this.parentPlugin = parentPlugin;
    4545        }
  • applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/LoadImageAction.java

    r26452 r27906  
    2929     */
    3030    public LoadImageAction() {
    31         super(tr("Import image"), null, tr("Import georeferenced image"), null, false);
     31        super(tr("Import image"), null, tr("Import georeferenced image"), null, false, "importimage/loadimage", true);
    3232    }
    3333
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionGrab.java

    r27881 r27906  
    2626        super(tr(name), "cadastre_small", tr("Download Image from French Cadastre WMS"),
    2727                Shortcut.registerShortcut("cadastre:grab", tr("Cadastre: {0}", tr("Download Image from French Cadastre WMS")),
    28                 KeyEvent.VK_F10, Shortcut.DIRECT), false);
     28                KeyEvent.VK_F10, Shortcut.DIRECT), false, "cadastrefr/grab", true);
    2929    }
    3030
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionGrabPlanImage.java

    r26509 r27906  
    5454
    5555    public MenuActionGrabPlanImage() {
    56         super(tr(name), "cadastre_small", tr("Grab non-georeferenced image"), null, false);
     56        super(tr(name), "cadastre_small", tr("Grab non-georeferenced image"), null, false, "cadastrefr/grabplanimage", true);
    5757    }
    5858
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionLoadFromCache.java

    r26330 r27906  
    2323
    2424    public MenuActionLoadFromCache() {
    25         super(tr(name), "cadastre_small", tr("Load location from cache (only if cache is enabled)"), null, false);
     25        super(tr(name), "cadastre_small", tr("Load location from cache (only if cache is enabled)"), null, false, "cadastrefr/loadfromcache", true);
    2626    }
    2727
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionNewLocation.java

    r26228 r27906  
    5252
    5353    public MenuActionNewLocation() {
    54         super(tr("Change location"), "cadastre_small", tr("Set a new location for the next request"), null, false);
     54        super(tr("Change location"), "cadastre_small", tr("Set a new location for the next request"), null, false, "cadastrefr/newlocation", true);
    5555    }
    5656
  • applications/editors/josm/plugins/mirrored_download/src/mirrored_download/DownloadAction2.java

    r27852 r27906  
    2929    public DownloadAction2() {
    3030        super(tr("Download from OSM mirror..."), null, tr("Download map data from the OSM server."),
    31                 Shortcut.registerShortcut("mirror:download", tr("File: {0}", tr("Download from OSM mirror...")), KeyEvent.VK_DOWN, Shortcut.ALT_SHIFT), true);
     31            Shortcut.registerShortcut("mirror:download", tr("File: {0}", tr("Download from OSM mirror...")), KeyEvent.VK_DOWN, Shortcut.ALT_SHIFT),
     32            true, "mirroreddownload/download", true);
    3233        putValue("help", ht("/Action/MirroredDownload"));
    3334    }
  • applications/editors/josm/plugins/mirrored_download/src/mirrored_download/UrlSelectionAction.java

    r27852 r27906  
    2525    public UrlSelectionAction() {
    2626        super(tr("Select URL..."), null, tr("Select URL to download from."),
    27                 Shortcut.registerShortcut("file:selecturl", tr("File: {0}", tr("Select URL...")), KeyEvent.VK_D, Shortcut.CTRL_SHIFT), true);
     27                Shortcut.registerShortcut("file:selecturl", tr("File: {0}", tr("Select URL...")), KeyEvent.VK_D, Shortcut.CTRL_SHIFT),
     28                true, "mirroreddownload/urlselection", true);
    2829        putValue("help", ht("/Action/SelectUrl"));
    2930    }
  • applications/editors/josm/plugins/namemanager/src/org/openstreetmap/josm/plugins/namemanager/listeners/NameManagerAction.java

    r25594 r27906  
    3737     */
    3838    public NameManagerAction() {
    39         super(tr(NAME_MANAGER), NAME_MANAGER_MENU, tr(ATTRIBUTE_DISTRICTS), null, true);
     39        super(tr(NAME_MANAGER), NAME_MANAGER_MENU, tr(ATTRIBUTE_DISTRICTS), null, true, "namemanager", true);
    4040        DataSet.addSelectionListener(this);
    4141        setEnabled(false);
Note: See TracChangeset for help on using the changeset viewer.