TMF meets GMF - Combining Graphical and Textual Modeling

Session Type: 
Standard [25 minutes]

Schedule info


Both, graphical as well as textual modeling, indisputably have their respective advantages (and disadvantages). And while a few evangelists might praise the superiority of one formalism over the other, the combination of both into a single integrated modeling tool seems to be the holy grail most modelers are indeed searching for.

While with the GMF runtime, a mature framework to develop graphical modeling tools has already been around for quite a while (which is now complemented by Graphiti), Xtext has recently closed the gap with respect to textual modeling. As such, the longed for undertaking has in theory - at least to some extent - become feasible.

Within this talk I will sketch how the integration of fully featured Xtext cell editors with support for syntax highlighting, auto-completion, scoping, and validation into a GMF-based graphical editor (and its related property sheets) can be technically achieved.


Great, thx!

Great, thx!

Actually, the core of the

Actually, the core of the presented solution is a CellEditor implementation (XtextCellEditor), which is neither dependent on GMF nor on GEF, but can be employed in any SWT/JFace context (e.g. within property sheets), therefore as well within Graphiti. While this is thus possible, the demonstration of how the integration of the core into a graphical editor is achieved, will here be limited to a GMF editor example (but I may give hints on how this could be transferred to Graphiti as well).

Is this strictly bound to GMF

Is this strictly bound to GMF or are there examples with Graphiti as well? Just curious...