Book a Demo

Author Topic: Notes for attributes  (Read 5565 times)

Stringer

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Notes for attributes
« on: September 11, 2007, 05:14:10 am »
They are not visible in the class element and I cannot find a way to make them visible. Only methods can have visible notes thru the Behaviour. Actually the method Behaviour stinks too because now one has to rewrite same stuff for the Notes (XML commens in source) and for the Behaviour to have visible diagram notes.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Notes for attributes
« Reply #1 on: September 11, 2007, 08:15:29 am »
Stringer,

This should be straightforward. I just ran the following in EA build 816 to make sure nothing was broken.
  • Create a class.
  • Drop it on a diagram - this will make things easier.
  • Select the class and open the Attributes dialog (F9).
  • Add an attribute.
  • There is a Notes box - it is below the Initial box and before the attribute list.
  • Enter your notes.
  • Exit the dialog.
  • If you want, follow the directions in EA Help to create a linked note on your diagram, just to be sure things work.
David
No, you can't have it!

Stringer

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Notes for attributes
« Reply #2 on: September 11, 2007, 08:22:45 am »
Yes, there is Notes-field. But problem is, I cannot figure out how to make it visible in the diagram drawing. It only shows at the sources (and separately generated document I think). I would like it to present itself in the diagram just like the visible Behaviour text for methods.

What do you mean by linked note? Didn't find such thing from the help.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Notes for attributes
« Reply #3 on: September 11, 2007, 08:31:54 am »
In the help index, find Link | Note to Element or Note | Link to element.

Also look at the diagram properties dialog (F5) and click the Elements tab and inspect the Show Compartments section. You can display a Notes compartment - it will only be displayed if the element notes are non-empty.

This does not handle attributes, just the element itself.

Finally, look at the Set Feature Visibility dialog (control-shift-Y or use the context menu) for selected elements (one or more). This allows you to display several other compartments. Once again this is restricted to elements, not attributes.

David
No, you can't have it!

Stringer

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Notes for attributes
« Reply #4 on: September 11, 2007, 08:45:20 am »
Cool, that one is useful for sure. Only one little small problem, it shows the feature name with exactly same font as the note text itself. It makes those notes little bit hard to read.

Anyway, would be nice (and thus feature request) to be able to show the notes inside the class element because that is very compact way to present them. The linked notes will fill whole diagram soon if I start to descripe my attributes with that.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Notes for attributes
« Reply #5 on: September 11, 2007, 09:14:59 am »
Generally, a diagram is a poor choice for displaying (many) feature notes. Consider alternatives consolidating these notes into the element notes, or writing a report with the attribute details.

Otherwise anything other than the most rudimentary diagram will become cluttered, which reduces its information content by at least as much as the notes might add.
No, you can't have it!

Stringer

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Notes for attributes
« Reply #6 on: September 11, 2007, 10:02:22 am »
Quote
Consider alternatives consolidating these notes into the element notes


But there is no alternatives now, or is there? Separate report is granted of course, and with HTML report surfing between the diagram and the report is rather easy. But those who have to read a paper and/or pdf might appreciate the short descriptions on the diagram itself. At least I find it very easy to read the behaviour descriptions between methods due good coloring.