Background issue after upgrade [message #501790] |
Thu, 03 December 2009 19:19 |
Volker Wegert Messages: 182 Registered: July 2009 |
Senior Member |
|
|
Hello all,
I'm currently upgrading an application from GMF 2.0.1 to 2.2.1 and ran into
the following problem. My model contains several elements with compartments
that have a fixed background color set - mostly colored rectangles that can
contain other elements. The elements color is not normally changed
manually. In the old version of the application, the elements always get that
background color.
After upgrading and re-generating, the elements are no longer reliably colored
when I open models created with the old version of the application. In newly
created models the background color is set correctly, though. It looks like
the background color of the EditPart is set correctly, then overwritten with
white by refreshBackgroundColor(). This value is taken from the NodeImpl
styles list - probably the default value because the value isn't set in the
notation model.
Now I could just override refreshBackgroundColor() to reset the background
color after all this, but that somehow doesn't feel right - I'd say the style
should default to the color set in the gmfgraph model, not white. Am I wrong?
Thanks
Volker
--
* Volker Wegert * http://www.volker-wegert.de/contact *
141 Reasons why you can't find your system administrator: 60. They're at a
travel agent's, booking a vacation to friendlier place, like Iraq.
|
|
|
Powered by
FUDForum. Page generated in 0.04388 seconds