Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » EvaluationException : Couldn't find operation(EvaluationException : Couldn't find operation 'packagedElements()' for org::eclipse::uml2::uml::internal::impl::PackageImpl)
EvaluationException : Couldn't find operation [message #676769] Mon, 06 June 2011 09:14 Go to next message
Olaf Bigalk is currently offline Olaf Bigalk
Messages: 41
Registered: July 2009
Location: Berlin
Member
Hi,

I have trouble with loading the UML metamodel. I have an XPT file with the following import declaration:
«IMPORT org::eclipse::uml2::uml»


«DEFINE main (Package package) FOR Package-»
«LET this.packagedElements().typeSelect(Class) AS classList-»
...
«ENDLET-»
«ENDDEFINE»


When running the work flow I get the following error:
EvaluationException : Couldn't find operation 'packagedElements()' for org::eclipse::uml2::uml::internal::impl::PackageImpl.


The method packagedElements is declared in org::eclipse::uml2::uml::Package and is offered by the code completion.

The UML package is on the classpath.
Require-Bundle: org.eclipse.uml2.uml;bundle-version="3.1.2",
...


What did I wrong?
Re: EvaluationException : Couldn't find operation [message #676816 is a reply to message #676769] Mon, 06 June 2011 11:56 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6142
Registered: July 2009
Senior Member
Hi,

please verify that you are using JavaBeansMetamodel in both Workflow and UI as your template suggests.

~Christian
Re: EvaluationException : Couldn't find operation [message #676817 is a reply to message #676769] Mon, 06 June 2011 11:59 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4010
Registered: July 2009
Senior Member
Hi

Try this.packagedElement since there is a packagedElement Attribute.

Regards

Ed Willink

On 06/06/2011 14:14, Olaf Bigalk wrote:
> Hi,
>
> I have trouble with loading the UML metamodel. I have an XPT file with
> the following import declaration:
>
> «IMPORT org::eclipse::uml2::uml»
>
>
>
> «DEFINE main (Package package) FOR Package-»
> «LET this.packagedElements().typeSelect(Class) AS classList-»
> ..
> «ENDLET-»
> «ENDDEFINE»
>
>
> When running the work flow I get the following error:
>
> EvaluationException : Couldn't find operation 'packagedElements()' for
> org::eclipse::uml2::uml::internal::impl::PackageImpl.
>
>
> The method packagedElements is declared in
> org::eclipse::uml2::uml::Package and is offered by the code completion.
>
> The UML package is on the classpath.
>
> Require-Bundle: org.eclipse.uml2.uml;bundle-version="3.1.2",
> ..
>
>
> What did I wrong?
>
Previous Topic:[Acceleo] Class Cast Exception with UML Profiles
Next Topic:[Acceleo] creating something similar to a JET custom tag with acceleo
Goto Forum:
  


Current Time: Wed Jul 30 03:24:40 EDT 2014

Powered by FUDForum. Page generated in 0.04148 seconds