Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » How to close all rcp application windows
How to close all rcp application windows [message #1602453] Thu, 05 February 2015 15:24 Go to next message
Gal Rogozinski is currently offline Gal RogozinskiFriend
Messages: 40
Registered: June 2014
Member
Hello,

I have a multi-windowed eclipse rcp application where the windows are not childs of each other.

When I click on the "x" (under windows) of the main window, how do I make other windows close with it?

Thanks!!
Re: How to close all rcp application windows [message #1603367 is a reply to message #1602453] Fri, 06 February 2015 05:31 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
You can do this by adding an IWindowCloseHandler. This can be done e.g. in an addon when listening for the UI event regarding application model changes.

I have implemented this in my translation example https://github.com/fipro78/e4translationexample/blob/master/org.fipro.e4.translation/src/org/fipro/e4/translation/WindowCloseListenerAddon.java
Re: How to close all rcp application windows [message #1611356 is a reply to message #1603367] Wed, 11 February 2015 10:08 Go to previous messageGo to next message
Gal Rogozinski is currently offline Gal RogozinskiFriend
Messages: 40
Registered: June 2014
Member
Thanks!!
Say, how do I retireve a handler that is defined in e4xmi?
I tried the handlerService and model Service but I couldn't find a method that works....

Re: How to close all rcp application windows [message #1611493 is a reply to message #1611356] Wed, 11 February 2015 11:59 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Where do you try to retrieve the handler?
Previous Topic:WorkbenchWindowAdvisor per window
Next Topic:customize workbench with compatibility layer
Goto Forum:
  


Current Time: Thu Apr 25 10:59:45 GMT 2024

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

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

Back to the top