Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Xpand] model Root
[Xpand] model Root [message #981575] Mon, 12 November 2012 14:25 Go to next message
Adnan AL-SOSWA is currently offline Adnan AL-SOSWAFriend
Messages: 41
Registered: May 2010
Hi all ,

I have a question concerning Modeling , Should any Model has a Root ? if Yes how I can access the Root of any model.xmi using xpand after I create dynamic instance of the metamodel ?(I want general template to access root of any Model.xmi)

if not could you please show me an example of a model without Root?

Thank you very much in advance.
Re: [Xpand] model Root [message #981725 is a reply to message #981575] Mon, 12 November 2012 16:47 Go to previous message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

There is no need for either way, both is possible. The "root" is or are the elements that are direct content of a Resource. The root of any object can be accessed with eRootContainer. If you have multiple elements as direct content of the resource, you would have different results for that operation, since each of them is a root element.


Need professional support for Xtext, EMF, Eclipse IDE?
Go to:
Twitter : @kthoms
Blog :
Previous Topic:XMLBeautifier - Xpand - model to code generation
Next Topic:[Acceleo] generation exception after deploy
Goto Forum:

Current Time: Wed Jul 06 04:12:11 GMT 2022

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

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

Back to the top