|
Re: [xcore] IndexOutOfBoundsException [message #1213255 is a reply to message #1212613] |
Wed, 27 November 2013 06:53 |
Ed Merks Messages: 33210 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
> }
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.08229 seconds