view reference not garbage collected after dispose [message #629103] |
Mon, 27 September 2010 08:49 |
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..
|
|
|
Powered by
FUDForum. Page generated in 0.02972 seconds