Replies: 1 comment 2 replies
-
HI @msaquib17, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
`@inject(FrontendApplication) protected readonly application: FrontendApplication;
constructor(@Inject(TYPES.IActionDispatcher) protected actionDispatcher: GLSPActionDispatcher) {
super();
this.inputElement = document.createElement("input");
}
protected initializeContents(containerElement: HTMLElement): void {
// do nothing
}
async show(root: Readonly, ...contextElementIds: string[]) {
super.show(root, ...contextElementIds);
if (this.isEditorEnabled()) {
if (this.label) {
console.log(this)
if (this.application.shell.activeWidget instanceof DiagramWidget) {
const diagramWidget = this.application.shell.activeWidget;
const sourceUri=diagramWidget.uri.toString();`
In my code the diagramWidget variable is turning out to be null when I use GLSPProjectionView in
configureModelElement(context, "graph", GLSPGraph, GLSPProjectionView)
. However, it works fine when I use SGraphView as inconfigureModelElement(context, "graph", GLSPGraph, GLSPProjectionView)
. Is there something wron with GLSPProjectionView or I am missing something?Beta Was this translation helpful? Give feedback.
All reactions