Bug 27466 - [ViewMgmt] [EditorMgmt] Feature request for close editor and close view
Summary: [ViewMgmt] [EditorMgmt] Feature request for close editor and close view
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Douglas Pollock CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-01 08:37 EST by Yang Liu CLA
Modified: 2004-10-26 11:21 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yang Liu CLA 2002-12-01 08:37:59 EST
Currently, when user close a editor, will only check whether it is dirty and
popup a system defined dialog; for view, will just close, and no dialog will popup.

Sometimes, the plugin may use the editor or view part to display some plugin
specific UI, and want to prevent user from close it or at least popup different
warning dialog.

The platform should provide ways for the plugin to do that.
Comment 1 Nick Edgar CLA 2003-01-07 08:53:53 EST
jml asks:
Is there any plan in the 2.1 release to include the following feature:

Give the editor a chance to popup some different warning dialog before 
it is being closed -- or even let the editor to choose not to be closed.

I think this is a very useful feature to many plugins.

We have a very small scripting language, user can debug it. During 
debugging, we want to enable user to directly modify the script code 
inside the editor, and the debugger will always run the newest code. So 
our debugger use the memory of the editor not the saved files. To easy 
implementation, we want to force user to keep the editor open during the 
debug session -- or when user try to close the editor, give us a chance 
to also stop the debugger.
Comment 2 mary CLA 2003-04-05 22:34:42 EST
We would also like to prevent the user from closing one of our views (i.e. not 
have the 'X' in the upper right corner).
Comment 3 Amy Wu CLA 2003-10-07 14:22:17 EDT
i have a view that initially contains text from the active editor.  Then users 
can modify the text in my view but not have the modifications apply to the 
active editor till the user explicitly says apply.  when users close the active 
editor, i would like some sort of "Active editor about to close, apply changes 
to active editor?" message so that users can apply their changes before the 
editor closes.  The best I can do now w/ the part closed listener is say "You 
just lost your changes"
Comment 4 Douglas Pollock CLA 2004-10-26 11:21:38 EDT
This bug seems to cover a bunch of diverse issues -- a lot of which have been 
addressed.  See bugs like Bug 72114, Bug 74028, Bug 76768.  Also, see 
IPageLayout.addStandaloneView(). 
 
If there are any issues that you feel aren't covered by these, then please open 
separate (new) bugs.