Home > Diagrams > Activity Diagram

Drag and Drop

The drag and drop concept could be important in order to track the activity diagram elements used in more than one diagram.
It is not recommended to use the same activity diagram element in different diagrams, but it could be important for DSL modeling to have this option.

In an Activity diagram, you can drag and drop both Java and UML elements from:

  1. Package Explorer
  2. Model Editor

1. From the Package Explorer you can drag and drop the following Java elements:

Select one element in your Package Explorer and drag it to the Activity Diagram.
Release the mouse button to drop it into your diagram editor (e.g. Class1, Interface).

The classes or interfaces from the Package Explorer to the Diagram Editor will display a new instance in your Activity Diagram.

2. From the Model Editor you can drag and drop the following Java or UML (just a metamodel element not related to Java) elements:

Select one element in your XMI 2.1 Editor and drag it to the Activity Diagram.
Release the mouse button to drop it into your diagram editor (e.g. Action1)