Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » catching eclipse close event
catching eclipse close event [message #75548] Mon, 16 June 2003 14:50 Go to next message
Eclipse UserFriend
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 #76185 is a reply to message #75548] Tue, 17 June 2003 11:33 Go to previous messageGo to next message
Alexander Kitaev is currently offline Alexander KitaevFriend
Messages: 26
Registered: July 2009
Junior Member
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
Re: catching eclipse close event [message #78522 is a reply to message #76185] Thu, 19 June 2003 17:12 Go to previous message
Eclipse UserFriend
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
Previous Topic:Problems during startup;Check .log file
Next Topic:Major Problem with IResourceChangeListener and Import
Goto Forum:
  


Current Time: Mon Jul 22 07:42:14 GMT 2024

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

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

Back to the top