Project: SWT
Bug 185204 [CTabFolder] CTabItem.drawClose could preserve color
Reported: 2007-05-02 15:32:38 | Status: resolved fixed

CTabItem.drawClose creates and disposes of a color. Since this happens on each paint, it would be better to cache. at org.eclipse.swt.custom.CTabItem.drawClose(CTabItem.java:197) at org.eclipse.swt.custom.CTabItem.drawSelected(CTabItem.java:423) at org.eclipse.swt.custom.CTabItem.onPaint(CTabItem.java:790)

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabItem.java