Placing nodes inside of other nodes? #692
-
Hi, I used the Java-EMF-Theia project template (https://github.com/eclipse-glsp/glsp-examples/tree/master/project-templates/java-emf-theia) and used the UML2 metamodel as a source model instead of the tasklist model from the example. You can probably already guess my question. I now want to be able to place packages inside of other packages (or at least on top of them). How would I "unlock" the behaviour of placing nodes on top of or inside of other nodes? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @Ginxss, You can check how we did it for "Category" nodes in the Example workflow. You need:
ShapeTypeHint catHint = new ShapeTypeHint(CATEGORY, true, true, true, true);
catHint.setContainableElementTypeIds(
Arrays.asList(DECISION_NODE, MERGE_NODE, FORK_NODE, JOIN_NODE, AUTOMATED_TASK, MANUAL_TASK, CATEGORY)); The model for Categories looks like this:
|
Beta Was this translation helpful? Give feedback.
Hi @Ginxss,
You can check how we did it for "Category" nodes in the Example workflow. You need:
The mode…