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 #629104] Mon, 27 September 2010 04:50
georgee  is currently offline georgee
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:view reference not garbage collected after dispose
Next Topic:Job not guaranteed to be scheduled ? eg @startup
Goto Forum:
  


Current Time: Thu Jul 24 23:45:27 EDT 2014

Powered by FUDForum. Page generated in 0.07277 seconds