in .net you have Regions that you can collapse and remove lots of code down to one line.
is there something like this in Android / Java / Eclipse.
#Region "Initialize"
private void DisplayHome(){
Intent i = new Intent(this, SMSInternetActivity.class);
finish();
startActivity(i);
}
private void DisplaySettings(){
Intent i = new Intent(this, DisplaySettings.class);
finish();
startActivity(i);
}
This just being an example..
#End Region
There’s a plug-in for that! It is called Coffee-Bytes. It is not in active development, but there are some programmers out there that are keeping the functionality going by updating it for new Eclipse releases.
There’s two places where you can get the most latest install for Eclipse 3.7 (Indigo):
http://code.google.com/p/academic-cloud/downloads/detail?name=eclipse-folding-plugin.tar.gz&can=2&q=
http://kosiara87.blogspot.com/2011/12/how-to-install-coffee-bytes-plugin-in.html
Basically, you download the archive, then unpack it. Then you copy the feature from the features folder into your Eclipse installation in the Eclipse features folder. Do the same thing with the JAR found in the plugins folder, it goes into your Eclipse plugins folder. Then restart Eclipse.
There’s a good SO answer that shows how to set it up:
How to use Coffee-Bytes code folding
Note that you may have to restart Eclipse for this new style of code folding to start working. Enjoy!