Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » [MOFScript]model to text
[MOFScript]model to text [message #384805] Tue, 19 August 2008 07:35 Go to next message
yeliu is currently offline yeliuFriend
Messages: 145
Registered: July 2009
Senior Member
Hello,
I designed an graphical editor using EMF and GMF,and when I create an
instance of this editor in Eclipse,there are two files generated, one is
xx(domain file extension) which is writen in XML Schema and another
xx_diagram.Now I wanna transfer model to text which is another kind of
code.I wonder when I write transformation code shoud I set the input model
as xx:"com.eclipse.xx"? or should I set in
ec:"http://www.eclipse.org/emf/2002/Ecore"?


Thanks a lot!


Ye
Re: [MOFScript]model to text [message #384809 is a reply to message #384805] Tue, 19 August 2008 07:40 Go to previous messageGo to next message
Gøran K. Olsen is currently offline Gøran K. OlsenFriend
Messages: 184
Registered: July 2009
Senior Member
Hello Ye,

Take your ecore (domain model) and copy it into the
eclipse\plugins\org.eclipse.mofscript.editor\repository\meta models folder.

Restart eclipse and the metamodel should appear in the content assist for
input metamodel. "myInputModel:" should display a drop down list of the
available models. The name space that you used on your ecore file will
display together with all the metamodels from this repository directory. And
also the models already in some other plugins e.g. Ecore.

Cheers,
G
Re: [MOFScript]model to text [message #384810 is a reply to message #384809] Tue, 19 August 2008 12:09 Go to previous message
yeliu is currently offline yeliuFriend
Messages: 145
Registered: July 2009
Senior Member
Hello,
Now I see how MOFScript works ,thank you very much!



Ye
Re: [MOFScript]model to text [message #619713 is a reply to message #384805] Tue, 19 August 2008 07:40 Go to previous message
Gøran K. Olsen is currently offline Gøran K. OlsenFriend
Messages: 184
Registered: July 2009
Senior Member
Hello Ye,

Take your ecore (domain model) and copy it into the
eclipse\plugins\org.eclipse.mofscript.editor\repository\meta models folder.

Restart eclipse and the metamodel should appear in the content assist for
input metamodel. "myInputModel:" should display a drop down list of the
available models. The name space that you used on your ecore file will
display together with all the metamodels from this repository directory. And
also the models already in some other plugins e.g. Ecore.

Cheers,
G
Re: [MOFScript]model to text [message #619716 is a reply to message #384809] Tue, 19 August 2008 12:09 Go to previous message
yeliu is currently offline yeliuFriend
Messages: 145
Registered: July 2009
Senior Member
Hello,
Now I see how MOFScript works ,thank you very much!



Ye
Previous Topic:[MOFscript] how can i get run a downloaded example?
Next Topic:How to generates ecore?
Goto Forum:
  


Current Time: Sun Nov 23 03:42:38 GMT 2014

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

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