Why does EAnnoptation initialization code not set the annotation contents ? [message #899862] |
Thu, 02 August 2012 16:03 |
Philipp Kutter Messages: 306 Registered: July 2009 |
Senior Member |
|
|
I created an annotation with content objects.
My attached Model mypackage.ecore contains 2 instances of class State
inside the "States" annotation for MyRootObject eClass,
but I don't see any attempts in the templates to reflect this in the
generated
MypackagePackageImpl.java which contains the default generated code:
/**
* Initializes the annotations for <b>States</b>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void createStatesAnnotations() {
String source = "States";
addAnnotation(myRootObjectEClass, source, new String[] {});
}
the latter call addAnnotation(myRootObjectEClass, source, new
String[] {});
does NOT even try to set the annotation contents.
Why?
Regards, Philipp
|
|
|
Powered by
FUDForum. Page generated in 0.03003 seconds