Chapter 3 Building Structural Diagrams


Attaching an annotation to a model object

PowerDesigner supports the Java 5.0 built-in annotations, the .NET 2.0 built-in custom attributes and for both Java 5.0 and .NET 2.0, also allows you to create your own. You can attach annotations to types and other model objects:

Steps To add an annotation to a type or other object:

  1. Double-click a class or other object to open its property sheet, and then click the Annotations tab.
  2. Click in the Annotation Name column, and select an annotation from the list.
  3. If the annotation takes parameters, you can enter them directly in the Annotation Text column or click the ellipsis button to open the Annotation Editor.
  4. [optional] Click the Preview tab to see the code that will be generated for the class, with its declaration preceded by the annotation:
  5. Click OK to return to the diagram.

 


Copyright (C) 2006. Sybase Inc. All rights reserved.