Hange Zoë
Hange Zoë

Reputation: 67

Moving projects from eclipse workspace

I am using eclipse and I moved some projects(Projects with the name Mc Bot) in my workspace to another folder. However, when I open eclipse with my workspace, projects still appear like this in package explorer.

enter image description here

How can I fix that?

Upvotes: 0

Views: 74

Answers (2)

user1438038
user1438038

Reputation: 6059

You cannot move project folders on your hard drive and expect Eclipse to update automatically. The folders contain metafiles that Eclipse needs to properly load the workspace on startup.

  1. It is better to either rename/move the projects within Eclipse.

  2. Or to remove and then re-add them to Eclipse's project management.

However, make sure to not accidentally delete the files from disk, when removing the old project from Eclipse. There is a checkbox within the confirmation dialog that - in this case - you should not check.

Especially when you are working with a code versioning system (such as Git or SVN), it is important to rename your files and folders within the code editor. Otherwise your repository might get out of sync.

Upvotes: 1

Christian
Christian

Reputation: 1571

I would just delete it here in eclipse (don't mark the checkbox to delete on disk) and then reimport it. So in this view from the screenshot just open the context-menu, say import and chose your projects again.

Upvotes: 1

Related Questions