Customizing the default settings for Java methods

In UML visualization, you can set the default preferences for new methods (that is, operations in classifiers) that you add to Java classes and interfaces.

To customize the default settings for Java methods:

  1. Click Window > Preferences.

  2. In the Preferences window, expand Modeling, expand Java Assisted Modeling, and click Method Defaults.

  3. On the Method Defaults page, under Method name, type a name, name prefix, and name suffix.

  4. Under Return type and Dimensions, click a return type and specify dimensions.

  5. Under Visibility, click a method visibility style.

  6. Under Modifiers, click method modifiers.

  7. Click Browse beside the Throws field and, in the Browse types window, click an exception type or types, and then click OK.

  8. Click OK.

 

Parent topic

Customizing the Java visual design tool

 

Related concepts

About UML class diagrams
Class diagrams

 

Related tasks

Customizing the default settings for the Java Assistant
Customizing the default settings for Java fields

Related reference
UML modeling best practices