Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 12:46 Go to next message
swetha  is currently offline swetha Friend
Messages: 10
Registered: July 2009
Junior Member
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 13:08 Go to previous messageGo to next message
Stefan Zugal is currently offline Stefan ZugalFriend
Messages: 59
Registered: July 2009
Member
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 13:17 Go to previous messageGo to next message
Rohit Khariwal is currently offline Rohit KhariwalFriend
Messages: 114
Registered: July 2009
Senior Member
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 05:38 Go to previous message
swetha  is currently offline swetha Friend
Messages: 10
Registered: July 2009
Junior Member
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: Sun Oct 13 17:28:39 GMT 2024

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

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

Back to the top