text.setForeground(...) don't work as expected [message #912836] |
Fri, 14 September 2012 05:16  |
Eclipse User |
|
|
|
Hello all,
i am facing a strange problem, that i can't explain.
I try to implement my first editor for the Ecore-Meta model with Graphiti.
Actually i am able to add rectangle for EClasses. But i have a problem with the name.
I use Text as graphicsalgorithm.
I set explicitly text.setForeground(...(BLACK)), but the name is red.
I change the foreground color to green, it is still red
No matter what color(different from red) i used, the name is still red.
I can not explain this and i also don't know, what is wrong.
If someone can give some tips, i will really appreciate.
Many thanks in advance
Junior
|
|
|
|
|
|
|
|
|
|
|
Re: text.setForeground(...) don't work as expected [message #1006686 is a reply to message #1006637] |
Fri, 01 February 2013 07:37  |
Eclipse User |
|
|
|
Saniya,
I'm afraid changing that behavior is currently not possible. Please open an
enhancement bugzilla for this.
Another option you have is to enable auto updating for your diagram. The
editor will immediatly reflect the changes without drawing the red border.
Have a look into the isAutoUpdate... methods in the tool behavior provider.
Michael
|
|
|
Powered by
FUDForum. Page generated in 0.05136 seconds