10.6. Context Sensitive Menu

Button 2 Click over any selected artifact in the main area of the explorer will cause a pop-up menu to appear.

10.6.1. Add to Diagram

This entry on the pop-up menu appears for any artifact that could be added to the diagram in the editing pane.

The item can be placed in a diagram by moving the cursor to the editing pane or a spawned editing pane window (where it will appear as a cross) and clicking button 1.

[Caution]Caution

This menu entry only appears as not grayed out, if the diagram in the editor pane allows to contain the artifact, and the artifact is not present yet in the diagram. ArgoUML will not let you place more than one copy of any particular artifact on a diagram.

10.6.2.  Delete From Model

This entry on the pop-up menu appears for any artifact that could be deleted from the model.

[Warning]Warning

This deletes the artifact from the model completely, not just from the diagram. To remove the artifact just from the diagram, use the edit menu (see Section 9.4.2, “ Remove From Diagram”).

[Caution]Caution

You can delete a diagram from the model. Depending on the type of diagram, that might delete all artifacts shown on the diagram. To illustrate the differences, consider the following examples:

  • Deleting a class diagram does not delete any artifact drawn on it. All artifacts that were shown on the diagram remain present in the model. This because a class diagram does not "map" on any artifact according the UML standard V1.4.

  • Deleting a statechart diagram also deletes the statemachine it represents, and hence also all the artifacts owned by the statemachine. This because a statechart diagram does "map" into a StateMachine according the UML standard V1.4.

10.6.3. Set Source Path... (To be written)

This entry on the pop-up menu ...

10.6.4. Add Package

This entry on the pop-up menu is available whenever an artifact is selected that may contain a package, e.g. a package. After activating this menu the artifact will own a new package.

10.6.5. Add All Classes in Namespace

This entry on the pop-up menu is available for Class Diagrams only. Activating this menu-item will add all classes in the current namespace to the diagram. They will be located at the top left corner—obviously a perfect occasion to use the “Arrange->Layout” function in the menu.