Eclipse code formatter: how to remove its effects?

eclipse, java

Solution

The simplest approach is probably to use Eclipse's Local History. On the context menu for the file, select "Restore from local history." If it's not in the local history, you may need to go back to the previous version in source control... (I assume you're using source control. If you're not, I strongly urge you to do so, right away.)

Of course, another option if you've still got the file open is just to press Ctrl-Z to undo actions - keep doing that until the formatting goes away :)

Problem

for a mistake i've made eclipse v. 3.4.2 formatting my sourcecode on a single class file. That's really confusing, how can i restore my own original text format?

Original source