Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Why does EAnnoptation initialization code not set the annotation contents ?
Why does EAnnoptation initialization code not set the annotation contents ? [message #899867] Thu, 02 August 2012 12:03
Philipp W. Kutter is currently offline Philipp W. Kutter
Messages: 301
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
Previous Topic:Why does EAnnoptation initialization code not set the annotation contents ?
Next Topic:Why does EAnnoptation initialization code not set the annotation contents ?
Goto Forum:
  


Current Time: Sat Jul 26 05:27:10 EDT 2014

Powered by FUDForum. Page generated in 0.01581 seconds