Since less than a fortnight after a started using EA (over two years ago), I have
consistently argued that
[size=13]Composite Element[/size] is a
misnomer for the functionality that is provided by being able to attach a diagram to an element.
Additional points were posted in:
[size=13]Re: shape scripting/element properties[/size],
[size=13]Double-Clicking for navigation[/size] and, perhaps most tellingly in:
[size=13]Re: Default Diagram[/size] and
[size=13]TIP: Adding Diagram to Interface element[/size]! The latter one being the one I had recourse to this afternoon... I wanted to add a linked diagram to an Artifact.
Here is yet another proposal...
To the
<context Menu>Advanced> sub menu:
1) If the element is structural, add the
Composite Element menu item and the
Show Composite Diagram Contents (which, by the way, should
be disabled is the element isn't composite). Actioning the first option, will create a Composite Structure Diagram below the element. Actioning the second, displays the contents of that diagram.
2) In addition, add a new menu item
Attach Diagram to Element. If this is actioned, a tabbed dialog displays. One tab shows a browser to allow the user to browse for an existing diagram, the other tab displays the new diagram dialog will be opened asking for the type of diagram to create. If a new diagram is requested, it is added below the element, otherwise the browsed for diagram is attached. As with the Composite element menu options, an additional
Show Attached Diagram Contents item (again,
disabled if there is no attached diagram) allows the display of the diagram.
NOTE: If
Composite Element is true, then
Attach Diagram to Element is disabled (and vice versa). That is, you can only set
one of the options if
none are currently set.
3) If the element is non-structural, then only the
Attach Diagram to Element functionality is available. This also applies to instances of structural elements.
I think this would allow the ability to move from arbitrary diagram element to related diagram.
It will not have escaped you that using the above functionality would allow more then one element to be attached to the same diagram. Well, with a little "jiggery pokery" it is possible to do this with the current functionality!
Thoughts? Votes?
Paolo
[size=0]©2007 Paolo Cantoni, -Semantica-[/size]