This project contains the glue code necessary to integrate diagram editors built with the graphical language server platform with Eclipse Theia as well as an example Theia application for testing purposes.
This project is built with yarn
and is available from npm via @eclipse-glsp/theia-integration.
For details on building the project, please see the README file of the theia-integration package.
@eclipse-glsp/theia-integration | Theia |
---|---|
0.8.0 | <=1.4.0 |
0.9.0 | >=1.20.0 |
The workflow diagram is a consistent example provided by all GLSP components. The example implements a simple flow chart diagram editor with different types of nodes and edges (see screenshot below). The example can be used to try out different GLSP features, as well as several available integrations with IDE platforms (Theia, VSCode, Eclipse, Standalone). As the example is fully open source, you can also use it as a blueprint for a custom implementation of a GLSP diagram editor. See our project website for an overview of the workflow example and all components implementing it.
diagramanimated.mp4
Clone this repository and build Theia-Integration packages:
yarn install
Next, download a pre-built version of the Workflow Diagram Server, start the Theia application, and point your browser to localhost:3000:
yarn download:exampleServer
cd examples/browser-app
yarn start
If you want to explore or change the Workflow Diagram Server too, you can clone, build and start the workflow example glsp-server
from your IDE instead of using the pre-built version of the Workflow Diagram Server.
See workflow example glsp-server
for instructions on building and running the Workflow Diagram Server example.
Once the Workflow Diagram Server is running, start the Theia application with the debug
flag so that it'll connect to an existing server process -- the one you started from the command line or from your IDE before:
cd examples/browser-app
yarn start:debug
In addition to this repository, the related source code can be found here:
For more information, please visit the Eclipse GLSP Umbrella repository and the Eclipse GLSP Website. If you have questions, please raise them in the discussions and have a look at our communication and support options.