Book a Demo

Author Topic: Component nesting - how ?  (Read 4999 times)

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Component nesting - how ?
« 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.

thomaskilian

  • Guest
Re: Component nesting - how ?
« Reply #1 on: November 10, 2004, 01:08:43 pm »
Just a guess since I haven't EA at hand: is the component set to composite?

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Component nesting - how ?
« Reply #2 on: November 10, 2004, 05:49:25 pm »
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
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: Component nesting - how ?
« Reply #3 on: November 11, 2004, 03:10:15 am »
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 !!
« Last Edit: November 11, 2004, 03:57:48 am by mikewhit »