Moving Folders, Packages, & Files

In the Packages view, select the folder, package, or file (use Ctrl-click to select more than one at a time). Then drag-and-drop the selected resources in the desired location.

Note: If you want to copy rather than move, hold the Ctrl key down while dragging.

Moving a compilation unit updates only package declarations; it does not update references to the compilation unit. This situation can result in compilation errors. If you use the Refactor > Move To Another Package command from the selected elements' context menu, then all references to the class defined in this compilation unit will be updated as well.

See Moving a Compilation Unit