Hi,
It looks like GMF 2.2 has a new philosophy for foreground color
handling. I used to leave color selection for users and provide defaults
via customized view factory. Something like this:
@Override
protected void initializeFromPreferences(View view) {
super.initializeFromPreferences(view);
LineStyle linestl = (LineStyle)view.getStyle(
NotationPackage.Literals.LINE_STYLE);
linestl.setLineColor(
FigureUtilities.RGBToInteger(color).intValue());
}
But now it doesn't work. What I mean by "doesn't work":
- I can't change FG color from Properties/Appearance (no effect)
- code in initializeFromPreferences changes only color
of the line between node's label and compartment (not
node's border)
- mindmap (CVS HEAD) example suffers from the same problem.
link to screenshot:
http://img99.imageshack.us/img99/8443/screenshotresource45defum2.png
Is this a GMF bug or I have missed something?