Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » OCL for XCore
OCL for XCore [message #1012779] Fri, 22 February 2013 08:11 Go to next message
David Michonneau is currently offline David MichonneauFriend
Messages: 85
Registered: July 2009
Member
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 08:12]

Report message to a moderator

Re: OCL for XCore [message #1012804 is a reply to message #1012779] Fri, 22 February 2013 08:54 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
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: Fri Apr 26 07:08:49 GMT 2024

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

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

Back to the top