Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » How to handle packageimport uml element in M2T
How to handle packageimport uml element in M2T [message #668568] Fri, 06 May 2011 05:22
Missing name Mising name is currently offline Missing name Mising name
Messages: 12
Registered: February 2010
Junior Member
Hi,

I have uml model referencing another um model via packageimport....

When I use a class from the imported uml model, M2T is not able to figure out the package of the class....

So do I have to do anything special in the mwe workflow for this package import element like we are doing uml profiles?

For ex for Profiles I have to do this
<bean id="datatype" class="org.eclipse.xtend.typesystem.uml2.profile.ProfileMetaModel">
		<profile value="platform:/resource/src/main/resources/model/Datatype.profile.uml"/>
	</bean>


and in generator
<component id="JavaGenerator" class="org.eclipse.xpand2.Generator"
		skipOnErrors="true">
		<fileEncoding value="ISO-8859-1" />
		<!--metaModel idRef="EmfMM" /-->
		<metaModel idRef="uml" />
		<metaModel idRef="datatype" />
.....
</component>


is something like this necessary for packageimport.

Thx for the answers...

Previous Topic:fichier exécutable
Next Topic:executable file
Goto Forum:
  


Current Time: Tue Sep 02 12:53:44 EDT 2014

Powered by FUDForum. Page generated in 0.02070 seconds