Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Xpand] Having trouble accessing signals from enclosing package
[Xpand] Having trouble accessing signals from enclosing package [message #671413] Tue, 17 May 2011 19:21
Eclipse User is currently offline Eclipse UserFriend
Messages: 14
Registered: January 2011
Junior Member
I'm referencing a custom UML profile in my Xpand templates that has stereotypes for Signals and Packages, and I'm having trouble accessing the signals within the package.

This is a snippet of what I'm trying:


<<DEFINE DoSomething FOR MyProfile::MyPackage>>
<<FOREACH this.ownedType.typeSelect(MyProfile::MySignal) AS signal>>
<<EXPAND DoSomethingForSignal FOR signal>>
<<ENDDEFINE>>

<<DEFINE DoSomethingForSignals FOR MyProfile::MySignal>>
<<this.propertyName>>
<<ENDDEFINE>>

When I try to run the templates, I'm getting no output. Am I trying to access the signals incorrectly with Xpand? Any recommendations would be appreciated.

Regards,

Lourdes
Previous Topic:Acceleo Remove Annotation Error
Next Topic:[Acceleo] Bug in Acceleo ?
Goto Forum:
  


Current Time: Sun Dec 21 05:34:07 GMT 2014

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

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