Refactoring inline

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:

  1. 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.
  2. In the Inline dialog box, to preview the changes, click Preview.
  3. Click OK.
Related tasks
Creating C/C++ classes
Modifying C/C++ classes or data types
Adding fields to C/C++ classes and data types
Adding methods to C/C++ classes and data types
Changing the visibility of C/C++ fields and methods
Changing the type for C/C++ fields in diagrams
Changing the return type for C/C++ methods in diagrams
Creating C/C++ enumerations
Adding enumeration literals to C/C++ enumerations
Deleting C/C++ elements from diagrams
Deleting C/C++ elements from projects
Renaming C/C++ elements
Creating relationships between C/C++ elements

Feedback