Preventing the instantiation of root concept by Right click model -> New action
I have a concept (say MyConcept ) whose instance can be root is set as true.
After importing this language to a model, we are able to right click the model and we can select New->x.y.LangName-> MyConcept . I don't want to allow the user to do the above action for MyConcept. (During some other action, the node for MyConcept will be created by in background and it will be added to the model) . Is it possible to remove this concept name from that list? If so, how to do it?
Please sign in to leave a comment.
Take a look at CreateRootFilterEP class. That's an ad-hoc solution exactly for your problem.
Thanks, Mihail! This solves my problem also.