1. Click the ClassDiagram tab to return the focus to the Diagram editor.
2. In the Projects window, expand the EntryStation node.
3. Select the attribute node labeled private boolean isOperating.
The properties for the attribute appear in the UML Properties window.
4. In the Properties window, click the ellipsis button (...) on the Documentation row.
A custom editor opens as shown in the following figure.
5. Type the text Maintains if EntryStation is operating and click OK.
6. In the Diagram editor, right-click the EntryStation class element and select Generate Code from the pop-up menu.
7. In the Generate Code dialog box, click OK.
8. In the Authorize UML Project Save dialog box, click Yes.
The new Java code is generated.
9. Click the Source Editor tab for EntryStation.java.
You see the typed text in the source code right above the isOperating attribute.