Customizing the default settings for Java fields in domain modeling class diagrams

You can set the default preferences for new fields (that is, attributes in classifiers) that you add to Java classifiers in domain modeling class diagrams.

About this task

To customize the default settings for Java fields, complete the following steps:

Procedure

  1. Click Window > Preferences.
  2. In the Preferences window, expand Modeling, expand Java, expand Field and Method Creation, and click Field Defaults.
  3. On the Field Defaults page, under Field name, type a name, name prefix, and name suffix for new fields.
  4. Under Type and dimensions, select the type and specify the dimensions for new fields.
  5. Under Visibility, click a visibility style for new fields.
  6. Under Modifiers, click modifiers for new fields.
  7. In the Initial value field, type an initial value expression for new fields.
  8. Click OK.

Feedback