Skip to main content



      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 17:22 Go to next message
Eclipse UserFriend
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 17:40 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

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

~Christian
Re: Graphical view of an XText model [message #780087 is a reply to message #779955] Tue, 17 January 2012 01:48 Go to previous messageGo to next message
Eclipse UserFriend
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 15:14 Go to previous messageGo to next message
Eclipse UserFriend
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 16:45 Go to previous messageGo to next message
Eclipse UserFriend
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 04:20 Go to previous messageGo to next message
Eclipse UserFriend
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 18:02 Go to previous messageGo to next message
Eclipse UserFriend
@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 18:11 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Graphical view of an XText model [message #1796945 is a reply to message #780671] Mon, 22 October 2018 15:14 Go to previous message
Eclipse UserFriend
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: Sun Jun 22 11:43:41 EDT 2025

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

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

Back to the top