| Summary: | Window -> Close Perspective misbehaves | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Oleg Besedin <ob1.eclipse> | ||||||
| Component: | UI | Assignee: | Project Inbox <e4.ui-inbox> | ||||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | emoffatt, ob1.eclipse, pwebster, remy.suen | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Oleg Besedin
Oleg, I'm pretty sure that this is fixed, see bug 317203. Close this or DUP it to that one if you agree... It work for closing the perspective, but when I try to open a new perspective from "+" after that, I get the following exception: statusReporter.report(new Status(IStatus.ERROR, WorkbenchSWTActivator.PI_RENDERERS, "Internal error, please post the trace to bug 315270", new Exception()), StatusReporter.LOG); in E4Application. (In reply to comment #2) > It work for closing the perspective, but when I try to open a new perspective > from "+" after that, I get the following exception: > > statusReporter.report(new Status(IStatus.ERROR, > WorkbenchSWTActivator.PI_RENDERERS, > "Internal error, please post the trace to bug 315270", > new Exception()), StatusReporter.LOG); > > in E4Application. Uh oh, did nothing get logged to the workspace's log? :( Created attachment 172507 [details] Stack trace (In reply to comment #3) > Uh oh, did nothing get logged to the workspace's log? :( To reproduce: - I have one default perspective open (Java) - Window -> Close Perspective, good so far - R-click on "+" on the Perspective Swticher, select "Debug", press OK -> NPE This is the result of the WorkbenchPage's 'perspective' field not being kept in synch with reality. The reason it works from the perspective switcher is because that code path determines the perspective to close from the ToolItem and finds its descriptor while the ClosePerspectiveHandler calls WorkbenchPage.getPerspective() (which returns the bogus field). patch coming... Hmm, not quite. I fixed getPerspective to use the PerspectiveStack's currently selected element but still get an error... Created attachment 172547 [details]
Trace for the exception
I get this with the following scenario:
Fresh start of inner
open Debug perspective using PS '+'
select the Java Perspective using the PS
preform Window -> Close Perspective
What's truly odd is that if I close the perspective using the context menu on the PS I *do not* get this error even though (as far as I can see) both end up calling 'closePerspective' with a descriptor for the Java perspective...
Adding Paul for a look... Cannot reproduce with I20110617-1015 on Windows XP. |