Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How can we get a notification when the workbench window is about to close
How can we get a notification when the workbench window is about to close [message #462855] Thu, 01 February 2007 07:46 Go to next message
Eclipse UserFriend
In my RCP application i need to show a dialog box "close the application?"when the user clicks on the close button of the window.I am new to RCP please help.....
How can i do this?please help.....
Re: How can we get a notification when the workbench window is about to close [message #462856 is a reply to message #462855] Thu, 01 February 2007 08:08 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

override the method
public boolean preWindowShellClose()

of your WorkbenchWindowAdvisor.

HTH,
Stefan

swetha schrieb:
> In my RCP application i need to show a dialog box "close the application?"when the user clicks on the close button of the window.I am new to RCP please help.....
> How can i do this?please help.....
Re: How can we get a notification when the workbench window is about to close [message #462858 is a reply to message #462855] Thu, 01 February 2007 08:17 Go to previous messageGo to next message
Eclipse UserFriend
Hi Swetha,

Use the method preWindowShellClose() of the class ApplicationWorkbenchWindowAdvisor.




cheers!
Re: How can we get a notification when the workbench window is about to close [message #462888 is a reply to message #462855] Fri, 02 February 2007 00:38 Go to previous message
Eclipse UserFriend
Thank u very much........
Its working!!!!!!!
Thanks a lot......
Previous Topic:Editor loses focus - disable save as
Next Topic:ErrorLog-View includation?
Goto Forum:
  


Current Time: Wed Apr 23 03:55:42 EDT 2025

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

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

Back to the top