Text foreground color always red? [message #758554] |
Wed, 23 November 2011 11:20  |
Eclipse User |
|
|
|
Using Graphiti 0.8.1, I'm having a weird behavior where whatever the way I try to set the text foreground color, it always end up being displayed in red...
I verified the generated xmi and the colors are there and seem to be referenced correctly by the node (also reflected in the Outline view), but somehow the foreground color is ignored.
It wasn't doing that when I worked on the tutorial with the example EClass model, but it is the case since I'm now refering to my own EMF Model.
So I'm wondering if this is some kind of build-in validation hint (although my EMF model is correct as far as I can tell and the generated xmi validates)?
Did anyone ever encounter something like that?
Thanks for you help,
-Patrick Talbot
|
|
|
|
Re: Text foreground color always red? [message #758637 is a reply to message #758629] |
Wed, 23 November 2011 22:14  |
Eclipse User |
|
|
|
That was it!
Actually I discovered that my UpdateFeatures updateNeeded were called twice, once with a context PictogramElement being a Shape (the RoundedRectangle) then with a ContainerShape.
Since I was getting the value of the inside Text by testing instanceof ContainerShape, the first time the value stayed null, so it was found to be different from the Model value...
Thanks for the hint Felix!
-Patrick
|
|
|
Powered by
FUDForum. Page generated in 0.05050 seconds