Converting files

You can easily convert a file to an object or vice versa by simply highlighting the object in the browser, then selecting Change to and the intended result.

Procedure

To convert a file to a class:

  1. Highlight the file in the browser, right-click and then select Change to > Object. The file changes to an object and moves to the Objects category in the browser.
  2. Highlight the object in the browser, right-click and then select Expose Class. This creates a class with the name <object> class. It contains all the content of the copied object including the attributes, operations, and statechart. This option is only available for an implicit object.

Results

Note the following information:

When the element has been converted, the graphical representations change in the diagrams and the converted element is moved to the appropriate category in the browser.

For information about changing the order of files, see Editing the declaration order of objects.


Feedback