Is Java - EMF - VS Code combination possible? #1567
-
Let me tell the background a bit. My team and I currently build and maintain a fork of FeatureIDE (https://featureide.github.io/) to support development of web software product lines. Unfortunately, using Eclipse as the IDE doesn't appeal majority of the market here in our country, so that we have the urgency to support web software product lines using other IDEs, such as VS Code. Currently, in the examples, there is Node - Custom JSON - VS Code and Java - EMF - Theia. As we are new to the project, any guidance will be helpful, especially when we need to make our own variant of GLSP server for example. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Thank you for your interest in Eclipse GLSP and for sharing the background of your project. GLSP Architecture & Java-EMF Integration with VS Code GLSP is designed with a flexible, decoupled architecture. It allows you to combine any backend/server implementation (e.g., Java-based with EMF models) with a frontend/client integration (e.g., VS Code extension using webviews). So, your intended combination—Java + EMF on the server side, with a VS Code extension as the frontend—is absolutely feasible and aligns well with GLSP’s design. GLSP communicates between client and server via a well-defined protocol (using JSON over WebSockets/Sockets), so the frontend does not need to know the backend model implementation details. This means you can leverage your existing EMF-based models and business logic in Java, and connect them to a custom GLSP-based VS Code extension that renders and edits diagrams in the browser/webview. References & Examples If you are looking for a real-world reference, check out bigUml (https://github.com/borkdominik/bigUml). |
Beta Was this translation helpful? Give feedback.
-
Thank you @tortmayr for your amazing explanation and examples. I'm glad that you have example for UML too. This is a bit out of topic, but, when I try to run |
Beta Was this translation helpful? Give feedback.
Thank you for your interest in Eclipse GLSP and for sharing the background of your project.
GLSP Architecture & Java-EMF Integration with VS Code
GLSP is designed with a flexible, decoupled architecture. It allows you to combine any backend/server implementation (e.g., Java-based with EMF models) with a frontend/client integration (e.g., VS Code extension using webviews). So, your intended combination—Java + EMF on the server side, with a VS Code extension as the frontend—is absolutely feasible and aligns well with GLSP’s design.
GLSP communicates between client and server via a well-defined protocol (using JSON over WebSockets/Sockets), so the frontend does not need to know the backend m…