Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mdt-papyrus.dev] OCLInEcore OCL syntax

Hi Arnaud

The OCLinEcore syntax documentation just made it into RC3. EssentialOCL and Complete OCL might be in RC4.

The Xtext grammar is at /org.eclipse.ocl.examples.xtext.oclinecore/src/org/eclipse/ocl/examples/xtext/oclinecore/OCLinEcore.xtext.

Complete OCL (*.ocl) is the language for OCL documents that complements existing meta-models. Import the RoyalAndLoyal project
for an example.

The only difficulty is making Ecore tools aware that there is additional CompleteOCL. In response to a newsgroup posting I raised https://bugs.eclipse.org/bugs/show_bug.cgi?id=347897. After further thought I think that it should be possible to auto-install the CompleteOCL after just doing a resourceSet.getResource( ... xxxx.ocl ...) provided CompleteOCLStandaloneSetup has got Xtext warmed up. Unfortunately this won't happen for Indigo.It's just possible I might manage a FAQ.

No the OCLinEcore editor doesn't reference the Complete OCL; it's the other way round.

    Regards

        Ed Willink


On 01/06/2011 11:49, Arnaud Dieumegard wrote:
Dear all,

I don't know if it's the good place to ask this question but I think some people can answer me.

I'm using the OCLInEcore editor and I'm experiencing some troubles regarding the syntax of the OCL constraints.
1 - Is there a way to access the grammar used in the OCLInEcore editor ?

I have an other trouble, I have a large quantity of OCL constraints to add to my Ecore metamodel.
2 - Is it possible to write the OCL constraints in a separated file and to make a reference to it in the OCLInEcore editor ?

Thanks.
Arnaud
_______________________________________________
mdt-papyrus.dev mailing list
mdt-papyrus.dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev


-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1375 / Virus Database: 1511/3673 - Release Date: 06/01/11





Back to the top