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.
 
Moving compilation units updates only package declarations; it does not update references to the classes declared in those compilation units. This can result in compilation errors. If you use the Refactor > Move command from the selected resource's pop-up menu, all references to classes defined in the selected compilation units will be updated.


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
 

Copyright IBM Corporation 2000, 2002. All Rights Reserved.