Community
Participate
Working Groups
By running the SAP memory analyser tool (http://www.eclipse.org/mat/), I remarked that most instances of org.eclipse.gmf.runtime.diagram.ui.editpolicies.PopupBarEditPolicy have an empty imageimagesToBeDisposed array list. Below is the current initialization : /** Images created that must be deleted when popup bar is removed */ protected List imagesToBeDisposed = new ArrayList(); To avoid memory wasted it would be nice to have a lazy initialization : ... myDisabledImage = new Image(Display.getCurrent(), theImage, SWT.IMAGE_DISABLE); if (imageToBeDisposed == null) imageToBeDisposed = new ArrayList(); imagesToBeDisposed.add(myDisabledImage); ...
Created attachment 103183 [details] contains described optimization
Committed to HEAD
[target cleanup] 2.1 RC was the original target milestone for this bug
[GMF Restructure] Bug 319140 : product GMF and component Runtime Diagram was the original product and component for this bug