[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: Found one way...is there a better way?
|
- From: pashah@xxxxxxxxxx (Pratik Shah)
- Date: 6 Aug 2001 19:19:45 GMT
- Newsgroups: eclipse.tools
- Organization: http://www.eclipse.org
- User-agent: NewsPortal 0.23
Just add an IPartListener to the Workbench page your editor's on.
Pratik Shah
James Bognar wrote:
> 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?