Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » xpand2::Type
xpand2::Type [message #622284] Mon, 08 March 2010 10:27
Philipp Zech is currently offline Philipp ZechFriend
Messages: 96
Registered: July 2009
Member
Hi,

I'm trying to implement some simple checks using the Check language for
a taylored model used to generate code (the checks assure the valid
application of stereotypes). Now, my problem is, that my custom
stereotypes, defined inside of an own UML profile file and which is
loaded in the check component of the workflow with:

<component id="ConsistencyChecker"
class="org.eclipse.xtend.check.CheckComponent">
<metaModel class="org.eclipse.xtend.typesystem.emf.EmfMetaModel">
<metaModelPackage value="org.eclipse.emf.ecore.EcorePackage"/>
</metaModel>
<metaModel class="org.eclipse.xtend.typesystem.uml2.UML2MetaModel"/>
<metaModel id="profile"
class="org.eclipse.xtend.typesystem.uml2.profile.ProfileMetaModel ">
<profile value="tts.profile.uml"/>
</metaModel>
<checkFile value="info::teststories::check::checks::Generator"/>
<emfAllChildrenSlot value="model"/>
</component>
Now, inside my check file I want to test whether all stereotypes have
been applied properly by invoking isStereotypeApplied() on the relevant
model elements. But the problem is, that now my stereotypes are not
defined with "uml::Stereotype" as underlying type, but with
"xpand2::Type". For sure, now my checks don't work as I don't have the
stereoytpes available I need for checking. Is there any solution or
workaround for that my stereotypes are actually loaded as
"uml::Stereotype" instances and not anymore "xpand2::Type"?

Thanks in advance!

Cheers,

Philipp
Previous Topic:Re: XText: cant find main class org.eclipse.emf.mwe.core.WorkflowRunner
Next Topic:Which elements are classified as "unmatched"
Goto Forum:
  


Current Time: Mon Sep 23 12:52:36 GMT 2024

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

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

Back to the top