[SNIP]This would display the compartments defined in the <context menu>|Set Feature Visibility... Ctrl+Shift+Y dialog, in a separate "box" connected to the main element by a NoteLink (or similar edge). The box could be rendered with a NoteLink rendered border. This box would then be able to be positioned in a suitable place on the diagram.
I'm trying to get comfortable with this.
I agree that there is a big need for additional, optionally visible compartments. Some of these should be EA standard in that, for example, they complete the Property Window metaphor. We have the
Attributes, Operations, Constraints,and
Notes compartments; we should also have the
Scenario and
Files compartments.
I feel strongly that the elements listed in these compartments (with the exception of the notes compartment, which ought to follow Paolo's note-link notational approach) ought to be capable of being links to supporting diagrams. For example:
- The attributes could be links to a diagram where data objects or object classes are defined;
- The operations could be links to behavioral diagrams;
- Constraints could be links to OCL or boolean behavior diagrams;
- Scenario Names could be links to underlying behavior diagrams and or Protocol State Charts;
- etc.
Again, these ought to be
out of the box EA features. They allow a model reader to start at the 40,000ft. view and then drill down to a level of detail at which they are satisfied.
Next, I advocate the ability for a modeler to define
User Defined compartments that support popular design paradigms such as
Aspect Oriented Design. A
PointCuts compartment would be most useful to the Aspect Oriented community.
Now getting to my point, I suggest that these compartments ought to be directly attached to their base element (just as the existing compartments are attached) so that we don't get funky routing of edges from other design elements. I fear a need to spend time drawing custom routings for note-link edges to avoid their being overlaid by the notes suggested by Paolo. The complexity of the resulting diagram would be controlled by managing which compartments are visible; each set of displayed compartments consistent with the subject|perspective|view of the current diagram.
Just my opening thoughts...

Interested in further discussion.

Jim