[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.modeling.mdt.uml2.uml] Problem using UML Genmodel

Hi all
I'm trying to make a new language metamodel on the basis on UML.uml and using UML-Genmodel. In principle, the process is working but with the following aspect I get into trouble:
 
- In my metamodel I have two classes with an 1 -- 0..* association
- the creation of the genmodel works well
- after model-code generation, there are errors in the impl-class of the 0..* -side: in the following code-snipped the varable ownedrules is not declared in the class
- if I change the Multiplicity to 1, the resulting code works

public EList getOwnedrules() {

if (ownedrules == null) {

ownedrules = new EObjectWithInverseResolvingEList(

MappingRule.class, this,

UMLTPackage.TRANSFORMATION_GROUP__OWNEDRULES,

UMLTPackage.MAPPING_RULE__TGROUP);

}

return ownedrules;

}

 
In the attachments there are some pictures of the .uml and .genmodel to get the context.
 
Anyone an idea
Regards, Andreas
 

Attachment: Image2.jpg
Description: JPEG image

Attachment: Image1.jpg
Description: JPEG image