Project: Eclipse_Platform_UI
Bug 51730 [Help] IllegalArgumentExcpetion using F1 on an action with no help context
Reported: 2004-02-11 14:01:31 | Status: verified fixed

I200402102000 If an action has no registered a help context, you get the following IllegalArgumentException if F1 is triggered for the action: Thread [main] (Suspended (exception IllegalArgumentException)) WorkbenchHelp.displayContext(IContext, int, int) line: 232 WorkbenchHelp$6.helpRequested(HelpEvent) line: 765 TypedListener.handleEvent(Event) line: 199 EventTable.sendEvent(Event) line: 82 MenuItem(Widget).sendEvent(Event) line: 833 Display.runDeferredEvents() line: 2348 Display.readAndDispatch() line: 2029 Workbench.runEventLoop(Window$IExceptionHandler, Display) line: 1550 Workbench.runUI() line: 1526 Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 265 PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 139 IDEApplication.run(Object) line: 47 PlatformActivator$1.run() line: 257 EclipseStarter.run(String[], Runnable) line: 104 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method] NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39 DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25 Method.invoke(Object, Object[]) line: 324 Main.basicRun(String[]) line: 279 Main.run(String[]) line: 742 Main.main(String[]) line: 581

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/help/WorkbenchHelp.java