Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [xcore] IndexOutOfBoundsException
[xcore] IndexOutOfBoundsException [message #1212613] Wed, 27 November 2013 00:24 Go to next message
Bryan Hunt is currently offline Bryan HuntFriend
Messages: 366
Registered: July 2009
Senior Member
Hi Ed,

I tried modifying an existing xcore model today and now I'm getting an IndexOutOfBoundsException for the first character in the editor. If I undo the change, I still get the exception. If you want to get the model, it's in the org.eclipselabs.mongoemf.api bundle in my MongoEMF project at https://github.com/BryanHunt/mongo-emf

I should be using the latest release ...

Xcore SDK 1.1.1.v20130903-0948 This version is installed in my IDE and my target platform

Here is the model:

@GenModel(suppressInterfaces="true", containmentProxies="true")
package org.eclipselabs.mongoemf.model

import com.mongodb.DBCursor
import com.mongodb.DBCollection
import org.eclipselabs.mongoemf.EObjectBuilder
import com.mongodb.DBObject
import org.eclipse.emf.ecore.EObject
import java.util.Iterator
import org.eclipselabs.mongoemf.util.MongoIterator

type DBObject wraps DBObject
type DBCursor wraps DBCursor
type DBCollection wraps DBCollection
type EObjectBuilder wraps EObjectBuilder
type Iterator wraps Iterator<EObject>

interface Iterable wraps java.lang.Iterable<EObject>
{}

class MongoCursor extends Iterable
{
DBCursor dbCursor
DBCollection dbCollection
EObjectBuilder objectBuilder

op Iterator iterator()
{
return new MongoIterator(dbCursor, dbCollection, eResource, objectBuilder)
}
}

class MongoQuery
{
DBObject filter
DBObject projection
DBObject sort
Integer skip
Integer limit
}
Re: [xcore] IndexOutOfBoundsException [message #1213255 is a reply to message #1212613] Wed, 27 November 2013 06:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30687
Registered: July 2009
Senior Member
Bryan,

It's probably best to assume some bug needs fixing and open a bugzilla.

On 27/11/2013 1:24 AM, Bryan Hunt wrote:
> Hi Ed,
>
> I tried modifying an existing xcore model today and now I'm getting an
> IndexOutOfBoundsException for the first character in the editor. If I
> undo the change, I still get the exception. If you want to get the
> model, it's in the org.eclipselabs.mongoemf.api bundle in my MongoEMF
> project at https://github.com/BryanHunt/mongo-emf
>
> I should be using the latest release ...
>
> Xcore SDK 1.1.1.v20130903-0948 This version is installed in my IDE
> and my target platform
>
> Here is the model:
>
> @GenModel(suppressInterfaces="true", containmentProxies="true")
> package org.eclipselabs.mongoemf.model
>
> import com.mongodb.DBCursor
> import com.mongodb.DBCollection
> import org.eclipselabs.mongoemf.EObjectBuilder
> import com.mongodb.DBObject
> import org.eclipse.emf.ecore.EObject
> import java.util.Iterator
> import org.eclipselabs.mongoemf.util.MongoIterator
>
> type DBObject wraps DBObject
> type DBCursor wraps DBCursor
> type DBCollection wraps DBCollection
> type EObjectBuilder wraps EObjectBuilder
> type Iterator wraps Iterator<EObject>
>
> interface Iterable wraps java.lang.Iterable<EObject>
> {}
>
> class MongoCursor extends Iterable
> {
> DBCursor dbCursor
> DBCollection dbCollection
> EObjectBuilder objectBuilder
>
> op Iterator iterator()
> {
> return new MongoIterator(dbCursor, dbCollection, eResource,
> objectBuilder)
> }
> }
>
> class MongoQuery
> {
> DBObject filter
> DBObject projection
> DBObject sort
> Integer skip
> Integer limit
> }
>
Re: [xcore] IndexOutOfBoundsException [message #1216487 is a reply to message #1213255] Thu, 28 November 2013 13:54 Go to previous message
Bryan Hunt is currently offline Bryan HuntFriend
Messages: 366
Registered: July 2009
Senior Member
I opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=422763
Previous Topic:EMF reference and referenced entities as elements in XML
Next Topic:Quick model migration beofre using Edapt or Sphinx
Goto Forum:
  


Current Time: Tue Dec 10 02:07:03 GMT 2019

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

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

Back to the top