Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » text.setForeground(...) don't work as expected
text.setForeground(...) don't work as expected [message #912836] Fri, 14 September 2012 05:16 Go to previous message
Junior Lekane Nimpa is currently offline Junior Lekane Nimpa
Messages: 23
Registered: September 2012
Junior Member
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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Add actions/actionsets to the context-menu?
Next Topic:Problem with rendering of elements
Goto Forum:
  


Current Time: Mon May 20 16:20:48 EDT 2013

Powered by FUDForum. Page generated in 0.02268 seconds