Moving folders, packages, and files

  1. In the Package Explorer, select the folder, package or file you want to move.

  2. Drag-and-drop the selected resources onto the desired location.

Note: You can use drag-and-drop to move resources between different workbench windows. Select a resource you want to move, and drag-and-drop it onto the desired destination. If you want to copy rather than move, hold the Ctrl key down while dragging.

You can also use drag-and-drop to copy resources between the workbench and the desktop (both ways), but you cannot move files from the desktop to the workbench using drag-and-drop.

Related concepts

Java projects
Refactoring support

Related tasks

Using the Package Explorer
Creating a new Java package
Copying and moving Java elements
Opening a package
Renaming a package

Related reference

Package Explorer
Refactoring actions

Legal notices