Home > Diagrams > Component Diagram

Drag and Drop


The drag and drop concept is important in order to track UML elements used in more than one diagram.
It could be important to use the same component in two different usecase and component diagrams while keeping the metamodel information updated.
If you click on the element in the XMI Editor, you will see the diagram in which this element is used.
If you move a component or any other element into another diagram, then the new UML Editor diagram element will include all updated metamodel information which has been created in multiple diagrams.
The drag and drop concept and the use of the same metamodel + UML Editor + Java instance allows what was not previously possible with traditional UML tools !!

In a Component 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 Component Diagram.
Release the mouse button to drop it into your diagram editor (e.g. Class1).





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 Model Editor and drag it to the Component Diagram.
Release the mouse button to drop it into your diagram editor (e.g. Node1)