Giter Site home page Giter Site logo

dalavancloud / theia-sprotty-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from theia-ide/theia-sprotty-example

1.0 3.0 0.0 763 KB

An example application integrating Sprotty views with Theia

License: Apache License 2.0

Xtend 37.87% JavaScript 11.68% TypeScript 46.43% HTML 2.36% CSS 1.66%

theia-sprotty-example's Introduction

theia-sprotty-example

An example application integrating graphical sprotty views for an Xtext-based DSL with Theia

sprotty Theia Demo

Build and Run

git clone [email protected]:TypeFox/theia-sprotty-example.git

# Build the diagram-aware language server for the example DSL
cd theia-sprotty-example/server
./gradlew installDist
cd ..

# Prepare the Theia extension for the example DSL
cd theia-dsl-extension
npm install
cd ..

To run the Theia web app:

# Build and run the Theia webapp
cd theia-app
npm install
npm run build
npm run start

To run the Theia Electron app

# Build and run the Theia Electron app
cd theia-electron
npm install
npm run build
npm run start

How to Use the Examples

  • Expand the files browser on the left.
  • Double-click an example file to open it. You'll get a text editor with language support for the multicore DSL powered by Xtext. The DSL describes the execution of parallel algorithms on many-core processors.
  • Right-click the same file in the files browser and select "Open With โ†’ Flow diagram". You'll see a graph view of the tasks and barriers in the DSL file, with automatic layout powered by ELK.
  • Drag the graph view tab to the right to get a side-by-side layout.
  • Right-click the file again, select "Open With โ†’ Processor diagram", and drag the new tab to the bottom right (below the graph view).
  • Click on task nodes in the graph view and observe how the application adapts to that selection. Clicking on the black background also has an effect if you previously selected a task node.
  • The same kind of view synchronization is done if you click on a color-highlighted core in the processor view.

theia-sprotty-example's People

Contributors

jankoehnlein avatar jbicker avatar spoenemann avatar akosyakov avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.