-
Hello, I currently have a diagram editor which uses a theia client, a java server and an EMF model. I now want to be able to open my diagram in the Eclipse IDE instead of / in addition to theia. I followed the steps in the eclipse integration repository for the workflow example (https://github.com/eclipse-glsp/glsp-eclipse-integration), which does work, but it does not help me understand why / how it works. I would be very grateful if someone could tell me the basic steps that I need to do in order to get my diagram into the Eclipse IDE. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi @Ginxss, I will try to break down the basic steps necessary to integrate your diagram editor into eclipse (using the WIP template as an example). In a nutshell a GLSP diagram editor is just a plain Eclipse Editor with an SWT browser widget. The glsp-client is bundled in a simple webapp that is served via a jetty server on a specific address. The SWT browser widget of the diagram editor than simply points to this address. To achieve this you need to implement an new Eclipse plugin. Let´s call this plugin "editor plugin".
Defining the diagram editor & server manager extensionsThe diagram editor is defined using the
Implementing the ServerManagerThe
The glsp-client (webapp)The generic glsp client implementation has to be wrapped in a simple webapp and (ideally) bundled with webpack. In case of the project-template this is done in the tasklist-eclipse package. Here we build a simple webapp that connects to the glsp server via websocket. I hope this rough breakdown is helpful for you. Please let me know if something is unclear. |
Beta Was this translation helpful? Give feedback.
Hi @Ginxss,
unfortunately the project template for java-emf-eclipse is not available yet. If you want to you can check out an early WIP version here: eclipse-glsp/glsp-examples#152
I will try to break down the basic steps necessary to integrate your diagram editor into eclipse (using the WIP template as an example).
For this break down I assume that you are already familiar with the basics of plugin development and extensions in Eclipse.
In a nutshell a GLSP diagram editor is just a plain Eclipse Editor with an SWT browser widget. The glsp-client is bundled in a simple webapp that is served via a jetty server on a specific address. The SWT browser widget of the diagram editor than simply …