Eclipse has decided that it wants to ruin my life. Team/Source options are all greyed out.

1.1k views Asked by At

After staying up until 1030AM working on, and completing an assignment, I decided that I would take a short nap before formatting it and submitting it. Needless to say that nap became a 5 hour sleep session.

After waking up, I formatted the code to eclipse google style formatting for java, and proceeded to try and commit the files. After realizing my team options did not even show up when right clicking the project, I closed Eclipse and reopened it... and now all of the Source tab options are greyed out. Is there something wrong with my Subclipse? I just started learning Java in the past couple of weeks, so I'm very unfamiliar with Eclipse =(.

I can't even commmit the files using Terminal. The assignment is due in less than 6 hours. If anyone can point me in teh direction of fixing this, I would be eternally grateful =(.

2

There are 2 answers

2
takra On

You just need to select the project you were working on in the package explorer, and the options under the Source menu should become available again.

If the one you need is still greyed out, open any source file in that project and check again on the menu.

0
UTF-8 On

This won't help OP but maybe others. I just had the same problem and found this question because I googled it but after not finding a solution by googling, I found a solution by trying random things. The shortcut Ctrl + Shift + F didn't work either (I usually use the shortcut and only went into the context menu after the shortcut didn't do anything).

Formatting the source code worked, I wrote a few more lines, and it didn't work anymore. Even after closing and opening the file, closing and opening Eclipse, it didn't work.

I opened that file directly without it being associated with any project (just wanted to write a 50 lines PHP script in a few minutes). And that seems to have caused the problem.

After creating a project for that 1 file, the options are shown, again.