Folding anonymous inner classes to closure syntax

There is a new Eclipse plugin in development that uses code folding to display selected anonymous inner classes in a syntax similar to the BGGA closures proposal.

http://code.google.com/p/lambda4jdt/

Is it possible to customise the Java folding model to implement something similar through the IDEA Open API?

Or should I just bite the bullet and port to Scala?

-jason

2 comments
Comment actions Permalink

Hello Retronymster,

There is a new Eclipse plugin in development that uses code folding to
display selected anonymous inner classes in a syntax similar to the
BGGA closures proposal.

http://code.google.com/p/lambda4jdt/

Is it possible to customise the Java folding model to implement
something similar through the IDEA Open API?


In fact this functionality is already implemented in the development builds
of IDEA 9. No need to bother writing a plugin for this. :)

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

This functionality will be available in IDEA 9. Current OpenAPI allow
for such foldings.

0

Please sign in to leave a comment.