Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to prompt the MessageBox when closing the App and a View isDirty???
How to prompt the MessageBox when closing the App and a View isDirty??? [message #382447] Mon, 27 September 2004 07:12 Go to next message
Rene is currently offline ReneFriend
Messages: 80
Registered: July 2009
Member
My View is implementing ISaveablePart and in my plugin_config.ini I added
the line:
org.eclipse.ui.workbench/fix72114=true

When the state of the View isDirty and I want to close the View the
MessageBox which asks me if I want to save the file, is shown. But when I
close the whole Applictaion no MessageBox is shown. Is there any way to
handle this?

Thanks in advance!
-Rene-
Another quaetion... ;-) [message #382448 is a reply to message #382447] Mon, 27 September 2004 08:14 Go to previous messageGo to next message
Rene is currently offline ReneFriend
Messages: 80
Registered: July 2009
Member
How can I use the "Save All" Menu Action? When I opened multiple instances
of my View which implement ISaveablePart and these Views are currently in
DirtyState.

Thanks!
-Rene-
Re: Another quaetion... ;-) [message #383019 is a reply to message #382448] Tue, 28 September 2004 03:27 Go to previous messageGo to next message
Ed Burnette is currently offline Ed BurnetteFriend
Messages: 279
Registered: July 2009
Senior Member
If possible I think you'd find it easier to work the Platform when you use
editors for your saveable parts. Is there a reason you don't want to use an
editor for that? You can put the same content in an editor as in a view.

--
Ed Burnette
www.eclipsepowered.org

"Teichgraf" <teichgraf@gmx.de> wrote in message
news:cj8hst$g21$1@eclipse.org...
How can I use the "Save All" Menu Action? When I opened multiple instances
of my View which implement ISaveablePart and these Views are currently in
DirtyState.
Re: Another quaetion... ;-) [message #383025 is a reply to message #383019] Tue, 28 September 2004 11:53 Go to previous messageGo to next message
Rene is currently offline ReneFriend
Messages: 80
Registered: July 2009
Member
Know I extend my View from EditorPart and the "Save-Stuff" works pretty
good.
But I had an Action in the Local Toolbar of the View. Now I add this action
in the init() method, but the Action is added to the "global" Toolbar. Is it
possible that EditorParts don't have an own local Toolbar? Or is there
another ISite which I should use?

Thanks.
Rene

"Ed Burnette" <ed.burnette@sas.com> schrieb im Newsbeitrag
news:cjale8$7gt$1@eclipse.org...
> If possible I think you'd find it easier to work the Platform when you use
> editors for your saveable parts. Is there a reason you don't want to use
> an
> editor for that? You can put the same content in an editor as in a view.
>
> --
> Ed Burnette
> www.eclipsepowered.org
>
> "Teichgraf" <teichgraf@gmx.de> wrote in message
> news:cj8hst$g21$1@eclipse.org...
> How can I use the "Save All" Menu Action? When I opened multiple instances
> of my View which implement ISaveablePart and these Views are currently in
> DirtyState.
>
>
Re: Another quaetion... ;-) [message #383041 is a reply to message #383025] Tue, 28 September 2004 15:52 Go to previous messageGo to next message
Sebastian Davids is currently offline Sebastian DavidsFriend
Messages: 69
Registered: July 2009
Member
Editors do not have a local toolbar, they share the global one at the top.

Views have a local toolbar.

See:

http://eclipse.org/articles/Article-action-contribution/Cont ributing%20Actions%20to%20the%20Eclipse%20Workbench.html

@@@@

Sebastian
Re: Another quaetion... ;-) [message #383087 is a reply to message #383041] Tue, 28 September 2004 20:31 Go to previous messageGo to next message
Ed Burnette is currently offline Ed BurnetteFriend
Messages: 279
Registered: July 2009
Senior Member
That's true but you can make your own toolbar at the top of the editor
window if you want. The Compare editor does something like that.

--
Ed


"Sebastian Davids" <sdavids@gmx.de> wrote in message
news:cjc0k5$p0m$1@eclipse.org...
Editors do not have a local toolbar, they share the global one at the top.

Views have a local toolbar.
Re: Another quaetion... ;-) [message #383500 is a reply to message #383041] Thu, 30 September 2004 16:09 Go to previous message
Matthew Hatem is currently offline Matthew HatemFriend
Messages: 47
Registered: July 2009
Member
Sebastian, this bug report may be of interest to you:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=72114


Sebastian Davids wrote:
> Editors do not have a local toolbar, they share the global one at the top.
>
> Views have a local toolbar.
>
> See:
>
> http://eclipse.org/articles/Article-action-contribution/Cont ributing%20Actions%20to%20the%20Eclipse%20Workbench.html
>
>
> @@@@
>
> Sebastian
Previous Topic:Speed up??
Next Topic:Adding a control to the Toolbar action set
Goto Forum:
  


Current Time: Fri Apr 19 21:50:32 GMT 2024

Powered by FUDForum. Page generated in 0.03527 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top