Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Context menus #323

Open
FelixJoehnk opened this issue Nov 30, 2022 · 0 comments
Open

Multiple Context menus #323

FelixJoehnk opened this issue Nov 30, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@FelixJoehnk
Copy link
Contributor

Hy, i am currently working on implementing a context menu for a specifiic type of Model.
The problem for future additions: one might want to have multiple context menues each assigned to a specific type of model. Since those might have different syntaxes.

One way of achiving this would be to have a symbol for every model type. This symbol than could be stored in the SModelRoot. Than we could simply use said symbol while calling "menuService = await this.contextMenuService();" in the mouse-listener since we have access to the SModelElement anyway.

Best Regards Felix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants