Community
Participate
Working Groups
There are cases ( see workbench DefaultThemeListener#update with highlighted color ) when the CTabFolder#setSelectionBackground is called with color/percent arrays where colors are exactly two more than percents. The current implementation of CTabFolder#setSelectionBackground throws an IAE. In the original SWT (3.6) CTabFolder code this special case is handled differently and the "extra" (third) color in the colors array is the highlight color. We have to adjust the gradient colors arrays like this is done in the original SWT CTabFolder code and not to throw an IAE.
Fixed in CVS HEAD.