Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » view disposal: origin/cause(how to find out the origin/cause of view disposal)
view disposal: origin/cause [message #536959] Mon, 31 May 2010 16:57 Go to next message
Guy Rooms is currently offline Guy Rooms
Messages: 8
Registered: May 2010
Junior Member
I'm writing my own viewMgr for solving a particular problem.

Upon view creation I register the view instance with my viewMgr
Upon view disposal I unregister the view instance with my viewMgr.

Upon application shutdown, all views get disposed, as a result all the view instances get unregistered with my viewMgr. This is not what I want, because of need to persist the viewMgr data...

So, Is there a way to find out whether a view is disposed because of application shutdown ?

FYI:
- I did try registering (part)propertylisteners hoping the generated events would help me out, but it didn't serve my needs
- I tried looking for alternatives in ViewRegistry, ea,.. but helas

[Updated on: Tue, 01 June 2010 08:01]

Report message to a moderator

Re: view disposal: origin/cause [message #537053 is a reply to message #536959] Tue, 01 June 2010 08:02 Go to previous message
Guy Rooms is currently offline Guy Rooms
Messages: 8
Registered: May 2010
Junior Member
(for now) I ended up with "PlatformUI.getWorkbench().isClosing()", this seems to do the trick, yet I don't know if this is the (most) appropriate way.
Previous Topic:A cycle was detected when generating the classpath
Next Topic:Standalone use of Eclipse tools creating workspace at runtime
Goto Forum:
  


Current Time: Fri Oct 24 23:26:28 GMT 2014

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

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