You can set the default preferences for new methods that
you add to Java classes and interfaces in domain
modeling class diagrams.
About this task
To customize the default settings for Java methods,
complete the following steps:
Procedure
- Click .
- In the Preferences window, expand Modeling,
expand Java, expand Field and Method
Creation, and click Method Defaults.
- On the Method Defaults page, under Method
name, type a name, name prefix, and name suffix.
- Under Return type and Dimensions,
click a return type and specify the dimensions.
- Under Visibility, click a method
visibility style.
- Under Modifiers, click method modifiers.
- Click Browse beside the Throws field
and, in the Browse types window, click an exception
type or types, and then click OK.
- Click OK.