| Summary: | 'Console' view disregards IHandlerService's deactivateHandler(IHandlerActivation) javadoc and passes in null | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Remy Suen <remy.suen> | ||||
| Component: | Debug | Assignee: | Pawel Piech <pawel.1.piech> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | Michael_Rennie, pawel.1.piech, pwebster | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | 3.7 M5 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Remy Suen
Note that you must _not_ activate the 'Console' view while you are performing steps 4 to 6. Created attachment 184738 [details]
Proposed fix.
I think there's just a test missing. It solves the problem for me, I'm just not sure if it will have any bad side effects.
Michael, do you see any case where this test would cause deactivate not to be called properly? If you guys opt to put the null check into ProcessConsolePageParticipant _directly_ (like JavaStackTracePageParticipant), please also make sure you add a check for the 'fActivatedContext' field since that is also violating API rules by calling IContextService's deactivateContext(IContextActivation) method with a null parameter. (In reply to comment #4) > If you guys opt to put the null check into ProcessConsolePageParticipant ... Thanks Remy. A null check in ProcessConsolePageParticipant is a good idea as a precaution, though the root problem is that deacivate() is called even though activate() was not. (In reply to comment #3) > Michael, do you see any case where this test would cause deactivate not to be > called properly? It should be fine, I don't know of any code path that would have the part deactivated (fActive == false) and then try to show it. Committed the fix. (In reply to comment #6) > It should be fine, I don't know of any code path that would have the part > deactivated (fActive == false) and then try to show it. Already reviewed. |