Replies: 1 comment 7 replies
-
Hi, in general, you can send the If you want to enable this UI extension from the start -- as it was suggested by the documentation example -- you'll need to dispatch it as soon as the To add it, you'll first have to overwrite the diagram manager with a custom one to be able to return a custom override configureDiagramManager(context: ContainerContext): void {
registerDiagramManager(context.bind, MyGLSPDiagramManager);
} Your new custom class In this custom subclass of protected dispatchInitialActions(): void {
super.dispatchInitialActions();
setTimeout(() => {
this.actionDispatcher.dispatch(SetUIExtensionVisibilityAction.create({ extensionId: "button-overlay", visible: true }));
}, 50);
} |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am tryin to add this showcase (https://eclipse.dev/glsp/documentation/ui-extensions/#button-overlay-showcase) to my eclipse
glsp-workflow-example
(https://github.com/eclipse-glsp/glsp-examples), I think I have understood all clear, but, in the last step I have to activate the"UI Extension"
but I can't find where I have to add the next code:It seems it have to be added to some file that I dont have on my project, I attach screenshot of my
glsp-client/workflow-theia/src/browser/diagram
folder, because I think is there where I have to place the initialization code (not sure in which file):Please could you help me? Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions