Community
Participate
Working Groups
The ExpandBar that is introduced in Eclipse 3.2 M5 provides a Windows Explorer like bar widget. The background of this SWT widget has linked to Windows theme, so that it changes based on Windows user setting. Although ExpandBar provides set background methods, running ExpandBar.setBackground(Color) has no effect on UI. However some SWT based applications, including my current RCP project, may use ExpandBar for different purpose (ie rather than as a Windows Explorer style bar). setBackground() should guarantee the effect of setting background. If users want to stick with the current behaviour as in Eclipse M5 (or vice versa), they should be able to do this via adding a SWT flag to the constructor. Allowing user to set ExpandBar's background can encourage the use of ExpandBar as a general purpose widget.
This sounds reasonable to me. If the programmer sets the background, we could stop drawing with the theme.
What about setForeground() and setFont() ? Tony: do you need foreground and font too ? Steve: since you are okay not using the theme to draw background we can extent the idea to foregrond and font I suppose.
Yes. AS soon as the guy touches these, he is not longer using the theme.
Felipe, I have not yet touched on setForeground() and setFont(). I agree on Steve's comment that the default appearance should be changeable under this unusual scenario.
fixed in HEAD > 20060418