Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Add feature (inside not active container shape)
Add feature (inside not active container shape) [message #908715] Wed, 05 September 2012 17:45 Go to next message
Rui Domingues is currently offline Rui Domingues
Messages: 186
Registered: October 2010
Senior Member
I've a doubt:

I'm trying to add a new element A as a child of an element B, and B is structure like:

B {
  ContainerShape - Active (*BTop)
     Shape       - Not Active
     ContainerShape - Not Active (*B1)
}

and A :
A {
  ContainerShape - Active
     Shape       - Not Active
     ContainerShape - Not Active
}


In my add feature, i'm trying to add A to (*B1), but so far, no matter what I do, even putting new A in (*B1) explicitly, (and I checked it is there), the new element is allways drawn inside (*BTop).

Is this because (*B1) is not active??

Thanks in advance
Rui
Re: Add feature (inside not active container shape) [message #909077 is a reply to message #908715] Thu, 06 September 2012 09:48 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1574
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Yes, only active shapes span a new coordinate system, inactive ones use the
coordinate system of their parent to display their children.

Michael
Re: Add feature (inside not active container shape) [message #909692 is a reply to message #909077] Fri, 07 September 2012 11:41 Go to previous message
Rui Domingues is currently offline Rui Domingues
Messages: 186
Registered: October 2010
Senior Member
Thanks. It seemed like that, but I needed confirmation.

Previous Topic:Layout after shape.setVisible
Next Topic:Greate Job! and I have some questions
Goto Forum:
  


Current Time: Fri Jul 25 23:25:40 EDT 2014

Powered by FUDForum. Page generated in 0.01524 seconds