Changing the order of operations in generated code

You can change the order of operations in generated code.

About this task

By default, operations appear in the following order in generated code:

Within each of these categories, the operations are displayed in the following order: public, protected, private. Within these access subcategories, operations are listed alphabetically.

In some cases, you might want to define a specific order for the operations when the code is generated. To change the order of appearance in the generated code:

Procedure

  1. Right-click Operations (or Functions) on the browser in IBM® Rational® Rhapsody® and select Edit Operations Order (or Edit Functions Order).
  2. In the window that opens, highlight the signature that you want to move and use the Up and Down buttons to modify the order that is to be used in code generation. If the Up and Down buttons are disabled, clear the Use Default Order check box to enable them.
  3. Click OK.

Restoring the default order

About this task

If you want to restore the default order:

Procedure

  1. Select the Use Default Order check box. If the Up and Down buttons are disabled, clear the Use Default Order check box to enable them.
  2. Click OK.

Feedback