2

I want to create a DSL with graphical support in Eclipse. For the DSL I use Xtext, but cannot find good example on how to integrate the graphical part. I have not decided on one of the technologies to prove a graphical part and are prepared to use any one.

Does anybody now of good examples?

Bela Vizer
  • 2,527
  • 22
  • 26
Johan
  • 575
  • 5
  • 21

1 Answers1

5

That depends on how you want to design the integration. What should be the main syntax for editing, text or graphics?

Here are some examples integrating Xtext with Graphiti, GMF, and Sirius: https://github.com/spoenemann/xtext-gef

If you don't need graphical editing, but would like to generate graphical views for your text models, you could consider KIELER (esp. the KLighD component).

Miro Spönemann
  • 273
  • 1
  • 5
  • I looked at the xtext-gef example, but have no idea where to start. I can create separate xtext/ gmf (using EuGENia) project but how do I combine them? – Johan Jul 13 '16 at 19:03
  • 1
    The project `org.xtext.xproperties` contains example code for combining them. In this case a view is created that allows to edit parts of the model with an embedded Xtext editor, see [TextPropertiesViewPart](https://github.com/spoenemann/xtext-gef/blob/master/org.xtext.xproperties/src/org/xtext/xproperties/TextPropertiesViewPart.xtend). – Miro Spönemann Jul 14 '16 at 09:29