Operation Id or index reference [message #1396825] |
Tue, 08 July 2014 17:09  |
Eclipse User |
|
|
|
Is there a way to generate a constant int for eOperations that can be used to access them either via getEOperations().get(x) or via the getEOperation(int operationID).
I have some eAnnotations on my operations and that would make accessing those much easier from the operation implementation.
I noticed that in generating the annotation EMF produces this:
protected void createRelationshipClassAnnotations() {
String source = "relationshipClass"; //$NON-NLS-1$
addAnnotation
(abstractBaElementEClass.getEOperations().get(0), ....
where it is internally able to reference the correct index but it never exposes this value.
Thanks
Alain
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04103 seconds