Book a Demo

Author Topic: class diagram note in code comments  (Read 2836 times)

jvs

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
class diagram note in code comments
« on: September 29, 2003, 02:42:24 pm »
I know the class diagram note is visible in the source
code comments.  I also want it to be visible in a class
compartment.  One way I tried to do this was to use
the requirements compartment but the requirements
don't seem to make their way out to the code.

So my question for y'all is, how can I have something
like a note compartment appear in both the individual
class rectangle and the source comments?

All hints and clues welcome.

Jim VS

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Re: class diagram note in code comments
« Reply #1 on: September 30, 2003, 06:02:00 am »
I write a description of each class in the "Element Note" field in the class properties. This is exported to the source code. If I want to display this text in a diagram, I:

- create a Note on the diagram
- create a Note Link between the Note and the Class
- Right-click on the Note Link and select "Link note to element feature" to display the element note in the Note on the diagram.

Mikkel