Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » view reference not garbage collected after dispose (view reference not garbage collected after dispose )
view reference not garbage collected after dispose [message #629103] Mon, 27 September 2010 08:49
georgee  is currently offline georgee Friend
Messages: 2
Registered: September 2010
Junior Member
Hello all,

I face an issue with disposing an eclipse view

I have a view implemented as follows:

public class MyView extends ViewPart implements
ISaveablePart2,

IPartListener,

IPrintableView{


//more code here
}


I register the same view as a partlistener to active workbench. (This i do in the constructor of the view)

PlatformUI.getWorkbench().getActiveWorkbenchWindow ().getPartService()

.addPartListener(this);


The problem i face is that with the above partlistner registration in place, my view is not getting removed from memory when i dispose the same. (I have verified it using a profiler) I do remove the partlistner using the code below(with in dispose method):

PlatformUI.getWorkbench().getActiveWorkbenchWindow ().getPartService()

.removePartListener(this); but this does not help.


Any inputs regarding this would be greatly appreciated. Thanks in advance.

Georgee..
Previous Topic:Eclipse problem on OpenSuse 11.2
Next Topic:view reference not garbage collected after dispose
Goto Forum:
  


Current Time: Sat Nov 29 06:22:25 GMT 2014

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

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