Skip to main content



      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 10:24 Go to next message
Eclipse UserFriend
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 00:31 Go to previous messageGo to next message
Eclipse UserFriend
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 05:08 Go to previous messageGo to next message
Eclipse UserFriend
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 06:59 Go to previous message
Eclipse UserFriend
Where do you try to retrieve the handler?
Previous Topic:WorkbenchWindowAdvisor per window
Next Topic:customize workbench with compatibility layer
Goto Forum:
  


Current Time: Sat Jul 05 11:56:19 EDT 2025

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

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

Back to the top