Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fold anonymous classes in a way that only shows the method implementation #30

Open
GoogleCodeExporter opened this issue Jul 5, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Write an anonymous class, implementing a single-method interface, e.g.,
Runnable.
2. Stare at its code, find it slightly hard to read.
3. Wish Java had closures.

What is the expected output? What do you see instead?

Expected:
SwingUtilities.invokeLater({frame.setVisible(true);});

Actual:
SwingUtilities.invokeLater(new Runnable()
{
        public void run()
        {
                frame.setVisible(true);
        }
});

What version of the product are you using? On what operating system?
None, I'm reading the website.

Please provide any additional information below.
This is a planned feature for Eclipse and for IDEA - if coffee-bytes could
do it first, I'd use coffee-bytes.  Other code folding I'm not so fond of,
as I like to see the code I'm working with (but not the excess).

Original issue reported on code.google.com by ricky.cl...@gmail.com on 25 Oct 2006 at 10:13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant