Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Read OCL from text file
Read OCL from text file [message #938837] Wed, 10 October 2012 07:40 Go to next message
Paschalis Tsolakidis is currently offline Paschalis TsolakidisFriend
Messages: 5
Registered: October 2012
Junior Member
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.
Re: Read OCL from text file [message #938948 is a reply to message #938837] Wed, 10 October 2012 09:41 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

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.
Re: Read OCL from text file [message #940206 is a reply to message #938837] Thu, 11 October 2012 12:17 Go to previous messageGo to next message
Paschalis Tsolakidis is currently offline Paschalis TsolakidisFriend
Messages: 5
Registered: October 2012
Junior Member
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.
Re: Read OCL from text file [message #940365 is a reply to message #940206] Thu, 11 October 2012 15:07 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

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.
Re: Read OCL from text file [message #941096 is a reply to message #938837] Fri, 12 October 2012 08:05 Go to previous messageGo to next message
Paschalis Tsolakidis is currently offline Paschalis TsolakidisFriend
Messages: 5
Registered: October 2012
Junior Member
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.
Re: Read OCL from text file [message #941118 is a reply to message #941096] Fri, 12 October 2012 08:18 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

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.
Previous Topic:extending OCL MDT with "just" a temporal operator always
Next Topic:OCL to Java
Goto Forum:
  


Current Time: Thu Apr 18 18:17:33 GMT 2024

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

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

Back to the top