Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: pau carré on October 14, 2008, 12:02:07 am

Title: Add Java Annotations
Post by: pau carré 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.
Title: Re: Add Java Annotations
Post by: «Midnight» 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
Title: Re: Add Java Annotations
Post by: Eve 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.
Title: Re: Add Java Annotations
Post by: mrf 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