@eclipse-emfcloud/sprotty-ecore

ecore-glsp

Showing:

Popularity

Downloads/wk

34

GitHub Stars

18

Maintenance

Last Commit

1mo ago

Contributors

8

Package

Dependencies

2

License

(EPL-2.0 OR MIT)

Type Definitions

Tree-Shakeable

No?

Categories

Readme

ecore-glsp

Build Status

For more information, please visit the EMF.cloud Website. If you have questions, contact us on our discussions page and have a look at our communication and support options.

Ecore GLSP provides a web-based editor for Ecore Models (including Diagrams), integrated with Eclipse Theia. It contains two components: one GLSP language server (Server-side, written in Java), and one GLSP client extension to actually present the diagrams (Using Sprotty).

Ecore GLSP can display an existing Ecore model. The diagram layout will be persisted in an .enotation file next to the .ecore file. The diagram editor also supports creation of new elements (EClasses, EAttributes, EReferences...), as well as partial support for editing existing elements (Renaming, deleting...).

Ecore GLSP Example

Prerequisites

Java

You need Java 11 to build the ecore-glsp editor.

Getting started

Clone the ecore-glsp editor:

git clone https://github.com/eclipse-emfcloud/ecore-glsp.git

Build server and client with the following build-script. This script also copies the needed server artifacts to the client.

cd ecore-glsp
./build.sh

Run

  • Start the client as it is described in the client README.
  • The copied backend artifacts are automatically launched on startup.
  • If you want to start the backends manually:
    • Execute the Java main classes: org.eclipse.emfcloud.ecore.glsp.EcoreServerLauncher and/or org.eclipse.emfcloud.ecore.modelserver.EcoreModelServerLauncher
    • On the client run yarn start:debug or the launch config Start Browser Backend (expects running GLSP Server instance)

Building and deploying via Docker

The client repo contains a Dockerfile, that builds the entire client application. The image listens on 0.0.0.0:3000 for incoming requests from a browser.

For installing docker locally please consult docker's installation description for your OS.

The glsp-server needs to be build locally before you build the image

Building docker build -t <imagename>:<tagname> .

Running docker run -it -p 3000:3000 --rm <imagename>:<tagname>

After that you should be able to connect with your browser at localhost:3000.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100