Skip to content

Generating the concept menue of the tree editor depending on the state of the current emf model #173

Answered by ndoschek
Deel96 asked this question in Coffee Editor
Discussion options

You must be logged in to vote

Hi @Deel96,

To create children for a selected node via the + button (I am not aware of any context menu so far),
the tree editor fetches the information from the coffee-model-service#getChildrenMapping.
This is currently hard-coded, the children mapping is defined in the coffee-model.ts.

I suppose you could override the getChildrenMapping method in the coffee-model-service by calculating your custom mapping.
Perhaps you will also have to update the method in coffee-node-factory#hasCreatableChildren as this also uses the static childrenMapping.

HTH, BR Nina

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Deel96
Comment options

@ndoschek
Comment options

Answer selected by ndoschek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants