4

I created a gmf model using eugenia with the following node in it:

     @gmf.node(label="name", border.width="0", margin="1", label.icon="false")
     class ShElement {
        attr String name;
        ref EObject element;

        @gmf.compartment(layout="list")
        val ShElement[*] subelements;
      }

It works fine but sadly it is completely expanded when inserting it into the graph.

So i would like to know if there is a possibility to add the Node and have it and all Childs collapsed at the beginning?

Shorty123
  • 539
  • 1
  • 7
  • 26

1 Answers1

1

accordingly to GMF Documentation there is a collapsible variable that you can use to do so.

Dharman
  • 30,962
  • 25
  • 85
  • 135
  • thanks for the answer. But i think this is only to allow the general collapsing of the compartment. It would still be expanded when it is first shown. – Shorty123 Dec 05 '21 at 17:06