Bug 211264 - [WorkbenchParts] Request promptToClose interface and framework callback for Views
Summary: [WorkbenchParts] Request promptToClose interface and framework callback for V...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-28 11:16 EST by Barry Andrews CLA
Modified: 2019-09-06 16:07 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Barry Andrews CLA 2007-11-28 11:16:19 EST
Build ID: M20060629-1905

Enhancement:

Currently there is no solution for prompting a user before closing a View. In many cases, you need a way to ask the user if it's what they really intended and then prevent that View from being closed based on their response. 

Of course you can implement ISaveablePart2 and use the promptToSaveOnClose method, however this is not a good solution because this will enable the save icon and '*'. If there is nothing to save ( because it's not an editor ), this can be VERY CONFUSING for the user of your application. 

More information:

I did find a way to prompt the user without activating the save icon but it is quite hackish and is not guaranteed to work if framework changes are made, which is why I would like to see this mechanism in the framework itself.
Comment 1 Eclipse Webmaster CLA 2019-09-06 16:07:07 EDT
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.