CompleteOCL in the Console: what to do with .ocl file [message #817184] |
Fri, 09 March 2012 19:12 |
Aran A Messages: 30 Registered: January 2011 |
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
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 19:35 |
Ed Willink Messages: 7655 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.
|
|
|
Powered by
FUDForum. Page generated in 0.02096 seconds