Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] OclAny context for library helpers
[ATL] OclAny context for library helpers [message #95586] Mon, 17 November 2008 15:14 Go to next message
Sebastien Revol is currently offline Sebastien RevolFriend
Messages: 15
Registered: July 2009
Junior Member
Hi all,
I'd like to build a library of helpers, many of them using "OclAny" context
(so that I can define a default behavior for this helper, that can be
later overloaded for a specific context).

When an "OclAny helper" is defined in the same file as the module, there
is no problem, it works fine. However, when it's defined in an external
library, I get the error:

SEVERE: ERROR: could not find operation ...

Is there a particular reason constraining the definition of OclAny helpers
in the same file of a module? Do I need to set a particular VM option?

Thanks in advance,

Sebastien
Re: [ATL] OclAny context for library helpers [message #95697 is a reply to message #95586] Wed, 19 November 2008 15:21 Go to previous messageGo to next message
Frédéric Jouault is currently offline Frédéric JouaultFriend
Messages: 572
Registered: July 2009
Senior Member
Hi,

This usually works with ATL 2006.

Can you check that you have:
-- @atlcompiler atl2006
at the top of your libraries?


Regards,

Frédéric Jouault

Sebastien Revol a écrit :
> Hi all,
> I'd like to build a library of helpers, many of them using "OclAny" context
> (so that I can define a default behavior for this helper, that can be
> later overloaded for a specific context).
>
> When an "OclAny helper" is defined in the same file as the module, there
> is no problem, it works fine. However, when it's defined in an external
> library, I get the error:
>
> SEVERE: ERROR: could not find operation ...
>
> Is there a particular reason constraining the definition of OclAny
> helpers in the same file of a module? Do I need to set a particular VM
> option?
>
> Thanks in advance,
>
> Sebastien
>
Re: [ATL] OclAny context for library helpers [message #95712 is a reply to message #95697] Wed, 19 November 2008 17:34 Go to previous message
Sebastien Revol is currently offline Sebastien RevolFriend
Messages: 15
Registered: July 2009
Junior Member
Hi,
you had the point!
I only put the compiler option in the module files, and forgot to use it
in lib files....

Thanks for your help :-)

Sebastien
Previous Topic:Ocl integration
Next Topic:[ATL] UML2!PrimitiveType.allInstancesFrom('IN') doesn't return any elements.
Goto Forum:
  


Current Time: Thu Apr 18 11:54:56 GMT 2024

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

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

Back to the top