Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » allInstances not working
allInstances not working [message #14706] Sat, 21 January 2006 04:11 Go to next message
Eclipse UserFriend
Originally posted by: info.dfm2html.com

For the interpreter example applied on the library example,
the expression "Book->allInstances()" yields following error:
illegal operation signature: (Set(null).allInstances())

Although for the library example I could use the expression "books" with the
library EObject as context
to print out all books (using the EReference),
I need something like "Book->allInstances()" for other metamodels in
general.

I saw "allInstances" used in the GMF tutorial "OCL Interpreter Tutorial"
used withing some other methods,
but I thought this would work with the Interpreter example, too.

(I tested this on the latest build.)

Any idea?
Re: allInstances not working [message #14738 is a reply to message #14706] Sat, 21 January 2006 19:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: info.dfm2html.com

Found the reason myself:
Book.allInstances()
instead of
Book->allInstances()
Re: allInstances not working [message #14768 is a reply to message #14738] Mon, 23 January 2006 13:37 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Jrg,

Yes. What Book->allInstances() did was to attempt to coerce Book into a
set, then apply a non-existent collection operation "allInstances", thus:

Set{Book}->allInstances()

Cheers,

Christian


Jrg wrote:

> Found the reason myself:
> Book.allInstances()
> instead of
> Book->allInstances()
Re: allInstances not working [message #563649 is a reply to message #14706] Sat, 21 January 2006 19:55 Go to previous message
Eclipse UserFriend
Originally posted by: info.dfm2html.com

Found the reason myself:
Book.allInstances()
instead of
Book->allInstances()
Re: allInstances not working [message #563672 is a reply to message #14738] Mon, 23 January 2006 13:37 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Jrg,

Yes. What Book->allInstances() did was to attempt to coerce Book into a
set, then apply a non-existent collection operation "allInstances", thus:

Set{Book}->allInstances()

Cheers,

Christian


Jrg wrote:

> Found the reason myself:
> Book.allInstances()
> instead of
> Book->allInstances()
Previous Topic:allInstances not working
Next Topic:ODM documenation
Goto Forum:
  


Current Time: Fri Apr 19 13:34:07 GMT 2024

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

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

Back to the top