-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
@wss29 Hi, the menu is created by the I think that should yield the result you want. |
Beta Was this translation helpful? Give feedback.
-
Ah yes, that seems to be the problem. Filtering the export class VDMTheiaFrontendModule extends GLSPTheiaFrontendModule {
override configureDiagramLayoutCommands(context: ContainerContext): void {
context.bind(CommandContribution).to(GLSPLayoutCommandContribution).inSingletonScope();
context.bind(KeybindingContribution).to(GLSPLayoutKeybindingContribution).inSingletonScope();
context.bind(MenuContribution).to(YourMenuContribution).inSingletonScope();
}
} |
Beta Was this translation helpful? Give feedback.
Hi @wss29,
in the 1.0.0 Version the
DiagramMenu
is provided by "sprotty-theia" and unfortunatley it is configured in a way that does not allow easy rebinding. What you could do is use Theia'sFilterContribution
API to filter out the unwanted diagram menu and then simply bind yourVDMDiagramMenuContribution
: