Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Clicking the "X" close button to close the RCP app will not close the application. it leav
Clicking the "X" close button to close the RCP app will not close the application. it leav [message #461960] Thu, 18 January 2007 21:18 Go to next message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
This recently started happening when I moved to eclipse 3.2. Anyone have any
suggestions on how to fix this?
Re: Clicking the "X" close button to close the RCP app will not close the application. it [message #461961 is a reply to message #461960] Thu, 18 January 2007 21:42 Go to previous messageGo to next message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
It looks like the workbench never gets shutdown if I choose the "X". One
workaround is as follows, but I am not certain it is legal.

public class ApplicationWorkbenchWindowAdvisor extends
WorkbenchWindowAdvisor {


public boolean preWindowShellClose() {

PlatformUI.getWorkbench().close();

return false;


}

.....

}


"Drew Frantz" <drew@acm.org> wrote in message
news:eooo79$765$1@utils.eclipse.org...
> This recently started happening when I moved to eclipse 3.2. Anyone have
any
> suggestions on how to fix this?
>
>
>
Re: Clicking the "X" close button to close the RCP app will not close the application. it [message #461963 is a reply to message #461961] Fri, 19 January 2007 00:15 Go to previous message
Ilya Shinkarenko is currently offline Ilya ShinkarenkoFriend
Messages: 22
Registered: July 2009
Junior Member
Hi,

hm.. check if something triggers the
IWorkbenchWindowConfigurer.setExitOnLastWindowClose(true)
method, though I am not quite sure.

Ilya Shinkarenko
--
www.rcp-training.com
www.weiglewilczek.com



Drew Frantz wrote:
> It looks like the workbench never gets shutdown if I choose the "X". One
> workaround is as follows, but I am not certain it is legal.
>
> public class ApplicationWorkbenchWindowAdvisor extends
> WorkbenchWindowAdvisor {
>
>
> public boolean preWindowShellClose() {
>
> PlatformUI.getWorkbench().close();
>
> return false;
>
>
> }
>
> ....
>
> }
>
>
> "Drew Frantz" <drew@acm.org> wrote in message
> news:eooo79$765$1@utils.eclipse.org...
>> This recently started happening when I moved to eclipse 3.2. Anyone have
> any
>> suggestions on how to fix this?
>>
>>
>>
>
>
Previous Topic:Enabling and disabling actions according to user priviledges
Next Topic:RCP / Spring JPA - Need Example
Goto Forum:
  


Current Time: Sat Apr 27 05:14:53 GMT 2024

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

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

Back to the top