Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » Catch closing event of a part (Eclipse e4 RCP)
Catch closing event of a part (Eclipse e4 RCP) [message #1449122] Mon, 20 October 2014 19:52
Eclipse UserFriend
I'm currently working on a eclipse e4 RCP application and I have a part that serves as a job manager where the user can see all active jobs and their progresses, like one in eclipse. The problem is now that the user can open the progress part by double clicking in the toolbar and he should also be able to close the progress part whenever he wants, but instead of disposing the part I want to just make it invisible. In the Application.e4xmi I set the corresponding part to be closeable so the user can close it whenever he wants. My idea was now that when the user presses the x to close the part I catch the close event set the part to be invisible and then proceed without actually closing it. The next time the user wants to open the part again I just set it back to visible ...
So is there any event, interface or listener I can implement to catch the closing event and prevent the part from getting disposed?

Any help or pointers would be appreciated.

[Updated on: Mon, 20 October 2014 19:53] by Moderator

Previous Topic:Moveable toolbars
Next Topic:E4 RCP and Database
Goto Forum:
  


Current Time: Sun Jul 13 15:50:52 EDT 2025

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

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

Back to the top