smwikipedia
smwikipedia

Reputation: 64333

Is "Part Decomposition" supported in EA?

I am trying to draw a part decomposition diagram with EA10. It should look like below.

enter image description here

But I couldn't find how. Is this UML diagram ever supported by EA?

Upvotes: 2

Views: 701

Answers (3)

Uffe
Uffe

Reputation: 10504

You're doing it wrong. Sorry, but there's no kinder way to say it. :)

If the lifeline (:Class) is associated with a classifier (Class) which has properly defined ports (as it should be), then the following applies:

  1. If you create the lifeline by dropping the classifier onto the sequence diagram, you get the option of displaying the ports (aka "structural elements") immediately.
  2. Regardless of how the lifeline was created, you can right-click it and select "Structural Elements" which allows you to select the ports from the classifier (which may have been added since the lifeline was created).

If you want to create ports under a lifeline which has no classifier, you can do that too. Simply right-click and select "Structural Elements". The dialog allows you to create new ports.

Upvotes: 3

chimp
chimp

Reputation: 1849

The :Class lifeline presumably gets its type information from a Class element, so the first thing you need to do is find the Class element and give it two ports. Once you have done that, you can right-click the lifeline, select the Embedded Elements dialog and include the ports on the lifeline. (The Embedded Elements dialog may have been renamed Structural Elements in recent versions).

Upvotes: 2

smwikipedia
smwikipedia

Reputation: 64333

Found it. I need to activate the "More tools..." -> "Composite" first. And choose "Port".

BTW, this is really a bad user experience.

enter image description here

Upvotes: 3

Related Questions