[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Found one way...is there a better way?
|
- From: jbognar@xxxxxxxxxx (James Bognar)
- Date: 2 Aug 2001 22:07:21 GMT
- Newsgroups: eclipse.tools
- Organization: http://www.eclipse.org
- User-agent: NewsPortal 0.23
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?