Skip to main content



      Home
Home » Modeling » EMF » EOperation return type
EOperation return type [message #425825] Tue, 09 December 2008 08:30 Go to next message
Eclipse UserFriend
Hi,

I would like to specify an EOperation in my .ecore model that generates a
signature as follows:

Iterator getIterator();

What should I set in EType for that?

Thanks,

David
Re: EOperation return type [message #425827 is a reply to message #425825] Tue, 09 December 2008 08:35 Go to previous messageGo to next message
Eclipse UserFriend
David,

For Java types that are not modeled as EClasses you need to define an
EDataType in your model and specify the instance class name of the Java
type (here: java.util.Iterator). Then you can use this EDataType as the
return EType of an EOperation and elsewhere.

Cheers
/Eike

----
http://thegordian.blogspot.com



David Michonneau schrieb:
> Hi,
>
> I would like to specify an EOperation in my .ecore model that generates a
> signature as follows:
>
> Iterator getIterator();
>
> What should I set in EType for that?
>
> Thanks,
>
> David
>
>
>
Re: EOperation return type [message #425829 is a reply to message #425827] Tue, 09 December 2008 09:13 Go to previous message
Eclipse UserFriend
Thanks,

David

"Eike Stepper" <stepper@esc-net.de> wrote in message
news:ghls6g$37u$1@build.eclipse.org...
> David,
>
> For Java types that are not modeled as EClasses you need to define an
> EDataType in your model and specify the instance class name of the Java
> type (here: java.util.Iterator). Then you can use this EDataType as the
> return EType of an EOperation and elsewhere.
>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
>
>
>
> David Michonneau schrieb:
>> Hi,
>>
>> I would like to specify an EOperation in my .ecore model that generates a
>> signature as follows:
>>
>> Iterator getIterator();
>>
>> What should I set in EType for that?
>>
>> Thanks,
>>
>> David
>>
>>
Previous Topic:EMF Editors with files on EFS don't show local change history
Next Topic:eSet in multiple (parent/child) models
Goto Forum:
  


Current Time: Thu Jul 03 04:55:41 EDT 2025

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

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

Back to the top