allInstances not working [message #14706] |
Sat, 21 January 2006 04:11 |
Eclipse User |
|
|
|
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 #14768 is a reply to message #14738] |
Mon, 23 January 2006 13:37 |
Eclipse User |
|
|
|
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 #563672 is a reply to message #14738] |
Mon, 23 January 2006 13:37 |
Eclipse User |
|
|
|
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()
|
|
|
Powered by
FUDForum. Page generated in 0.04787 seconds