Code Folding for inline impl. of Interface

Hi there

I have a problem that I have not been able to solve one way or another..

If I declare a variable and implement an interface inline eg.:


    public Runnable r = new Runnable() {
        @Override
        public void run() {
            System.out.println("");
            System.out.println("");
            System.out.println("");
            System.out.println("");
            System.out.println("");
            System.out.println("");

        }
    }



when I then fold it ends up with:

    public Runnable r = Runnable() {
            System.out.println("");
            System.out.println("");
            System.out.println("");
            System.out.println("");
            System.out.println("");
            System.out.println("");
    };



Is it not possible anymore to fold it completely to a oneliner ? It used to work in Intellij 10, but in 11 it's not.

Any ideas ?
2 comments
Comment actions Permalink

Hi Svend,

You can uncheck the following box to get the old behavior - 'IDE Settings | Editor | Code Folding | Closures'

Denis

0
Comment actions Permalink

Super - thank you... :D

0

Please sign in to leave a comment.