Something More About Generics Folding
April 8th, 2009 by Peter GromovLooking 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:![]()

April 8th, 2009 at 7:32 am
Great! I love this feature.
April 12th, 2009 at 10:18 am
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.
April 12th, 2009 at 10:20 am
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.
April 12th, 2009 at 3:54 pm
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
April 13th, 2009 at 6:59 am
Vaclav,
Your suggestions sound reasonable (except probably for profiles: I believe it’s too complex). JIRA issues please?