Eclipse opens file in Project Explorer tab
Belated, but I found only this result for my google search, so maybe it will speed up other's queries.
See a Stack Overflow answer for the same problem with another version
You should Reset Perspective
.
In some versions you can access this option through the Window option in the menu bar.
For the Luna specific command, try the Luna help page.:
Open the command link General Perspectives preference page.
From the Available perspectives list, select the perspective you want to restore.
Click Reset.
Click OK.
I just had this problem in Mars 2. Double-clicking on a file in Project Explorer would open the file in the Project Explorer view. This happened after I closed Project Explorer view and re-opened it. The solution I found was to move Project Explorer down to the bottom area, (I had Console, Breakpoints, etc down there. When I did that, it moved down but also snapped to the left side of the window, and went back to working normally, opening .c files in their own editor views.
The only thing I found to fix this is to move Project Explorer view around, close it, and reopen it. That fixed it for me.
Edit: I found that if I drag the Project Explorer tab down to the bottom area below the code, it goes blank down there and makes its own skinny column on the side, and stops opening windows in its tab.