Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Visiting a Tree of a Model
Visiting a Tree of a Model [message #52576] Wed, 24 June 2009 07:32 Go to next message
Aurel Ganga is currently offline Aurel GangaFriend
Messages: 14
Registered: July 2009
Junior Member
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 15:57 Go to previous messageGo to next message
Aurel Ganga is currently offline Aurel GangaFriend
Messages: 14
Registered: July 2009
Junior Member
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 07:44 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
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: Thu Jul 18 07:21:03 GMT 2024

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

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

Back to the top