Michael
Michael

Reputation: 81

Eclipse: How do I restore the original project structure?

After checking out a very old commit of a project, I checked back out to the current state of the project. However, this somehow messed up my directory structure in Eclipse. Here is what the structure was before (and what I need it to be now):

Previous directory structure

And this is what it currently looks like:

Current directory structure (incorrect)

So here are my questions:

  1. Is there some quick and easy fix to get the directory structure back to how it was? It seems like Eclipse still "remembers" what the structure looked like, but misinterprets it.
  2. Why did this happen in the first place and how can I prevent it form happening again? A few others I know had the same problem (which made them promptly switch to InelliJ rather than fixing the issue).

Thanks in advance!

Upvotes: 0

Views: 921

Answers (1)

howlger
howlger

Reputation: 34325

It seems that the project folder is wrongly set as source folder.

This can be corrected in Project > Properties: Java Build Path, in the tab Source: select the source folder Quoridor, click Edit... and enter src.

Upvotes: 1

Related Questions