Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Howto add a closelistener to a MPart?(Is there a way to know, when the part is Destroyed "from outside" the part?)
Howto add a closelistener to a MPart? [message #1211310] Tue, 26 November 2013 11:21 Go to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 260
Registered: July 2012
Senior Member
Hello!
I found the EPartService which allows me to listen to the parts,
when they are activated, deactivated, shown, hidden.

Is it possible to know when a part is closed?
Or what would be the right way to clean up the resources?


And again: I need to listen for the Part cycle from "outside"
(I will do something with a Shell, when the part is shown)
Further I wouldn't like to add a special @OnDestroy annotated method to the part, since my methods would only work with that parts, which would contain this method.
Re: Howto add a closelistener to a MPart? [message #1211540 is a reply to message #1211310] Tue, 26 November 2013 13:45 Go to previous message
Eclipse UserFriend
From the outside you could listen to the event broker for events where toBeRendered is changed to false and the element is an MPart.
Previous Topic:Setting IEclipsePreferences in headless build
Next Topic:Overriding Edit command in Application.e4xmi from fragment.e4xmi
Goto Forum:
  


Current Time: Fri Apr 26 22:55:33 GMT 2024

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

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

Back to the top