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

fix toolbar issues

Location:
applications/editors/josm/plugins/CommandLine/src/CommandLine
Files:
2 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        }
Note: See TracChangeset for help on using the changeset viewer.