Author Topic: Add Java Annotations  (Read 5676 times)

pau carré

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Add Java Annotations
« on: October 14, 2008, 12:02:07 am »
Allow the user to add Java Annotations in class, attributes, relations and operations. It could be even better if the user could link class Annotations with class colors (@EBJ -> blue class).
This way it would be possible to develop JEE 5 apps.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Add Java Annotations
« Reply #1 on: October 14, 2008, 03:05:38 am »
Excellent idea!

[edit]But of course I did not check the manual first...

Please see the Sparxians' posts below.[/edit]

This might be done along the same lines as Sparx has used for compiler attributes in .Net languages.

Why not make the feature request to Sparx. Include a link to this thread in the request, so the Sparxians can participate in any ensuing discussion. You'll find the correct form for this by following the Feature Request link below the Support link near the bottom of any forum page.


David
« Last Edit: October 14, 2008, 10:55:38 am by Midnight »
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: Add Java Annotations
« Reply #2 on: October 14, 2008, 08:52:08 am »
Java annotations are currently supported as tagged values.  (Same as .Net attributes)

You could also stereotype all over your java classes, with a stereotype that sets the colors depending on the tagged value before drawing the native shape.

mrf

  • EA User
  • **
  • Posts: 311
  • Karma: +0/-0
    • View Profile
Re: Add Java Annotations
« Reply #3 on: October 14, 2008, 08:58:39 am »
Please see the relevant page in the EA User Guide for further information on this matter http://www.sparxsystems.com/uml_tool_guide/code_engineering/java_conventions.html
Best Regards,

Michael

[email protected]
"It is more complicated than you think." - RFC 1925, Section 2.8