Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Eclipse(e4)RCP(How Can i display a confirmation popup before closing a eclipse(e4)rcp application)
icon5.gif  Eclipse(e4)RCP [message #1667997] Thu, 12 March 2015 09:26 Go to next message
Vishal Thakur is currently offline Vishal ThakurFriend
Messages: 1
Registered: March 2015
Junior Member
How Can i display a confirmation popup before closing a eclipse(e4)rcp application
Re: Eclipse(e4)RCP [message #1669304 is a reply to message #1667997] Thu, 12 March 2015 21:19 Go to previous messageGo to next message
Mateusz Malinowski is currently offline Mateusz MalinowskiFriend
Messages: 36
Registered: March 2013
Location: Bristol
Member
Hi Vishal,

I must say that initially I had no clue how to answer to your question, but I decided to do some reading. I managed to find this post and successfully implemented a pop-up dialog.
http://stackoverflow.com/questions/22173143/how-to-implement-iwindowclosehandler-in-eclipse-e4-rcp

There is one drawback. This is a window handler, so if you have multiple windows in your application, the above approach may not be the best solution.

Cheers,
Mateusz
Re: Eclipse(e4)RCP [message #1669399 is a reply to message #1669304] Thu, 12 March 2015 22:08 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2526
Registered: July 2012
Senior Member
In my translation example on GitHub I implemented something that is also able to handle multiple windows that are created at runtime:

https://github.com/fipro78/e4translationexample/blob/master/org.fipro.e4.translation/src/org/fipro/e4/translation/WindowCloseListenerAddon.java
Previous Topic:UILifeCycle.APP_STARTUP_COMPLETE not called when running as JUnit Plug-in Test (Luna)
Next Topic:Can we select and double icons using E4 CSS?
Goto Forum:
  


Current Time: Wed Nov 22 18:47:40 GMT 2017

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

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