You can refactor methods inline in C/C++ domain modeling
class diagrams.
Before you begin
You must be in the C/C++ perspective and have a domain modeling
class diagram open in the diagram editor.
About this task
To refactor a method inline, complete the following steps:
Procedure
- In the diagram editor, right-click a method; then click Refactor and
complete one of the following steps:
- To make the method inline, click Inline.
In the Inline dialog box, to move the function
body inside of the class, select the Move function body
inside class check box.
- To prevent the method from being inline, click Un-inline.
- To preview the changes, click Preview.
- Click OK.