I am working with eclipse Helios version 3.6 and recently I tried to follow the tutorial: http://wiki.eclipse.org/EMF/Validation/Recipes in order to read my ocl constraints from a text file.
I completed all steps and after I run the project as an eclipse application there seems to be no connection between the validation tool and my .ocl file. My ocl validation is trivial (1=2) but does not seem to trigger.
Does anyone has any idea on how I can solve this issue?
I'm afraid that that tutorial is very out of date.
Follow the OCLinEcore or CompleteOCL tutorial in the OCL Documentation
and you find that it works and that the tooling support is much better.
Regards
Ed Willink
On 10/10/2012 08:40, Paschalis Tsolakidis wrote:
> Hello everyone
>
> I am working with eclipse Helios version 3.6 and recently I tried to
> follow the tutorial: http://wiki.eclipse.org/EMF/Validation/Recipes in
> order to read my ocl constraints from a text file.
>
> I completed all steps and after I run the project as an eclipse
> application there seems to be no connection between the validation
> tool and my .ocl file. My ocl validation is trivial (1=2) but does not
> seem to trigger.
>
> Does anyone has any idea on how I can solve this issue?
>
> Regards,
> Paschalis.
I've looked at the OCLinEcore tutorial you suggested. It talks about embedding the ocl in the ecore, but in my case I need to leave the ecore untouched and extend it(e.g. *.ocl files).
I also looked at the CompleteOcl tutorial but couldn't find one for Helios. Would you be able to point me towards a tutorial that relates to extending the ecore?
The Complete OCL tutorial is new In the Juno documentation, but most of
what it describes is applicable to the Indigo tooling. The Complete OCL
language has been supported via a Java API for many years, though it is
only the new Xtext-based editor tooling that has unambiguous imports.
Regards
Ed Willink
On 11/10/2012 13:17, Paschalis Tsolakidis wrote:
> Hi Ed,
>
> Thank you for the quick answer!
>
> I've looked at the OCLinEcore tutorial you suggested. It talks about
> embedding the ocl in the ecore, but in my case I need to leave the
> ecore untouched and extend it(e.g. *.ocl files).
> I also looked at the CompleteOcl tutorial but couldn't find one for
> Helios. Would you be able to point me towards a tutorial that relates
> to extending the ecore?
>
> Thanks again.
> Paschalis.
I've tried the Royal and Loyal example in Helios. However when I try to validate my models against the ocl the validate doesn't seem to know about the ocl. Am I missing some connection between the ecore, ocl and xmi files?
Also when you mention the Indigo tooling does this mean that it should also work in Helios?
Indigo tooling is not available on Helios, but should be available (and
improved) in Juno.
See the Juno Complete OCL tutorial for details on validating separate
OCL; there is a new Load Resource... action. It's only available since Juno.
Regards
Ed Willink
On 12/10/2012 09:05, Paschalis Tsolakidis wrote:
> Thanks Ed!
>
> I've tried the Royal and Loyal example in Helios. However when I try
> to validate my models against the ocl the validate doesn't seem to
> know about the ocl. Am I missing some connection between the ecore,
> ocl and xmi files?
>
> Also when you mention the Indigo tooling does this mean that it should
> also work in Helios?
>
> Thanks again for your time
> Paschalis.