Project: SWT
Bug 270670 CTabFolder should not cache borderColor
Reported: 2009-03-31 16:59:39 | Status: resolved fixed

CTabFolder.borderColor is caching a system color. System colors should not be cached because they need to change when the user changes the system color, which could be at any time. The border color should be looked up every time it is needed for drawing, using getDisplay().getSystemColor().

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