Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo 3] getting All classes from Papyrus Model ([Acceleo 3] getting All classes from Papyrus Model strarting from a given class property)
[Acceleo 3] getting All classes from Papyrus Model [message #646930] Mon, 03 January 2011 04:08 Go to previous message
splogad  is currently offline splogad
Messages: 2
Registered: June 2010
Junior Member
Hi to everybody!
I'm dealing with an Acceleo 3 template to generate c# code. The problem is that starting from a Papyrus UML model I would like to retrieve all classes that belong to such model.

My template simply write a file for each class but sometimes given a class it has to find for each of other class of the model if a given property is set. I tried to select classes form getModel() method but it didn't work:
"[(c.getModel().eAllContents(Class)->select(
classLoop: Class | general->asSequence()->last().qualifiedName = c.qualifiedName))->collect(qualifiedName)/] "
I tried also with different selection, but it seems that model doesn't contain classes.

Is it possible to do that? please send me a feedback.

thanks in advance
giacomo

 
Read Message
Read Message
Previous Topic:[Xpand] setting the value of a global variable from xtend?
Next Topic:Using getValue(Stereotype, String) with Collections
Goto Forum:
  


Current Time: Sat May 25 01:44:15 EDT 2013

Powered by FUDForum. Page generated in 0.01785 seconds