Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Operation Id or index reference
Operation Id or index reference [message #1396825] Tue, 08 July 2014 21:09 Go to next message
Alain Picard is currently offline Alain PicardFriend
Messages: 233
Registered: July 2009
Senior Member
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
Re: Operation Id or index reference [message #1396976 is a reply to message #1396825] Wed, 09 July 2014 03:04 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30559
Registered: July 2009
Senior Member
Alain,

Do you have the GenModel "Operation Reflection" property enabled?

On 08/07/2014 11:09 PM, Alain Picard wrote:
> 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
>
Re: Operation Id or index reference [message #1397263 is a reply to message #1396976] Wed, 09 July 2014 13:10 Go to previous message
Alain Picard is currently offline Alain PicardFriend
Messages: 233
Registered: July 2009
Senior Member
I knew it had to be there somewhere.

Thanks so much Ed for the pointer.

Alain
Previous Topic:[XCore] symetric association
Next Topic:EMF Reference Clearing Queue optional?
Goto Forum:
  


Current Time: Wed Oct 23 22:12:14 GMT 2019

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

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

Back to the top