Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo](eIsSet() Function)
[Acceleo] [message #720368] Tue, 30 August 2011 13:18 Go to next message
Frank  is currently offline Frank Friend
Messages: 1
Registered: August 2011
Junior Member
Hi !

Acceleo 3.0 & Helios Eclipse.

I want to use function eIsSet(Feature f) in my Acceleo template. Is it possible to get Feature from metamodel without using Wraper java ?


Regards,

[Updated on: Tue, 30 August 2011 15:13]

Report message to a moderator

Re: [Acceleo] [message #720737 is a reply to message #720368] Wed, 31 August 2011 07:26 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
Hi Frank,

You can use from Acceleo any method that is modelized in the target metamodel. In the current case, you can use the EClass methods :

[self.eIsSet(self.eClass().getEStructuralFeature('<feature name>'))/]

Laurent Goubet
Obeo
Previous Topic:[Acceleo 3] select() work on Acceleo 2 but not on Acceleo 3
Next Topic:[Acceleo] PDE, Ant build and Acceleo(Compiler)
Goto Forum:
  


Current Time: Thu Apr 25 04:32:29 GMT 2024

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

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

Back to the top