Eclipse shut down => Status Flag? [message #273188] |
Fri, 01 October 2004 05:52  |
Eclipse User |
|
|
|
Originally posted by: leo.nowhere.com
Does anybody know, if there is a status flag which could be retrieved, if
Eclipse is currently shut down or not?
|
|
|
|
|
|
|
|
Re: Eclipse shut down => Status Flag? [message #273435 is a reply to message #273387] |
Wed, 06 October 2004 04:02  |
Eclipse User |
|
|
|
Originally posted by: leo.nowhere.com
Rafael Chaves wrote:
> Common idioms for what you want is:
> boolean shuttingDown = Platform.getBundle("org.eclipse.osgi").getState()
> == Bundle.STOPPING
Does not help at all. Returns also all the time the same state, false!
> or
> boolean shuttingDown = context.getBundle("org.eclipse.osgi").getState() ==
> Bundle.STOPPING
I could only create something like context.getBundle().getState() but this
does not help at all. Also Platform.getBundle(myEditorString).getState
returns the same result.
So, unfortunatley this does not help at all. :(
LeO
P.S.: I click on the red X of the Window. Independent if I wanna save
something or not, it has the same effect.
> Rafael
> > > What are you trying to accomplish? Please describe your use case.
> > When Eclipse is *shutting* down I wanna block any further activation, i.e.
> > it should shut down quicker.
> > > P.S.: Or do you want to know if Eclipse is *shutting* down?
> > Yes, and if I have this info, then no further init-steps will be
> > processed. Which is quite annoying in developement-mode, but as well in
> > real-time! And is useless to process init-step when Eclipse is *shutting*
> > down.
> > LeO
|
|
|
Powered by
FUDForum. Page generated in 0.05772 seconds