| Summary: | [ViewMgmt] Eclipse usage model is too restrictive. | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Philip Denno <pdenno> |
| Component: | UI | Assignee: | Nick Edgar <n.a.edgar> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | ahunter.eclipse, ed.burnette, Matthew_Hatem |
| Version: | 3.0 | ||
| Target Milestone: | 3.1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Philip Denno
Wasn't this one fixed by allowing views to be saveable (see ISaveablePart and bug 45248)? Or another way to address it is allow editors to be dockable (see bug 52252 and bug 8886). Views can be made saveable, and some improvements were made in bug 72114. However the original complaint here has not been addressed. When you shutdown the workbench with views having unsaved changes, the user is not prompted to save these changes. Some questions: 1) For backward compatibility reasons, should this behavior only apply to views that implement some new ISaveablePartXXX interface? 2) Should the save be batched in the same "save, don't save, cancel" dialog. 3) In bug #76768, I proposed a patch where an editor that implements the new ISaveablePartXXX interface may provide some custom save prompt UI, in this case each editor is brought to the front and the custom save prompt is presented to the user. Editors that behave this way are not batched in the dialog mentioned above. Supporting this behavior for Views will require that we switch perspectives before shutdown. Provided we preserve the "real" last opened perspective, is switching perspectives reasonable? (1) No, I think we should treat this as an implementation bug. Shutdown handling should have been added originally when support for ISaveablePart for views was added. (2) I think that would suffice for the SDK scenarios for 3.1. (3) Yes, switching is reasonable for the ISaveablePartXXX case, as long as we oyt the workbench back in the same state as before the shutdown (modulo the saves). One downside is that this may trigger activation of previously unactivated perspectives and views, causing more code loading and plug-in activation, just before shutdown. |