<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Bryan,<br>
<br>
Comments below.<br>
<br>
<div class="moz-cite-prefix">On 28/11/2012 4:56 PM, Bryan Hunt
wrote:<br>
</div>
<blockquote cite="mid:k95c7s$1n3$1@xxxxxxxxe.org" type="cite">Hi
Ed,
<br>
<br>
I'm trying to create an interface in Xcore that wraps
java.lang.Iterable and I'm having problems with the Instance Type
Name property.
<br>
<br>
I specified the interface as:
<br>
<br>
interface Iterable
<br>
{}
<br>
</blockquote>
Did you try something like this?<br>
<br>
<blockquote>import org.eclipse.emf.ecore.EObject<br>
<br>
interface Iterable wraps Iterable<EObject><br>
{<br>
<br>
}<br>
<br>
class Foo extends Iterable<br>
{<br>
<br>
}<br>
</blockquote>
That works for me (other than that I didn't implement the iterator
method yet).<br>
<blockquote cite="mid:k95c7s$1n3$1@xxxxxxxxe.org" type="cite">
<br>
and set the Instance Type Name to
java.lang.Iterable<EObject>. My class is then specified as:
<br>
<br>
class MongoCursor extends Iterable
<br>
{}
<br>
<br>
This doesn't seem to work. I get MongoCursor extending the lass
Iterable instead of implementing java.lang.Iterable.
<br>
<br>
Bryan
<br>
</blockquote>
<br>
</body>
</html>