Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Hook before the workbench state is closed?
Hook before the workbench state is closed? [message #436720] Thu, 15 September 2005 13:18 Go to next message
Florian Thienel is currently offline Florian ThienelFriend
Messages: 17
Registered: July 2009
Junior Member
Hi!

Is there a hook method that is called before when the main window is
closed but before the workbench state is stored?

In my application I need to close some editors when the application is
closed to prevent this editors from beeing opened when the application
is started again.

The method preWindowShellClose() only works for the case when the window
is closed by the user.

Florian
Re: Hook before the workbench state is closed? [message #436893 is a reply to message #436720] Tue, 20 September 2005 00:29 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 440
Registered: July 2009
Senior Member
You should be able to find answers about this question searching the
archive of this newsgroup.

PaScaL
Florian Thienel wrote:
> Hi!
>
> Is there a hook method that is called before when the main window is
> closed but before the workbench state is stored?
>
> In my application I need to close some editors when the application is
> closed to prevent this editors from beeing opened when the application
> is started again.
>
> The method preWindowShellClose() only works for the case when the window
> is closed by the user.
>
> Florian
Re: Hook before the workbench state is closed? [message #436922 is a reply to message #436720] Tue, 20 September 2005 09:13 Go to previous messageGo to next message
Stefan Langer is currently offline Stefan LangerFriend
Messages: 236
Registered: July 2009
Senior Member
Can't you use the stop method of the plugin that provides the editor to
close the editor manually?

Stefan

Florian Thienel wrote:
> Hi!
>
> Is there a hook method that is called before when the main window is
> closed but before the workbench state is stored?
>
> In my application I need to close some editors when the application is
> closed to prevent this editors from beeing opened when the application
> is started again.
>
> The method preWindowShellClose() only works for the case when the window
> is closed by the user.
>
> Florian
Re: Hook before the workbench state is closed? [message #436926 is a reply to message #436922] Tue, 20 September 2005 10:07 Go to previous message
Florian Thienel is currently offline Florian ThienelFriend
Messages: 17
Registered: July 2009
Junior Member
The stop method is called after the workbench window is closed so I
assume that information about the open editors is also written before
the invokation of the stop method.

I'll invesitgate the ISaveParticipat-mechanism next.

Florian

Stefan Langer wrote:
> Can't you use the stop method of the plugin that provides the editor to
> close the editor manually?
>
> Stefan
>
> Florian Thienel wrote:
>
>> Hi!
>>
>> Is there a hook method that is called before when the main window is
>> closed but before the workbench state is stored?
>>
>> In my application I need to close some editors when the application is
>> closed to prevent this editors from beeing opened when the application
>> is started again.
>>
>> The method preWindowShellClose() only works for the case when the
>> window is closed by the user.
>>
>> Florian
Previous Topic:Internal Browser and title
Next Topic:How to open a custom IEditorInput in a single instance?
Goto Forum:
  


Current Time: Sun Dec 08 18:39:20 GMT 2024

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

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

Back to the top