Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » eRCP » Re: Is it posssible to catch eWorkbench CLOSE event?
Re: Is it posssible to catch eWorkbench CLOSE event? [message #1040] Tue, 26 May 2009 16:10 Go to next message
Danail Nachev is currently offline Danail NachevFriend
Messages: 110
Registered: July 2009
Senior Member
Usually it is better to state what you are trying to accomplish instead of
asking how to accomplish something concrete, because the concrete thing you want
to do might not be possible, but there might be other solutions to your problem,
which are more suitable. The other problem is that I can suggest a way to do
this, but it serves no purpose to you, because you want different event. Let me
suggest some:

1) shell close event
2) menu item listener (if you are able to get access to the menu, through the shell)
3) using org.eclipse.ui.IWindowListener you will be notified when
IWorkbenchWindows are closed

There might be other ways, which I'm not aware currently of. But the best
solution to your problem you can get if you describe what you are trying to
accomplish.

P.S.
eRCP newsgroup has moved to eclipse.ercp. I'm copying this thread over.

Arunagiri.K wrote:
> Dear All,
> Is it possible to catch the workbench's close event (Exit menu item's
> event on the workbench menu)? If yes, how?
>
> Thanks.
>
> -arun
>
>
>
Re: Is it posssible to catch eWorkbench CLOSE event? [message #1124 is a reply to message #1040] Thu, 28 May 2009 14:04 Go to previous messageGo to next message
Arunagiri.K is currently offline Arunagiri.KFriend
Messages: 41
Registered: July 2009
Member
Thanks to Matthias & Danail.

I want to listen the CLOSE event because, if the user closes the
workbench/application unknowingly it will immediately close. I just want
to raise a confirm message, so the user can know the application is
closing and save the unsaved data if any or just cancel the close.

How can I do this?

Thanks to the great support.

-arun
Re: Is it posssible to catch eWorkbench CLOSE event? [message #499663 is a reply to message #1040] Mon, 23 November 2009 16:17 Go to previous messageGo to next message
pragun@imcsystemsuk.com is currently offline pragun@imcsystemsuk.comFriend
Messages: 8
Registered: July 2009
Junior Member
Hi Dannail,

I just posted a new topic http://www.eclipse.org/forums/index.php?t=msg&th=158260& amp;start=0&S=d53c839c239efd3b5a176fb3ce25bccb

Could you please suggest ?

Many thanks in advance.
Re: Is it posssible to catch eWorkbench CLOSE event? [message #563026 is a reply to message #1040] Thu, 28 May 2009 14:04 Go to previous messageGo to next message
Arunagiri.K is currently offline Arunagiri.KFriend
Messages: 41
Registered: July 2009
Member
Thanks to Matthias & Danail.

I want to listen the CLOSE event because, if the user closes the
workbench/application unknowingly it will immediately close. I just want
to raise a confirm message, so the user can know the application is
closing and save the unsaved data if any or just cancel the close.

How can I do this?

Thanks to the great support.

-arun
Re: Is it posssible to catch eWorkbench CLOSE event? [message #564083 is a reply to message #1040] Mon, 23 November 2009 16:17 Go to previous message
pragun@imcsystemsuk.com is currently offline pragun@imcsystemsuk.comFriend
Messages: 8
Registered: July 2009
Junior Member
Hi Dannail,

I just posted a new topic http://www.eclipse.org/forums/index.php?t=msg&th=158260& amp;start=0&S=d53c839c239efd3b5a176fb3ce25bccb

Could you please suggest ?

Many thanks in advance.
Previous Topic:eRCP application WorkbenchAdvisor
Next Topic:Animated GIF on WM
Goto Forum:
  


Current Time: Sat Nov 09 03:17:02 GMT 2024

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

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

Back to the top