OCL Editor [message #1064630] |
Thu, 20 June 2013 06:09  |
Eclipse User |
|
|
|
Hi.
I am looking for a way to model OCL invariants (e.g., for Ecore models) like an ordinary model using the tree-based EMF instance editor. Is there a way to do this? If so, which OCL meta model (which nsURI) do I have to use?
Regards,
Thorsten
|
|
|
|
|
|
|
|
|
|
|
|
Re: OCL Editor [message #1065932 is a reply to message #1065919] |
Fri, 28 June 2013 07:32  |
Eclipse User |
|
|
|
Hi
I raised https://bugs.eclipse.org/bugs/show_bug.cgi?id=402780 to major
in response to a similar query a couple of days ago.
I am currently working on the direct generation of the Pivot meta model
from UML 2.5 and other metamodels. This should lead on to solving the
loadability.
Regards
Ed Willink
On 28/06/2013 11:28, Thorsten Arendt wrote:
> Hi Ed!
>
> Thanks for the docu. Now I can translate a textual description of the
> OCL invariant within an EAnnotation to (1) a textual description
> within an OpaqueExpression, and then (2) to the AST representation of
> an ExpressionInOCL. Afterwards I replace the OpaqueExpression by the
> ExpressionInOCL. This is exactly what I want. But...
>
> After persisting the resource as a *.pivot, there are problems when
> opening it both via the sample reflective editor and by API. For each
> 'ownedType' within a package I get an IllegalValueException:
>
> org.eclipse.emf.ecore.xmi.IllegalValueException: Value
> 'org.eclipse.ocl.examples.pivot.internal.impl.TypeImpl' is not legal.
> (platform:/resource/PetriNet/model/PetriNet-converted-changed.pivot,
> 6, 149)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XMLHandler.java:2671)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XMLHandler.java:2656)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromFeatureType(XMLHandler.java:2174)
> ...
> Caused by: java.lang.ArrayStoreException
>
> This really confuses me... any help?
>
> Regards,
> Thorsten
|
|
|
Powered by
FUDForum. Page generated in 0.05608 seconds