Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » CompleteOCL in the Console: what to do with .ocl file
CompleteOCL in the Console: what to do with .ocl file [message #817184] Fri, 09 March 2012 14:12 Go to next message
Aran A is currently offline Aran A
Messages: 22
Registered: January 2011
Junior Member
Hello,

I'm just reading the tutorials and documentation about OCL and its tools, and trying some of the examples.

Looking at the RoyalAndLoyal example, I've prepared a quite simple example of an .ecore file and its .ocl file (with some constraints; by the way, they are correct, because I've checked them with the Interactive Console). But now, I don't know what to do with them Sad

With the documentation, I understand that the pivot console has an option to load the ocl file, but in my case, it doesn't do anything. What should it do?

If in the project, with the .ecore model and its .xmi model, I include the .ocl file, can I validate the .xmi file against the .ocl file? If not, which is the utility of that .ocl file? Is the only way to work programmatically?

Note: I'm using Indigo.

Thanks in advance. Best regards,

A.
Re: CompleteOCL in the Console: what to do with .ocl file [message #817198 is a reply to message #817184] Fri, 09 March 2012 14:35 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4003
Registered: July 2009
Senior Member
Hi

> which is the utility of that .ocl file?

Yes. This has long been a problem. Complete OCL complements an existing
meta-model that does not know about the complement. So tools don't know
either, unless they are specifically coded to look for Complete OCL; not
very useful.

Loading Complete OCL into the console wasn't very useful either. It's
been removed in Juno.

Instead Juno provides a useful solution. A 'Load Complete OCL Resource'
menu option is contributed to any menu for which an EditingDomain can be
located from an EObject selection. This enables Complete OCL to be
injected into unsuspecting applications.

If time permits, I might support DND of a *.ocl onto an application.

Regards

Ed Willink

On 09/03/2012 19:12, Missing name Mising name wrote:
> Hello,
>
> I'm just reading the tutorials and documentation about OCL and its
> tools, and trying some of the examples.
>
> Looking at the RoyalAndLoyal example, I've prepared a quite simple
> example of an .ecore file and its .ocl file (with some constraints; by
> the way, they are correct, because I've checked them with the
> Interactive Console). But now, I don't know what to do with them :(
> With the documentation, I understand that the pivot console has an
> option to load the ocl file, but in my case, it doesn't do anything.
> What should it do?
>
> If in the project, with the .ecore model and its .xmi model, I include
> the .ocl file, can I validate the .xmi file against the .ocl file? If
> not, which is the utility of that .ocl file? Is the only way to work
> programmatically?
>
> Note: I'm using Indigo.
>
> Thanks in advance. Best regards,
>
> A.
Previous Topic:[OCLInEcore] Problem with OCL expressions containing type references from imported packages
Next Topic:[Announce] Eclipse OCL Core 4.0.0 (Juno) M6 is now available
Goto Forum:
  


Current Time: Fri Jul 25 21:13:46 EDT 2014

Powered by FUDForum. Page generated in 0.01711 seconds