File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes I use eclipse IDE and having a java code which has a if loop Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "I use eclipse IDE and having a java code which has a if loop" Watch "I use eclipse IDE and having a java code which has a if loop" New topic
Author

I use eclipse IDE and having a java code which has a if loop

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
I use eclipse IDE and having a java code which has a if loop ,I want to fold and unfold the loop by click the cursor in the left of the editor
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30392
    
150

What version of Eclipse are you on? The latest one has that functionality.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Greg Brannon
Bartender

Joined: Oct 24, 2010
Posts: 557
Eclipse has had that feature (code folding) for a while, but I don't know how far back it goes. However, it is a configurable feature; it can be turned off. If you do not seem to have that feature and are using a relatively recent version, you should check your editor options to see if if has been turned off.


Learning Java using Eclipse on OpenSUSE 11.2
Linux user#: 501795
jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
Could please how it can be done
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

Looks like Eclipse does not support code folding for loops:



[Thumbnail for folding.png]


JBoss In Action
Greg Brannon
Bartender

Joined: Oct 24, 2010
Posts: 557
I apologize. As Peter points out, I've similarly checked the version(s) of Eclipse that I use, and folding loops is not supported. I also use Geany, often at the same time as I'm using Eclipse so that I can have another editor open at the same time, and it's much more generous with the types of cold folding it allows, including loops. I was confused.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I use eclipse IDE and having a java code which has a if loop