Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Clear selection in ObjectPluginAction class when part is closed
Clear selection in ObjectPluginAction class when part is closed [message #797693] Mon, 13 February 2012 20:12
Wei Liu is currently offline Wei LiuFriend
Messages: 3
Registered: July 2009
Junior Member

We found that the selection in ObjectPluginAction class still references a model objects when the model is closed. We are wondering if it's a good idea to set empty selection in the partClosed method:

public void partClosed(IWorkbenchPartReference partRef) {
if (activePart != null && partRef.getPart(false) == activePart) {
activePart = null;
// avoid memory leaks - OK?
Previous Topic:Event and notification for stop of extension plugins
Next Topic:Status bar icons not working correctly in eclipse 4
Goto Forum:

Current Time: Sun May 27 17:58:07 GMT 2018

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

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

Back to the top