Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 314856

Summary: Cannot run Java application with multi-stroke keybinding
Product: [Eclipse Project] e4 Reporter: Remy Suen <remy.suen>
Component: UIAssignee: Project Inbox <e4.ui-inbox>
Status: CLOSED DUPLICATE QA Contact: Paul Webster <pwebster>
Severity: normal    
Priority: P3    
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Remy Suen CLA 2010-05-28 08:50:45 EDT
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.
Comment 1 Remy Suen CLA 2010-05-28 09:21:31 EDT
If you manually run the application first then the keybinding will work.
Comment 2 Remy Suen CLA 2010-05-28 09:31:55 EDT
(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
Comment 3 Remy Suen CLA 2010-05-28 09:38:29 EDT
Actually, this doesn't work on 3.x either. Now that I think about it, I think this is a known bug.
Comment 4 Paul Webster CLA 2011-05-13 14:53:29 EDT

*** This bug has been marked as a duplicate of bug 218881 ***