Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 23:52
Thomas Zwickl is currently offline Thomas ZwicklFriend
Messages: 37
Registered: May 2014
Member
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 23:53]

Report message to a moderator

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


Current Time: Wed Jan 27 20:44:34 GMT 2021

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

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

Back to the top