Deleting a Class

You can delete a component or a class.

This task shows you how to:


Before you begin: Create or import a behavior library.
Related Topics
Creating a Class
About Connectors and Connection

From the Package Browser

You can delete a class that is not active, or a class contained in the active class.

In other terms, you cannot delete a class if:

  • It is a root class
  • It is the active class
  • It is a parent of the active class.

  1. From the Package Browser, select a class.

    Tip: To multi-select classes from the Package Browser, press down the Ctrl key.



  2. To delete the class, you can either:

    • Press Delete from your keyboard
    • Select Edit > Delete from the menu.
    • Select Delete from the contextual menu.

    The class is deleted from the Package Browser.

From the Component Browser

You can delete components that are direct children of the active class.

See the illustration below:

Important: When deleting a component, you modify its parent class and all the classes that are related to this class (through Extends clauses, instantiation...).

  1. From the Package Browser, activate the class containing the component you want to delete.

    The Component Browser displays the component.

  2. From the Component Browser or from the diagram layer, select a component.

    Tip: You can multi-select components:
    • From the Component Browser: press down the Ctrl key.
    • From the diagram layer: trap your selection.



  3. To delete the component, you can either:

    • Press Delete from your keyboard
    • Select Edit > Delete from the menu.
    • Select Delete from the contextual menu.

    The component is deleted both from the Component Browser and the diagram layer.