Skip to main content



      Home
Home » Modeling » EMF » Unable to dynamically call an EOperation of a generated type
Unable to dynamically call an EOperation of a generated type [message #1859075] Wed, 10 May 2023 08:22 Go to next message
Eclipse UserFriend
So I have a bunch of generated classes each of which define several operations.

When I try to dynamically invoke an operation using its id

(List<EObject>) (eObject).eInvoke(operations.get(i), ECollections.emptyEList());


I get an exception thrown with the message

No InvocationDelegate registered to provide an eInvoke implementation for getDescribingFunctionalChains


From what I've seen it's because I have no InvocationDelegate or factory to pick it for my particular type, but how exactly do I generate that? Or is it a different problem?
Re: Unable to dynamically call an EOperation of a generated type [message #1859079 is a reply to message #1859075] Wed, 10 May 2023 11:06 Go to previous messageGo to next message
Eclipse UserFriend
Do you see a generated eInvoke method in your generated Impl classes? I.e., have you enabled the GenModel's Model -> Operation Reflection property for these models?
Re: Unable to dynamically call an EOperation of a generated type [message #1859093 is a reply to message #1859079] Thu, 11 May 2023 06:06 Go to previous message
Eclipse UserFriend
Thanks for the quick answer! I did not, so that's probably the issue, I'll try it out.
Previous Topic:removing "Run As", "Debug As" ... popup menu items
Next Topic:EMF generates to the wrong directory
Goto Forum:
  


Current Time: Fri Jul 11 08:48:37 EDT 2025

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

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

Back to the top