Skip to main content


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 #899866] Thu, 02 August 2012 16:03
Philipp Kutter is currently offline Philipp KutterFriend
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
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: Fri Mar 29 10:53:38 GMT 2024

Powered by FUDForum. Page generated in 0.02071 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top