epb
epb

Reputation: 484

Eclipse anonymous class folding

Is there an Eclipse plugin that folds anonymous classes?

Preferably something that works like Intellij's closure folding: http://blogs.jetbrains.com/idea/2009/03/closure-folding-in-intellij-idea-9-maia/

I've looked at lambda4jdt, but it does not support newer versions of Eclipse.

Upvotes: 4

Views: 789

Answers (1)

Modus Tollens
Modus Tollens

Reputation: 5123

In Eclipse Preferences, check "Inner types" as element to be initially folded:

Inner types folding screenshot

Effect:

Before folding

is initially shown as

After folding

Upvotes: 1

Related Questions