|
Re: [Xpand / Xtend] Recognizing custom UML Profile [message #639026 is a reply to message #639025] |
Sun, 14 November 2010 21:43 |
|
Hi
here is a uml sample workflow for xpand
<workflow>
<bean class="org.eclipse.xtend.typesystem.uml2.Setup" standardUML2Setup="true" />
<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup" platformUri=".." />
<component class="org.eclipse.emf.mwe.utils.Reader">
<uri value="platform:/resource/xpand.uml.profile.sample/src/model/test.uml" />
<modelSlot value="model" />
</component>
<component class="org.eclipse.emf.mwe.utils.DirectoryCleaner">
<directory value="src-gen" />
</component>
<component class="org.eclipse.xpand2.Generator">
<metaModel class="org.eclipse.xtend.typesystem.uml2.profile.ProfileMetaModel">
<profile value="platform:/resource/xpand.uml.profile.sample/src/model/test.profile.uml" />
</metaModel>
<metaModel class="org.eclipse.xtend.typesystem.uml2.UML2MetaModel" />
<expand value="template::Template::main FOR model" />
<outlet path="src-gen" >
<postprocessor class="org.eclipse.xpand2.output.JavaBeautifier" />
</outlet>
</component>
</workflow>
to get the editor running you have to enable uml profiles in your generator projects xtend/xpand properties. the files should be on the classpath.
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
[Updated on: Sun, 14 November 2010 21:46] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03664 seconds