Difficult Editor Layout

Hello!

I would like to create an editor for a concept with child concept which produces an output which looks like this:
First Part of Parent Concept(Child        PropA PropB,
              AnotherChild PropA PropB,
              LastChild    PropA PropB) Second Part of Parent Concept 
prettyPrint();
I've already tried different combinations of layouts but was unable to achieve the desired output. Right now I live with this solution:
First Part of Parent Concept(
    Child        PropA PropB,
    AnotherChild PropA PropB,
    LastChild    PropA PropB
) Second Part of Parent Concept 
prettyPrint();
The Second Part of Parent Concept should be aligned with the last line of the child collection (which is a vertical grid). Is this possible?
3 comments
Hi Christian,

In the upcoming 2.5.2 we introduced a pair of new collection styles: indent-layout-indent-anchor and indent-layout-wrap-anchor.

indent-anchor :
.......(child1,
        child2, ......,            ## indent-anchor: indentation is aligned with the start of the collection
 wrappedChildN) ......  ## default continuation indent: 2 tabs
prettyPrint();
indent-anchor + wrap-anchor:
.......(child1,
        child2, ......,
        wrappedChildN) ......   ## wrap-anchor: no extra tabs after wrapping
prettyPrint();
indent + indent-anchor:
.......(child1,
            child2, ......,      ## 1 tab indent
     wrappedChildN) ......   ## 2 tab wrapping
prettyPrint();
wrap-anchor:
.......(child1,
child2,
        wrappedChildN) ......   ## 2 tab wrapping
prettyPrint();
0

Please sign in to leave a comment.