| Summary: | [Compatibility] IWorkbenchPage's savePerspective() method is unimplemented | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Remy Suen <remy.suen> |
| Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | dean.t.roberts, emoffatt, pwebster |
| Version: | 4.2 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | stalebug | ||
|
Description
Remy Suen
Dean, could you take a look into this one ? This method is only called when attempting to save a singleton perspective. Back when I joined the team I recall a discussion about what exactly a singleton perspective was, and if we would try and support them in e4. I believe the thought was that singleton perspectives where not really used and to ignore singleton perspectives and wait and see if any users actually report a problem. Is this still a strategy we want to take? (In reply to comment #2) > This method is only called when attempting to save a singleton perspective. > > Back when I joined the team I recall a discussion about what exactly a > singleton perspective was, and if we would try and support them in e4. Personally, I'm not even sure how singleton perspectives are supported in 3.x. From what I can tell, it reads some 'singleton' attribute in the definition of the perspective extension but that attribute doesn't seem to exist. I agree, I was looking through the documentation and singleton is certainly not a documented attribute for perspective extensions org.eclipse.ui.perspectives If the GIT history view was friendlier I could see where the constants where added and try and find a defect that caused the feature to be added .... any GIT hints on how to see real history? Or does anybody know what happened to the CVS annotation view? After a discussion with Dean, we've decided to just let this remain unimplemented for now as the 'singleton' attribute doesn't actually exist in the schema file (anymore?). I've changed the method to throw an UnsupportedOperationException so that anyone that tries to call this method will "automatically" know that the method is not working. http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?h=R4_development&id=88406581bce09ddb99184fc0755a13c172bcd795 Presuming that it doesn't actually work in 3.x... Have we deprecated the method ? Is savePerspectiveAs the alternative ? (In reply to comment #6) > Presuming that it doesn't actually work in 3.x... The method is API but does not appear to be called in a test. It is called by the 'Save Perspective' handler in a singleton perspective scenario. There is code there but someone would have to know about the secret 'singleton' attribute which is nowhere to be found in the perspectives.exsd schema file. > Have we deprecated the method ? No, it is not deprecated in 3.x. > Is savePerspectiveAs the alternative ? I would be inclined to say so. I'd be tempted to deprecate the method to stop future folks from thinking it should do anything...comments ? I agree assuming we could undeprecate it should a valid use case be put forward for these mysterious singleton perspectives. (In reply to comment #9) > I agree assuming we could undeprecate it should a valid use case be put forward > for these mysterious singleton perspectives. I'm not sure I like this undeprecating business. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |