That is a very old tutorial for Eclipse. Eclipse 3.6 is out next month
and its one minor version per year!
The tutirial is quite interesting as a historical document. I have
thought of suggesting that Ecore have an EConstraint; it seems it once did.
The OCL classes now more closely resemble the OCL specification so there
is a Constrraint class.
The MDT/OCL 3.0.0 release for Eclipse 3.6 has much better integration
and an combined text editors.
I just looked to see if we ship an updated version of your tutorial; it
seems not, so you're just in time to prod me to make sure we have better
documentation for Eclipse 3.6.
On 26/05/2010 09:37, swathi wrote:
> Hi ,
> I am going through the following URL for implementing OCL Validation at
> the Ecore level.
> http://www.telecom-lille1.eu/people/Vanwormhoudt/siteEMFOCL/ tutoriel/TutorialEMFOCL1.htm
> In the above URl, for the .ecore file, While right clicking the class
> node, EConstraint value is also abtained along with other options like
> EAttribute, EPackage etc..
> But in my Ecore diagram Iam not able to get any option like EContraint.
> Is there any plugin that needs to be added for getting EConstraint value
> added in the list.
> Please suggest on this.
> I just looked to see if we ship an updated version of your tutorial; it
> seems not, so you're just in time to prod me to make sure we have better
> documentation for Eclipse 3.6.
I've looked a bit harder for the updated tutorial. Although the tutorial
is similar in style to Eclipse documents from about 2003, the tutorial
is for EMFOCL which was developed by Gilles Vanwormhoudt at LIFL
layering Dresden OCL on EMF. The tutorial is therefore nothing to do
with MDT/OCL and the MDT/OCL or EMFT newsgroups.
I shall endeavour to ensure that MDT/OCL 3.0.0 ships a tutorial
demonstrating our equivalent and enhanced OCL capabilities.