About this task
To move elements, use any of the following methods:
- You can move all elements within the browser by dragging-and-dropping them from one location to another, even across packages.
- You can move a group of highlighted items to a new location in the project by dragging and dropping them into that location in the browser.
- In addition, you can drag-and-drop packages, classes, actors, and use cases from the browser into diagrams.
- If code has already been generated for a class or package, you can open the code by dragging and dropping the class or package from the browser into an open editor, such as Microsoft Word, Visual C++, Notepad, or Borland C++. If the code exists, the standard "+" icon displays as you drag the element into the editor. If the "+" icon does not appear, most likely code has not yet been generated for the element. If the element has both a specification and an implementation file, both files are opened.
See Moving classes by using the smart drag-and-drop.
Note: Do not try to open the code for a class or package by dragging it from an object model diagram because this action removes the element from the view.