Use drag and drop for class members (inline editing)
You can use drag and drop for class members (attributes, operations, and receptions) in the diagram window and in Explorer.
In the diagram window, click the class for whose member you want to use drag and drop.
Click the relevant class member. The selection is limited to this member.
Click the selected member and hold down the mouse button.
Move the mouse pointer to the target class. If the target class already has members, a horizontal line illustrates where the class member will be inserted. If you press the Ctrl key before dropping reusable class members, the class member is created in both the source and the target class. If reuse is not possible, a corresponding message is displayed when dropping with the Ctrl key.
Release the mouse button.
The class member is inserted into the target class at the selected position and placed below the target class in the Explorer tree. If you drop the class member in an area other than the one intended for it, it will be inserted at the end of the area. Thus, if you drop an attribute in the area for operations, it is inserted after the existing attributes when you release the mouse button.
In the Explorer tree, if necessary expand the class whose member you want to edit by clicking the preceding arrow (
).Click the class member, hold down the mouse button, and move the mouse pointer to the name of the target class. If you press the Ctrl key before dropping reusable class members, the class member is created in both the source and the target class. If reuse is not possible, a corresponding message is displayed when dropping with the Ctrl key.
Release the mouse button.
The class member is placed below the target class in the Explorer tree and inserted into the target class in the diagram window at the corresponding position. If you drop the class member in an area other than the one intended for it, it will be inserted at the end of the area. Thus, if you drop an attribute in the area for operations, it is inserted after the existing attributes when you release the mouse button.