[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Found one way...is there a better way?

I found that if the following returns null, then the view has been
disposed: 
AbstractUIPlugin.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView(viewId)

Is this the best way to do it?  And will it always work?
   

James Bognar wrote:

> What's the easiest way to determine if a ViewPart object has been
> disposed.  In other words, how can I tell if a view has been closed by a
> user.  Is there a way to get to this info through the AbstractUIPlugin
> class?