right click on the eclipse project in the package explorer, select refactor, then select move... in the dialog that comes up, enter or navigate to the new location and click ok. this will also preserve your cvs or other scm metadata, but will also bring all your modifications as well, and you won't lose any memberships in working sets, launch configurations, or other things that eclipse associates with your project.
for eclipse oxygen
project properties -> resource -> linked resources -> linked resources (tab)
for eclipse oxygen, to move a java project, djb's accepted answer works well (in my experience just now), except having read comment by basic may 14 '12 at 9:27, i tried to add my project xmldiff to c:...\svn\trunk\internal projects, and i got a failure with the rather cryptic message:
problems encountered while moving resources.
resource already exists on disk.
i had to move the project to c:...\svn\trunk\internal projects\xmldiff by creating a new folder, xmldiff, in the browse dialog, and the result was c:...\svn\trunk\internal projects\xmldiff, not c:...\svn\trunk\internal projects\xmldiff\xmldiff.
so this must have changed between basic's experience in 2012 and eclipse.3.
i copied the whole project to a new directory. after setting eclipse to the new workspace it recognises the project instantly. thus it was nothing further to do. i use eclipse ide for c/c++ developers, version luna service release 2 (4.4.2).
right click on your project->copy.
right click in project explorer free space and right click->pase.
chose new folder and project name.
when everything else fails:
copying an eclipse project from one directory (let's call it old_dir) to another directory (let's call it new_dir):
open eclipse and specify the copied working directory in your new_dir.
once it opens the project in the this new_dir, the projects listed under project explorer tab might still be the ones contained in the old_dir (you can check it by right clicking each and following through: "resource -> linked resource" to see the path variables values). thus, they have to be removed from this work space. delete the nios 2 application project and the bsp project from the project explorer tab by right clicking on it and selecting delete option which will pop a new window. in the pop-up window, make sure that the delete project contents on disk check box is unchecked before clicking ok to delete the projects. otherwise, it will delete it from the old_dir where you copied the project from.
right click in the project explorer tab area → import → general → existing projects into workspace and add the copied nios2 application project and the bsp project from the new_dir.
right click in the project explorer tab area → index → rebuild, otherwise the nios2 application project will not be able to use the includes provided by the bsp project.
click on project → clean → ok to clean and rebuild the whole project.
when using console to talk to the nios, make sure elf's path is updated to the new project directory as well!
i rarely have any projects in eclipse that aren't under source control, so all i would need to do is check the project out in the new location.
if you don't have source control, eclipse works with cvs rather well out of the box, and it's pretty simple to setup cvs to run locally without a server: http://www.tortoisecvs.org/faq.html#cvsinit
i don't know whether eclipse has made modifs since the date of this post... in my case i had moved a project folder manually and i wanted eclipse to open the project on this new location. this is what i did (and it seems to work).
(i'm using eclipse "helios" v 3.6.2)
file menu | import ...
general | existing projects into workspace
select root directory = top directory of your project on the new location
use eclipse's move menu item
open navigator view, right click on your project and click move. then select the destination directory.
navigator view > right click > move
note it doesn't seem to work in package explorer (at least not in neon). the move dialog from package explorer is different, so use the navigator window.
- Moving project to another folder in Eclipse
- Call a file in another folder in Eclipse for Python project
- Can no longer access shared Eclipse project after moving Git repository folder in file system
- import from another java project in eclipse
- How do I add a resources folder to my Java project in Eclipse
- How do I change in an eclipse web project the WebContent folder to something different?
- Should renaming a project in Eclipse also rename project folder on file system?
- How to hide src folder from Eclipse Project Explorer?
- Eclipse Java project folder organization
- Can we call another project java class from our project in eclipse
- Why is not recommended to have an Eclipse project folder as a Git repository?
- Eclipse CDT C/C++: Include a header file from another project
- SRC folder in Eclipse is empty (MainActivity class not created) after creating a new android project using Eclipse
- Auto refresh eclipse project upon folder update
- Including source files from another C++ project in Eclipse CDT
- calling a class in another project Eclipse
- Eclipse project hiding src folder
- Egit adding Eclipse project folder to git repository
- How to change Eclipse project folder structure to Maven/Gradle structure
- Double source folder in eclipse when creating new maven project
- Import maven project in eclipse - folder structure not as expected
- Linking external source folder with name "src" in an eclipse project
- How to zip up a Java eclipse project so it can be easily unfolded onto another computer?
- Eclipse showing java project src folder view as all packages and subpackages
- Eclipse, Tomcat project context root is eclipse folder
- Spring context:component-scan fails to find components in another Eclipse project dependency referenced in POM
- How to reference another project in Eclipse with Google appengine project?
- How To Exclude Files in "/res" Folder of an Android Eclipse Project
- Set up an Eclipse Dynamic Web Project referencing another project
- Eclipse - how to rename project folder (on filesystem)
More Query from same tag
- How to solve import org.apache.http.util cannot be resolved?
- PHP auto method args to namesake property?
- Automatic generate code - add getters/setters for method invocation, not object creation
- Adding .class files to the build path in Eclipse
- Getting ILocalVariable from parsing VariableDeclarationStatement
- Unable to use library files to my project on android
- jitsi-android unable to compile and build
- NullPointerException for if(line[waitingLine].isEmpty()) --emptyLines;
- Using OBR on Virgo 3.5
- How can I extract a variable with eclipse and convert it into a class?
- Eclipse WindowBuilder change font size in GUI
- Sprint-boot automatically shutting down after starting server
- eclipse: "unfortunately, yyy has stopped" error when testing on an android phone
- Fatal error detected in Eclipse when using Xuggle
- How to force CVS to check-in code comment in particular format
- Update project version and versions in other projects dependencies
- Eclipse PDT and Hg (Mercurial)
- Flex compiler error: "please put definition in a package" for classes that ARE in a package
- red hat jboss developer studio 11 & 10 doesn't show menu items in mac os x high sierra
- Hyperlink to Eclipse editor page
- GIT plugin installation in eclipse
- Changing GPS for 2 to 1 location
- Folder not created on android device
- Image Views not appearing
- xtext importURI references cannot be resolved
- eclipse plugin: perspective deprecated in shortcut
- How to integrate Rapidminer with Java?
- Action Bar Library 4.0.2 with "SupportActivity cannot be resolved"
- Error while adding glassfish tools with eclipse
- How to install a plugin update that's not on eclipse marketplace