I dislike Eclipse’s code folding feature, because the folding state isn’t saved when you close the file, like Visual Studio does with its #region directives.
Does anyone know of a plugin which saves the status of the code folding per file, so that when I open it, the code stays folded?
Try to use: http://code.google.com/p/coffee-bytes/
You have to download the source code, import project into Eclipse and build it. After that Export code as a deployable plug-in for Eclipse. You will have a package for installation.
"Coffee Bytes Java Folding"
Defined Regions"
start tag and #endregion as an end tag
In code folding will be available after setting special comments into it: