Book a Demo

Author Topic: Displaying Attrib/Op Notes in class diagram, how?  (Read 5176 times)

EricP

  • EA User
  • **
  • Posts: 122
  • Karma: +0/-0
    • View Profile
Displaying Attrib/Op Notes in class diagram, how?
« on: January 13, 2010, 03:17:07 am »
Right click on a class diagram and select Attributes, then highlight an attribute.  Type something in the Notes: box just above the list of attributes.

How can I get those Notes to show up in the class diagram, either above or under the attribute?

I can do it with Operations by putting my descriptive text in the Behavior box and then telling it to display that (which raises its own problems concerning duplication of notes during round-trips, leaving multiple copies of the notes in the body of the method code, but I digress...).  Can't figure out how to do it with Notes, though (either Attribute notes or Operation notes).

I tried checking Notes under Feature Visibility but all that does is display the class Notes, not any individual attribute or operation Notes.

Looked for anything else having to do with enabling display of notes, and none worked.

Version is 7.5.850.

Thanks...

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Displaying Attrib/Op Notes in class diagram, h
« Reply #1 on: January 13, 2010, 04:38:46 am »
Hi Eric,

You can create a note element and link it to the class containing the attribute. Then right click on the notelink and choose 'Link to element feature', this will show a list of the linked classes attributes and operations to choose from.
Select the attribute with the notes you want to show up, et voila, the attributes notes text will appear in the note element.

HTH
Günther

EricP

  • EA User
  • **
  • Posts: 122
  • Karma: +0/-0
    • View Profile
Re: Displaying Attrib/Op Notes in class diagram, h
« Reply #2 on: January 13, 2010, 05:06:48 am »
Good afternoon, Gunther.

Thanks, unfortunately that gets impractical really quickly.  I'm working with one class now that has 14 attributes and 18 operations, so I could have as many as 32 notes hanging out of the diagram here and there.  That gets unmaintainable almost immediately.

If I put something into the Behavior of an operation, I can check the box that says "Show Behavior in Diagram" and the contents of the Behavior box shows up right underneath the operation in the diagram.  Very convenient and easy to maintain, and easy to understand at a glance what the operation does.  Surely there must be an equivalent way to display notes about attributes.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Displaying Attrib/Op Notes in class diagram, h
« Reply #3 on: January 13, 2010, 08:32:18 am »
Hi Eric,

put in a feature request (using the links below) to have an additional checkbox [  ] Show Notes in diagram added to Attributes and Operations - using the same technology as [X] Show Behavior in diagram.

There should probably also be some mechanism to suppress/show this on particular diagrams via the Show Feature Visibility [Ctrl+Shift+Y] dialog.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!