Community
Participate
Working Groups
I20110125-2200 Launch Eclipse, select a view and hit F1, the correct context help displays in the help view. Now click around to different views, note that the title for the context help is correct but the description and links are not. For example after clicking on the JavaDoc view I see About JavaDoc This view allows the user to view help pages, view the help table of contents or search the help system. See also: The Help View Sometimes the title and description both match but often the description comes from a previously selected view or editor.
Parts which use an IContextProvider seem to work fine, the problem occurs for all other parts. The HelpView class is listening for part activation events, when it gets one and there is no IContextProvider the code below is used to determine which control in the view being switched to is has focus. Display display = part.getSite().getShell().getDisplay(); Control c = display.getFocusControl(); In Eclipse 3.7 display.getFocusControl() returns the control that has focus after the part activation, in Eclipse 4.1 it returns the control that had focus before the part activation.
This seems to be primarily noticeable if I switch between views in the same stack. If I click on different stacks it does not appear to occur.
Created attachment 188149 [details] EPartService patch v1 Activation events were being fired before the part was granted focus. This patch delays the activation notification so that the part will get focus first.
(In reply to comment #3) > Activation events were being fired before the part was granted focus. This > patch delays the activation notification so that the part will get focus first. Initially I was concerned that the active part wouldn't match the part that got its focus method called...but that actually seems to be the case in 3.x. I suppose I can buy that it's not technically active until focus has been granted and the method has returned.
(In reply to comment #3) > Created attachment 188149 [details] > EPartService patch v1 Patch released to HEAD. It's early in M6 so we should have plenty of time to gauge the severity of this change. Thanks for the bug report, Chris!
Verified in I20110204-0715.