Community
Participate
Working Groups
1. Open a class with a main method. 2. Alt+Shift+X, J 3. Nothing happens. A command is found but no handlers are found.
If you manually run the application first then the keybinding will work.
(In reply to comment #1) > If you manually run the application first then the keybinding will work. The handler gets activated/put in the context when I bring up the 'Run As' submenu. Thread [main] (Suspended (breakpoint at line 52 in HandlerServiceImpl)) HandlerServiceImpl.activateHandler(String, Object) line: 52 HandlerActivation.changed(IEclipseContext) line: 198 EclipseContext$TrackableComputationExt.update(ContextChangeEvent) line: 130 EclipseContext.runAndTrack(RunAndTrack) line: 428 LegacyHandlerService.registerLegacyHandler(IEclipseContext, String, String, IHandler, Expression) line: 65 LegacyHandlerService.activateHandler(String, IHandler, Expression, boolean) line: 165 LegacyHandlerService.activateHandler(String, IHandler) line: 138 LaunchShortcutExtension.registerLaunchCommandHandlers() line: 126 LaunchShortcutExtension.<init>(IConfigurationElement) line: 112 LaunchConfigurationManager.loadLaunchShortcuts() line: 655 LaunchConfigurationManager.getLaunchShortcuts() line: 687 RunContextualLaunchAction(ContextualLaunchAction).fillMenu(Menu) line: 198 ContextualLaunchAction$1.menuShown(MenuEvent) line: 136 TypedListener.handleEvent(Event) line: 241 EventTable.sendEvent(Event) line: 84 Menu(Widget).sendEvent(Event) line: 1052 Menu(Widget).sendEvent(int, Event, boolean) line: 1076 Menu(Widget).sendEvent(int, Event) line: 1061 Menu(Widget).notifyListeners(int, Event) line: 773 PluginActionContributionItem(ActionContributionItem).copyMenu(Menu, Menu) line: 1268 PluginActionContributionItem(ActionContributionItem).handleShowProxy(Menu) line: 1248 ActionContributionItem.access$4(ActionContributionItem, Menu) line: 1237 ActionContributionItem$8.handleEvent(Event) line: 1210 EventTable.sendEvent(Event) line: 84 Menu(Widget).sendEvent(Event) line: 1052 Menu(Widget).sendEvent(int, Event, boolean) line: 1076 Menu(Widget).sendEvent(int) line: 1057 Shell(Control).WM_INITMENUPOPUP(int, int) line: 4484 Shell(Control).windowProc(int, int, int, int) line: 4187 Shell(Canvas).windowProc(int, int, int, int) line: 341 Shell(Decorations).windowProc(int, int, int, int) line: 1598 Shell.windowProc(int, int, int, int) line: 2038 Display.windowProc(int, int, int, int) line: 4886 OS.TrackPopupMenu(int, int, int, int, int, int, RECT) line: not available [native method] Menu._setVisible(boolean) line: 256 Display.runPopups() line: 4107
Actually, this doesn't work on 3.x either. Now that I think about it, I think this is a known bug.
*** This bug has been marked as a duplicate of bug 218881 ***