Something More About Generics Folding

Posted on 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:

Comments below can no longer be edited.

5 Responses to Something More About Generics Folding

  1. Alexander Babaev says:

    April 8, 2009

    Great! I love this feature.

  2. Vaclav Slovacek says:

    April 12, 2009

    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:

    April 12, 2009

    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:

    April 12, 2009

    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:

    April 13, 2009

    Vaclav,

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

Subscribe

Subscribe for updates