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"?
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.
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.