You can inline refactor methods in the diagram editor.
You must be in the C/C++ perspective and have a diagram open in the
diagram editor.
To inline refactor a method:
- 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.
- In the Inline dialog box, to preview the changes,
click Preview.
- Click OK.