Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsfigure's border color in GMF 2.2
https://www.eclipse.org/forums/index.php/mv/msg/68815/215746/#msg_215746
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:
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/screenshotresource45de fum2.png
Is this a GMF bug or I have missed something?
--
Greetings,
Seweryn]]>Seweryn Niemiec2009-01-17T15:39:11-00:00Re: figure's border color in GMF 2.2
https://www.eclipse.org/forums/index.php/mv/msg/68815/217042/#msg_217042
Does anyone create editor based on GMF 2.2? Do you have any problems
with figures' colors?
Seweryn Niemiec wrote:
> 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/screenshotresource45de fum2.png
>
> Is this a GMF bug or I have missed something?
--
Greetings,
Seweryn]]>Seweryn Niemiec2009-02-02T09:57:51-00:00Re: figure's border color in GMF 2.2
https://www.eclipse.org/forums/index.php/mv/msg/68815/659070/#msg_659070
Thomas Buchmann2011-03-10T21:21:16-00:00Re: figure's border color in GMF 2.2
https://www.eclipse.org/forums/index.php/mv/msg/68815/659162/#msg_659162
I got the same problem and i solve it by commenting the refreshFontColor() in the XXXvalueEditpart.refreshVisuals() method correspnding to teh edit part you want to change its foreground.