Community
Participate
Working Groups
org.eclipse.epsilon.common.dt.launching.extensions.ModelTypeExtension.java l.105
SWT resource tracking shows: java.lang.Error: SWT Resource was not properly disposed This is due to org.eclipse.epsilon.common.dt.launching.extensions.ModelTypeExtension.java at l.105 Where it allocates an image descriptor: Image image = AbstractUIPlugin.imageDescriptorFromPlugin(contributingPlugin,configurationElement.getAttribute("icon")).createImage(); modelType.setImage(image); But it never disposes it as part of the lifecycle. Suggested approach: Remove dependency on the UI. Types are models, not SWT UI elements. Remove the dependency on the packages: import org.eclipse.swt.graphics.Image; import org.eclipse.ui.plugin.AbstractUIPlugin; Change ModelLabelProvider l.286 and ModelTypeLabelProvider l.25 to load the resource from the plugin.
Thanks for reporting this. I've made ModelTypeExtension.getImage() lazy in [1], so that code that doesn't make use of images doesn't have to worry about disposing of them either. [1] https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/commit/?id=df5b881707048f3f0874932a81f6de65ba75a54a