Skip to main content



      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
Eclipse UserFriend
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] by 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
Eclipse UserFriend
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
Eclipse UserFriend
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 Jul 23 06:26:13 EDT 2025

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

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

Back to the top