Skip to main content



      Home
Home » Modeling » EMF » [xcore] IndexOutOfBoundsException
[xcore] IndexOutOfBoundsException [message #1212613] Tue, 26 November 2013 19:24 Go to next message
Eclipse UserFriend
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 01:53 Go to previous messageGo to next message
Eclipse UserFriend
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 08:54 Go to previous message
Eclipse UserFriend
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: Fri Jul 25 14:08:08 EDT 2025

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

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

Back to the top