[ATL] PackageImpl cannot be cast to Classifi [message #557302] |
Mon, 06 September 2010 10:45  |
Eclipse User |
|
|
|
Hi all,
Sorry to disturb you again but I'm facing a new problem when I try to transform a UML model :s
The context is the following:
Input conforms to modelA is transformed to be conform to modelB.
During this transformation classes are copied and some of them moved into different packages than source items. For example:
classB is a generalization of classA, both contained in packA
becomes
classB contained in packB is a generalization of classA contained in packA
When I try to use the rule:
rule copyGeneralization{
from s : TB_Profile!Generalization
to t : UML!Generalization(
generalizationSet <- s.generalizationSet,
general<-s.general,
isSubstitutable <- s.isSubstitutable
)
}
I have got a exception:
org.eclipse.m2m.atl.engine.emfvm.VMException: org.eclipse.uml2.uml.internal.impl.PackageImpl cannot be cast to org.eclipse.uml2.uml.Classifier
It seems to be due to the package moving, because if I let classes in the same package, the rule works ...
I have got the same kind of problem with association, values are not correctly set.
I hope someone will have an idea.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.26697 seconds