Skip to main content



      Home
Home » Archived » GMT (Generative Modeling Technologies) » [MOFScript]model to text
[MOFScript]model to text [message #384805] Tue, 19 August 2008 03:35 Go to next message
Eclipse UserFriend
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 03:40 Go to previous messageGo to next message
Eclipse UserFriend
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 08:09 Go to previous message
Eclipse UserFriend
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 03:40 Go to previous message
Eclipse UserFriend
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 08:09 Go to previous message
Eclipse UserFriend
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: Fri Mar 21 17:45:12 EDT 2025

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

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

Back to the top