Something More About Generics Folding

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:

This entry was posted in New Features and tagged , , . Bookmark the permalink.

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

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>