OCL for XCore [message #1012779] |
Fri, 22 February 2013 03:11  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.26665 seconds