Catch closing event of a part (Eclipse e4 RCP) [message #1449122] |
Mon, 20 October 2014 23:52 |
Thomas Zwickl 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
|
|
|
Powered by
FUDForum. Page generated in 0.01819 seconds