DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page How to use OCL with EMF and Ecore models
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Dec 2008
Default How to use OCL with EMF and Ecore models - 12-11-2008, 08:00 PM

Hey guys,

I am currently trying to get OCL constraints working in an EMF-based plug-in that in turn is based on an .ecore **** model.

To be honest, much of the information on the web was either EMF constraint validation OR use of OCL but very little how to use them together. I found one very interesting article: Eclipse Corner Article: Implementing Model Integrity in EMF with MDT OCL
Unfortunately, what Christian described in the article did not work for me. Specifically I don't get any files generated in the /templates folder and when I try the example source code, the generated code causes many compilation errors.

I kind of figure it has to do that this article was based on older Java and Eclipse versions. I'm using the modeling incubation of Eclipse v3.4.0.

Does anybody know a good up-to-date primer on how to get EMF and OCL working together?

Thanks a lot,

Christoph
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Oct 2009
Default EMF Helios M2 adds support for Validation Delegates - 10-12-2009, 12:26 PM

You might find this of interest for OCL validation:
EMF/New and Noteworthy/Helios - Eclipsepedia
Actually, this allows the creation of arbitrary validation deligates, so OCL is only one option to use in your model. Another deligate available soon will be NexJ Scheme:
NexJ Scheme - Ecore Adapter
Hope this helps,
greg.fenton
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nice documentation output for ecore model? StefanPuchta Eclipse 0 09-09-2008 09:41 AM
Ecore modeling tool in Eclipse 3.4 krishtpt Eclipse 1 08-06-2008 10:24 AM
Unable to read value from underlying bridge: Cannot create a resource for ecore file ramesh_20 Eclipse 1 06-27-2008 02:00 PM
ecore eoperation eldjon Eclipse 0 03-17-2008 12:25 PM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com