Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » MenuManager prevents ApplicationWindow from closing properly
MenuManager prevents ApplicationWindow from closing properly [message #442378] Thu, 02 September 2004 16:18 Go to next message
Eclipse UserFriend
Originally posted by: lacougarbage.yahoo.ca

Hi have a class that extends ApplicationWindow for which I need a
MenuManager. When I exit my ApplicationWindow with the upper right
window 'X' (on XP), the window closes from view but still runs in
Eclipse JVM. (It does not show 'Terminate' in the 'debug' perspective)

If I remove the MenuManager from my application, I don't have any
problem closing the application with the window close 'X'.

Any suggestion ?
Re: MenuManager prevents ApplicationWindow from closing properly [message #442382 is a reply to message #442378] Thu, 02 September 2004 18:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lacougarbage.yahoo.ca

F lacou wrote:
> Hi have a class that extends ApplicationWindow for which I need a
> MenuManager. When I exit my ApplicationWindow with the upper right
> window 'X' (on XP), the window closes from view but still runs in
> Eclipse JVM. (It does not show 'Terminate' in the 'debug' perspective)
>
> If I remove the MenuManager from my application, I don't have any
> problem closing the application with the window close 'X'.
>
> Any suggestion ?

I managed to close the application by putting a Listener on the Shell
Close event and invoking System.exit(0). But I'm not sure that's the
best way of doing it.

I also tried to close my ApplicationWindow with window.close(), but that
did not work... And I believe it should have.

Could it be because there is stuff not disposed() properly ?
Re: MenuManager prevents ApplicationWindow from closing properly [message #442386 is a reply to message #442378] Thu, 02 September 2004 21:23 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Please ask questions about JFace components in the eclipse.platform
newsgroup:

news://news.eclipse.org/eclipse.platform

"F lacou" <lacougarbage@yahoo.ca> wrote in message
news:ch7gue$adu$1@eclipse.org...
> Hi have a class that extends ApplicationWindow for which I need a
> MenuManager. When I exit my ApplicationWindow with the upper right window
> 'X' (on XP), the window closes from view but still runs in Eclipse JVM.
> (It does not show 'Terminate' in the 'debug' perspective)
>
> If I remove the MenuManager from my application, I don't have any problem
> closing the application with the window close 'X'.
>
> Any suggestion ?
Previous Topic:opengl GLContext error on PDE.
Next Topic:Really bad hack, someone suggest something better please :)
Goto Forum:
  


Current Time: Thu Apr 25 06:32:52 GMT 2024

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

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

Back to the top