Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » how to deal with nestedPackage of a package
how to deal with nestedPackage of a package [message #542854] Sat, 26 June 2010 15:50
wafaa is currently offline wafaa
Messages: 163
Registered: January 2010
Location: Egypt
Senior Member
hi all

can some one direct me to the correct solution for creating packaged
element of a package like this
the input is similar to - Model A
- package B
- package C
Class D
Class E
- package F
Class G
Class H



I want to make all elements in all the nested package (which is any
nested package of B) elements of the main package B

and (all the nested packages in the main package are not transformed)

I want the out put to be

Model A
package B
Class C
ClassD
Class G
ClassH

I used this transformation

rule Package {
from
p : UML!Package
(p.hasStereotype('Ontology') )
to
out : UML!Package (
name <- p.name ,
packagedElement <- p.packagedElement

)
}

but then the output is in the main model which I do not want


Model A
package B
Class C
Class D
Class G
Class H
Previous Topic:how to deal with nestedPackages!!
Next Topic:how to access a tagged value of a stereotype??
Goto Forum:
  


Current Time: Wed Jul 23 03:59:15 EDT 2014

Powered by FUDForum. Page generated in 0.02546 seconds