Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Graphical view of an XText model(What is the best (easy) way to create a grahical view of an XText model?)
Graphical view of an XText model [message #779955] Mon, 16 January 2012 22:22 Go to next message
Gerrit van Doorn is currently offline Gerrit van DoornFriend
Messages: 15
Registered: January 2012
Junior Member
I've been using XText to create a DSL and was wondering what is the best way to create a graphical viewer (e.g. for a state-machine) to visualize the ecore model. It doesn't need to be an editor. I believe there is GEF, GMF and maybe also Graphiti but I have no experience with either of them.
Re: Graphical view of an XText model [message #779961 is a reply to message #779955] Mon, 16 January 2012 22:40 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi,

did you see this one http://koehnlein.blogspot.com/2011/06/using-xbase-to-define-generic-graphical.html

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Graphical view of an XText model [message #780087 is a reply to message #779955] Tue, 17 January 2012 06:48 Go to previous messageGo to next message
Andreas Graf is currently offline Andreas GrafFriend
Messages: 211
Registered: July 2009
Senior Member
Depends on your needs. Some projects use graphviz and the Eclipse graphviz integration. Use M2T transformation to generate graphviz input.
Re: Graphical view of an XText model [message #780426 is a reply to message #780087] Tue, 17 January 2012 20:14 Go to previous messageGo to next message
Gerrit van Doorn is currently offline Gerrit van DoornFriend
Messages: 15
Registered: January 2012
Junior Member
I like the Graphviz solution. With M2T you mean something like Xpand (as I'm using it already with XText)?
Re: Graphical view of an XText model [message #780438 is a reply to message #780426] Tue, 17 January 2012 21:45 Go to previous messageGo to next message
Andreas Graf is currently offline Andreas GrafFriend
Messages: 211
Registered: July 2009
Senior Member
Well, in Xtext 2.2 etc. Xpand does not exist anymore and ist replace by Xtend2. But yes, basically a template based code generator.
Re: Graphical view of an XText model [message #780484 is a reply to message #780438] Wed, 18 January 2012 09:20 Go to previous messageGo to next message
Lasse  indg is currently offline Lasse indgFriend
Messages: 12
Registered: July 2009
Junior Member
Is there any way to bundle Jan's solution to a xtext project?

Or is it just mentioned as an example of something your could build yourself?
Re: Graphical view of an XText model [message #780667 is a reply to message #780484] Wed, 18 January 2012 23:02 Go to previous messageGo to next message
Gerrit van Doorn is currently offline Gerrit van DoornFriend
Messages: 15
Registered: January 2012
Junior Member
@Andreas: yes, XTend2. The syntax for the templates is rather similar, hence I called it XPand.

Jan's solution is a bit too advanced to me. I'm still trying to figure out how to write a plugin that can read the ecore model from a xtext DSL. For now the graphviz solution will do.
Re: Graphical view of an XText model [message #780671 is a reply to message #780484] Wed, 18 January 2012 23:11 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
If you mean "use with an Xtext based language": yes. Have a look at the
examples in the graph view project.

If you mean "deploy with an Xtext based solution": not yet, as the
configuration files currently do have to reside in the same workspace as
the models to visualize.

Am 18.01.12 10:20, schrieb Lasse indg:
> Is there any way to bundle Jan's solution to a xtext project?
>
> Or is it just mentioned as an example of something your could build
> yourself?
>


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Re: Graphical view of an XText model [message #1796945 is a reply to message #780671] Mon, 22 October 2018 19:14 Go to previous message
Tamas Miklossy is currently offline Tamas MiklossyFriend
Messages: 157
Registered: February 2016
Senior Member
Recently I implemented Graphical Views to the Xtext Example projects based on the GEF DOT component:
https://blogs.itemis.com/en/eclipse-gef-dot-graphical-views-on-xtext-dsls
Previous Topic:quickfixprovider for vscode
Next Topic:New file/project wizard name validation
Goto Forum:
  


Current Time: Thu Mar 28 12:45:09 GMT 2024

Powered by FUDForum. Page generated in 0.02938 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top