Skip to main content


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 08:50
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:view reference not garbage collected after dispose
Next Topic:Job not guaranteed to be scheduled ? eg @startup
Goto Forum:
  


Current Time: Fri Apr 19 23:58:38 GMT 2024

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

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

Back to the top