Whenever I'm just typing some code in Eclipse, and I click on the Error lightbulb on the gray ribbon area, my code just runs away from me, and I have to close the file and re-open it to see my code again. Can someone help me figure out how to STOP this? Thanks

Happens on my XML files all the time. Its to do with the fact you generate it in the GUI Builder. It seems to display the wrong code in the xml.(Unless you highlight it all). Close/Reopen is the only way I know of to fix this.
–
DoomsknightAug 7 '12 at 22:50

This was actually in a src file, someclass.java
–
Jon WeiAug 7 '12 at 22:54

The red arrow (added for emphasis) points to a minus sign in a circle. When you hover over the area underneath the minus sign, a vertical bar is drawn from the minus sign to the bottom of the code block, of which the minus sign is next to the top line.

If you (perhaps accidentally) single-click on the minus sign or double-click on the vertical bar, then the whole block of code collapses and only the first line is shown. The minus sign changes to a plus sign. Clicking on the plus sign expands your code again.

No, it does not. Rather, when I click on an error lightbulb link, this is what the code looks like: link
–
Jon WeiAug 8 '12 at 1:16

Okay, that is mighty strange. What is the error? Does it have a built-in recommended fix?
–
SparkyAug 8 '12 at 6:10

No, it's not the error that's the issue (I think that's what you are saying) but rather when clicking on the "Fix" all my other code just goes away which is what I want to stop.
–
Jon WeiAug 8 '12 at 14:06

Yes, I am curious to know what exactly is the fix that is making your code vanish. It could be a bug in the tool, for instance.
–
SparkyAug 8 '12 at 14:20