Skip to main content



      Home
Home » Modeling » EMF » [XCore] EList<? extends Class>
[XCore] EList<? extends Class> [message #1066995] Fri, 05 July 2013 07:27 Go to next message
Eclipse UserFriend
Hi,

is there a way to specify return type for operation in XCore looking like this:

EList<? extends SomeClass>

I know that I can specify EList<SomeClass> as SomeClass[] but I need the former variant.

Thanks in advance
Re: [XCore] EList&lt;? extends Class&gt; [message #1067002 is a reply to message #1066995] Fri, 05 July 2013 07:51 Go to previous messageGo to next message
Eclipse UserFriend
Martin,

You need an EDataType for EList, but Ecore provides one for its own
internal needs, so you can use that as follows:

import org.eclipse.emf.ecore.EEList

class X extends Library {
op EEList<? extends Library> foo() {
}
}


On 05/07/2013 1:27 PM, Martin odloucký wrote:
> Hi,
> is there a way to specify return type for operation in XCore looking
> like this:
>
> EList<? extends SomeClass>
>
> I know that I can specify EList<SomeClass> as SomeClass[] but I need
> the former variant.
> Thanks in advance
Re: [XCore] EList&lt;? extends Class&gt; [message #1067005 is a reply to message #1067002] Fri, 05 July 2013 08:01 Go to previous message
Eclipse UserFriend
HA, it works! Thank you Ed for your brisk answer. Have a nice day. Smile
Previous Topic:Fwd: [CDO/EMF] Modeling BIG amounts of tiny data
Next Topic:Need an Adapter to be notified of changing references (with containment="false")
Goto Forum:
  


Current Time: Wed Jul 30 13:35:00 EDT 2025

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

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

Back to the top