Something More About Generics Folding

April 8th, 2009 by Peter Gromov

Looking back at constructor type parameters folding, you may wonder why don’t we fold another verbose construct with generics — method type parameters like this:

fillMap(Collections.<String, List<Integer>>emptyMap());

In Maia, we will:

Tags: , ,

5 Responses to “Something More About Generics Folding”

  1. Alexander Babaev Says:

    Great! I love this feature.

  2. Vaclav Slovacek Says:

    I love this folding features. Hopefully, they will evolve over time and provide some level of abstraction for complex constructs like:

    that would provide high level overview of actual code while still providing access to low-level language constructs.

  3. Vaclav Slovacek Says:

    I love this folding features. Hopefully, they will evolve over time and provide some level of abstraction for complex constructs like:

    [copy array a to b]
    [call actionPerformed for each in listeners]

    that would provide high level overview of actual code while still providing access to low-level language constructs.

  4. Vaclav Slovacek Says:

    I just got back, because I really can’t this let go out of my head. Is any of the following planned for Maia?
    1) customizable patterns (in settings or at least via plugins) - define what should be folded and what should be written instead of folded content
    2) customizable colors for every type of folded pattern
    3) folding profiles - so it would be quick to switch between several folding settings

  5. Peter Gromov Says:

    Vaclav,

    Your suggestions sound reasonable (except probably for profiles: I believe it’s too complex). JIRA issues please?

Leave a Reply