Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Editor in eclipse has vanished

Tags:

eclipse

I feel slightly like n00b encountering windows for the first time, but I have lost the editor window in Eclipse. I had dragged one of two tabs to one side such that I could view the two files side by side and it disappeared. Foolishly, I then dragged the remaining tab to the same position and found that it also disappeared. When I select 'Windows' > 'Navigation' > 'Next editor' I can see that both files are still open. I have tried opening other files, and although they do open they are similarly invisible. I tried resetting the perspective, but the editor was left absent. I'm running out of ideas, so any contributions would be highly welcome! I'm using a mac by the way.

like image 569
elo96 Avatar asked Aug 03 '12 17:08

elo96


People also ask

How do I get the Eclipse editor back?

press Ctrl-F. a popup menu allows you to choose which action.

What does it mean in Eclipse when it says editor does not contain a main type?

Basically, this type of Error means your Editor is not able to find the “main” method in any of your current program classes. The editor shows this error because when you want to run the project, at that time, the interpreter couldn't find the main function to start the execution of the program.


2 Answers

Perspective reset or window->new editor did not work for me. What worked though was to create a new window with Window->New Window, and then close the first one with editor hidden. Hope this help.

like image 121
Phil Avatar answered Oct 24 '22 19:10

Phil


Just so this case be changed to 'answered': I ended up using cmd-W to close the editors one by one, then was able to open a new editor. I still don't understand what caused the problem, but at least it is solved now. Many thanks for the suggestions though!

like image 44
elo96 Avatar answered Oct 24 '22 20:10

elo96