Code Generation Option ([Tools] -> [Options]) is the group of option items for code generation by Java Add-In. This category includes the [General], [Code Generation], [Code Style], and [File Header] sub-categories.
General
Option Item
|
Default
|
Description
|
Generate codes even when there is no profile
|
False
|
Specifies whether to generate codes even when Java profile is not loaded in the project (not recommended).
|
Code Generation
Option Item
|
Default
|
Description
|
Generate 1 file each for Class, Struct, Interface, and Enum
|
True
|
Specifies whether to generate 1 file each for 1 member (Class, Struct, Interface, and Enum).
|
Generate unnamed AssociationEnd
|
False
|
Generates unnamed AssociationEnd as a reference type field for Java member. In this case, the field identifier is indicated as "UnspecifiedType" with a number at the end.
|
Generate Java Doc
|
False
|
Specifies whether to generate modeling element documentation as Java Doc.
|
Generate empty Java Doc
|
False
|
If checked, Java Doc is generated even when the modeling element documentation does not have any values (empty).
|
Code Style
Option Item
|
Default
|
Description
|
Insert tabs as spaces
|
False
|
Uses space instead of tab for indentation.
|
Tab width
|
4
|
Specifies the number of spaces to be used when inserting tabs as spaces.
|
Place the opening curly brace in the new line
|
False
|
Places the opening curly brace "{" in the new line.
|
File Header
Option Item
|
Default
|
Description
|
File Header Comments
|
See description
|
Adds the comments in the beginning of the
source file.
(Default)
//
//
// Generated by StarUML(tm) Java Add-In
//
// @@ Project : @p
// @@ File Name : @f
// @@ Date : @d
// @@ Author : @a
//
//
|
|