catching eclipse close event [message #75548] |
Mon, 16 June 2003 14:50 |
Eclipse User |
|
|
|
Originally posted by: anthony.saucet.freesbee.fr
In my perspective I'm only using views and I would like to listen an
event: when eclipse shuts down.
No pb when a view is being closed, I 've added a partListener.
But when eclipse is being closed I want to catch the event and do some
things before any actions done by eclipse.
does anybody know how to do?
thx
anthony
|
|
|
|
Re: catching eclipse close event [message #78522 is a reply to message #76185] |
Thu, 19 June 2003 17:12 |
Eclipse User |
|
|
|
Originally posted by: anthony.saucet.freesbee.fr
could you explain me the process when eclipse is shutting down cause
something is not working.
I've overwritten shutdown() but to close the views I need to get them,
then if the views are not null, close them. but I can't get the views.
here's the code:
public void shutdown(){
paramV = (ParamView) PlatformUI.getWorkbench()
.getActiveWorkbenchWindow().getActivePage()
.findView("com.itlity.luciol.tree.ParameterView");
winPage = LaunchXML.winPage;
if (paramV != null) winPage.hideView(paramV);
}
anthony
Alexander Kitaev wrote:
> You may try to overwrite Plugin.shutdown() method in your plug-in class. It
> is called when eclipse is going to close.
> Another possible option is to listen for windowClosed event, for this
> you'll have to add window listener to the IWorkbench instance
> On Mon, 16 Jun 2003 14:50:21 +0000 (UTC), anthony
> <anthony.saucet@freesbee.fr> wrote:
> > In my perspective I'm only using views and I would like to listen an
> > event: when eclipse shuts down.
> > No pb when a view is being closed, I 've added a partListener.
> > But when eclipse is being closed I want to catch the event and do some
> > things before any actions done by eclipse.
> >
> > does anybody know how to do?
> >
> > thx
> > anthony
> >
> >
> --
> best regards,
> alexander kitaev
|
|
|
Powered by
FUDForum. Page generated in 0.02677 seconds