Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: mikewhit on November 10, 2004, 07:37:26 am
-
The 'Delegate' page in the EA Help file appears to show Component2 nested inside Component1.
How do they do that ? Must have trawled through the EA help file and the EAUserGuide page by page; drag-drop and embed don't seem to be the way ...
I want to show a component that realises a DB interface class (which itself has a 'RequiredInterface' to the DB) as part of another component.
Thx.
-
Just a guess since I haven't EA at hand: is the component set to composite?
-
Mike
I use this type of construct frequently and have never had a problem? I just create the parent component, drag it big enough to hold the one or more children, create tbe child component and drag it inside the parent element. The child is correctly moved into the project tree as a child.
At some point I went through an exercise to determine every UML element in EA that could act as a container and there are quite a few. Can you use the drag method on other container elements ? e.g. can you stick a component inside a node?
Hey - just a thought! one thing about container heirarchies is that they are dependent somewhat on the releative z-order of the elements - have a look at that!
hth
Bruce
-
Thanks to Messr.s sargasso and (via IM) Cossi.
What I needed to do was enlarge the component which is to contain the other, before dropping the element to be contained, though for the life of me I can't say this is obvious from the EA documentation, correct me if I'm wrong !
I'm obviously not taking the visual paradigm seriously enough - clearly an element that is to contain another element must be big enough !!