Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Strange Behaviour (Tree of Shapes)
Strange Behaviour (Tree of Shapes) [message #906045] Fri, 31 August 2012 10:09 Go to next message
Rui Domingues is currently offline Rui Domingues
Messages: 186
Registered: October 2010
Senior Member
I Have structure of shapes like this {
ContainerShape (InvisibleRect)
-Shape (Text)
-ContainerShape(InvisibleRect)
  -ContainerShape (Rectangle, lines=gray, ...)
    -Shape (Text)


It should render something like Label followed by a rectangle with text inside, and it appears, but the rectangle with gray lines is appearing with dashed red lines, which is not set anywhere.
Actually I put a breakpoint at the return of add, and all is set as it should.

Do you know why? Is it something related to my hierarchy?


I need that way because i'm creating a highly polymorphic structure promoting reuse of code.


Thanks.







}

[Updated on: Fri, 31 August 2012 10:10]

Report message to a moderator

Re: Strange Behaviour (Tree of Shapes) [message #906057 is a reply to message #906045] Fri, 31 August 2012 10:36 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1524
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Rui,

the dashed red line usually comes from an update feature returning true on updateNeeded. Probably your update feature expects something different that the diagram contains.

Michael
Re: Strange Behaviour (Tree of Shapes) [message #906069 is a reply to message #906057] Fri, 31 August 2012 10:56 Go to previous message
Rui Domingues is currently offline Rui Domingues
Messages: 186
Registered: October 2010
Senior Member
Yeap. You are right. I see now why. I changed my ADD feature, but not the update feature. I didn't know this behaviour could be triggered.

Thanks
Previous Topic:Using Swing with Graphiti
Next Topic:Idioms support
Goto Forum:
  


Current Time: Wed Apr 16 16:11:43 EDT 2014

Powered by FUDForum. Page generated in 0.02172 seconds