By default, model elements are ordered alphabetically within
each category. However, you can also reorder elements manually within
each category.
About this task
You might want to reorder elements in the
browser in order to:
- move important items higher in the list
- control the order of model elements in the generated
code. The order of elements in the generated code is determined by
the order of display in the browser. To control the order of elements
in the generated code, reorder the relevant elements in the browser
before generating the code.
Note: You can rearrange all model elements except
for statechart-related elements and activity diagram-related elements.
By default, the ability to reorder elements
in the browser is disabled. To enable element reordering, select from the menu.
When the reordering option is available, you can reorder
elements:
Procedure
- Select the element you would like to move.
- Click the Up or Down arrow in the browser
toolbar to move the element.
Results
Note: The Up and Down arrows are only displayed
after you have selected a movable model element. If the element is
at the top of a category, only the Down arrow is accessible when you
are selecting the element. If the element is at the bottom of the
category, only the Up arrow is available upon selection.