Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Background issue after upgrade
Background issue after upgrade [message #501790] Thu, 03 December 2009 19:19
Volker Wegert is currently offline Volker WegertFriend
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.
Previous Topic:Initializing ViewProviders programmatically ?
Next Topic:Accessing the editingdomain from another Plugin
Goto Forum:
  


Current Time: Thu Apr 18 23:18:09 GMT 2024

Powered by FUDForum. Page generated in 0.01800 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top