Skip to main content



      Home
Home » Modeling » OCL » OCL for XCore
OCL for XCore [message #1012779] Fri, 22 February 2013 03:11 Go to next message
Eclipse UserFriend
I have an xcore model, and I would like to edit OCL constraints. What is the best way to do it? I see that OCL has its own XText editor for .ecore files, which seems to be a different grammar than the xcore one, but I don't find any menu entry to edit ocl rules for xcore. How can I add OCL rules to my xcore model (I do not have an .ecore).

Thanks,

David

[Updated on: Fri, 22 February 2013 03:12] by Moderator

Re: OCL for XCore [message #1012804 is a reply to message #1012779] Fri, 22 February 2013 03:54 Go to previous message
Eclipse UserFriend
Hi

Using Xcore you can edit embedded EAnnotations, but that will be painful
and not get any syntax or semantic checking.

Using Xcore you must be able to export a *.ecore and edit it with
OCLinEcore, which was available two years before Xcore.

Buit really you should decide which camp you want to be in:

If you like tools related to OMG specifications you should use
OCLinEcore or OCL in UML (Papyrus).

If you like Java-like pragmatics you should use Xcore and Xbase.

Regards

Ed Willink

On 22/02/2013 08:11, David Michonneau wrote:
> I have an xcore model, and I would like to edit OCL constraints. What
> is the best way to do it? I see that OCL has its own XText editor for
> .ecore files, which seems to be a different grammar than the xcore
> one, but I don't find any menu entry to edit ocl rules for xcore. How
> can I add OCL rules to my xcore model (I do not have an .ecore).
>
> Thanks,
>
> David
Previous Topic:CompleteOCL standalone validation of uml model
Next Topic:OCL in XMI instances of Ecore
Goto Forum:
  


Current Time: Tue Jul 22 21:04:34 EDT 2025

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

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

Back to the top