Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Visiting a Tree of a Model
Visiting a Tree of a Model [message #52576] Wed, 24 June 2009 03:32 Go to next message
Eclipse UserFriend
Hello,

I have a metamodel grammar and I wrote a model in my DSL editor.
Now I need to visit the tree of EMF objects generated by the editor. How
can I do that, or how can I generate an ecore model out of the model
written in the DSL editor?

Thank you.
Re: Visiting a Tree of a Model [message #52657 is a reply to message #52576] Wed, 24 June 2009 11:57 Go to previous messageGo to next message
Eclipse UserFriend
In case I wasn't very clear in the first description:

Can I create an ecore file out of my model I wrote in my editor, maybe
through an appropriate template?

Is there another way to generate a tree strucured file from my model?
Re: Visiting a Tree of a Model [message #52742 is a reply to message #52657] Thu, 25 June 2009 03:44 Go to previous message
Eclipse UserFriend
Hi Aurel,

generally speaking, there is no need for tree structured files when you
are working with Xtext. What do you want to accomplish?

To get an idea about what I mean with "there is no need", please try to
open your model file (*.mydsl or whatever) with the reflective ecore
model editor. You'll get the tree like visual represenation for your
model although the model is stored in your concrete DSL syntax.

Regards,
Sebastian

Am 24.06.2009 17:57 Uhr, schrieb Aurel Ganga:
> In case I wasn't very clear in the first description:
> Can I create an ecore file out of my model I wrote in my editor, maybe
> through an appropriate template?
>
> Is there another way to generate a tree strucured file from my model?
>
Previous Topic:Maven Support for XTEXT
Next Topic:Enabling a DSL editor to open concrete model files
Goto Forum:
  


Current Time: Mon Apr 28 03:13:03 EDT 2025

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

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

Back to the top