eclipse - Xtext and GMF integration -


first of all, have seen many links on stackoverflow of integrating xtext gmf.

the consistent tutorial i've seen far was: http://www.eclipse.org/forums/index.php/mv/msg/472225/1036564/#msg_1036564

..but not generate textual editor in final step (only gmf editor).

i saw documentation, can not understand suggest in link: http://www.eclipse.org/xtext/documentation.html#gmf_integration

so wonder if knows how integrate gmf xtext existing ecore! use xtext 2.0.4.

thank you!

depending on how fixed on using gmf, may want @ graphiti (built on gef).

graphiti eclipse-based graphics framework enables rapid development of state-of-the-art diagram editors domain models. graphiti can use emf-based domain models can deal java-based objects on domain side well.

there eclipse labs project creation of graphiti editors using xtext dsl, called spray.

this project aims provide 1 or more domain specific languages (dsl) describe visual dsl editors against graphiti runtime, , provide code generation create boilerplate code realizing implementation against graphiti framework. potentially spray dsl can used generate code other frameworks well.

you can import dsl ecore model spray, , using references dsl's types create graphical editor relatively little boilerplate. presentation @ codegen 2012 (spraycodegeneration2012.pdf on google code link above) highlights of spray's features.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -