I did not find a jface group and so posting here. I have an action
(MyAction.java) that inherits from SelectionAction. MyAction uses dynamic
images to set the imageDescriptor of the action. I am disposing off this
image in the dispose method as follows:
public void dispose()
{
super.dispose();
if (this.myImage != null && !this.myImage.isDisposed())
{
this.myImage.dispose();
this.myImage = null;
}
}
This function never gets called leading to image leaks in my code. Can
someone please shed some light on the lifecycle of an action? When is the
dispose() method called? Why is it not being called in this case?