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: 2526
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: 2526
Registered: July 2012
Senior Member
Where do you try to retrieve the handler?
Previous Topic:add views dynamically when using the compat layer
Next Topic:configure compatibility layer's appModel
Goto Forum:
  


Current Time: Sat Nov 25 00:26:40 GMT 2017

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

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