-
Hi, I am trying to learn about how to use the Property View in Eclipse Theia. Unfortunately, I am already failing at the very first hurdle. I took the current java-emf-theia project template, and placed a custom data service, content widget and widget provider next to the frontend-module in tasklist-theia, following this tutorial. The content of those files is identical to the example code. I then registered them like this: export class TaskListTheiaFrontendModule extends GLSPTheiaFrontendModule {
...
override configure(context: ContainerContext): void {
context.bind(PropertyDataService).to(FileInfoPropertyDataService).inSingletonScope();
context.bind(PropertyViewWidgetProvider).to(FileInfoPropertyViewWidgetProvider).inSingletonScope();
}
} However, the property view in Theia is still showing the default resource view. The Am I registering the components correctly? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Hi @Ginxss, Your snippet looks good to me overall, however the super call is missing. Other than that and with the provided example code the property view should show your custom widget for the handled selection. I can provide an example that listens to GLSP selections (as the linked tutorial is plain Theia documenation): HTH and best regards, |
Beta Was this translation helpful? Give feedback.
Hi @Ginxss,
Thanks for your interest in GLSP and the Theia property view!
Your snippet looks good to me overall, however the super call is missing. Other than that and with the provided example code the property view should show your custom widget for the handled selection.
I can provide an example that listens to GLSP selections (as the linked tutorial is plain Theia documenation):
https://github.com/eclipse-glsp/glsp-examples/tree/property-view-example
This minimal example listens to GLSP selections and prints the ID of the selected GLSP diagram element.
HTH and best regards,
Nina