| Accessing parent [message #990083] |
Mon, 10 December 2012 14:31  |
Matthias Schoettle Messages: 15 Registered: July 2009 |
Junior Member |
|
|
Hi everyone,
previously (OCL Examples and Editors 3.1.x in Indigo) it was possible to access the container/parent of an element (or maybe it is considered non-navigable opposite) like this (assuming that X contains Y and the context is Y): self.X
In the current version this doesn't work anymore. What is the alternative (or best way) to achieve this?
Thanks,
Matthias
|
|
|
|
| Re: Accessing parent [message #990089 is a reply to message #990087] |
Mon, 10 December 2012 15:22   |
Matthias Schoettle Messages: 15 Registered: July 2009 |
Junior Member |
|
|
Hi Ed,
yes, I mean Juno SR1.
It seems that the error message that I get doesn't affect saving the ecore file (other errors don't allow to save) and the constraint (in this case) still gets evaluated. So it still works, despite the error message being shown in the editor:
The feature 'element' of 'org.eclipse.ocl.examples.xtext.base.baseCST.impl.PathElementCSImpl@1c7c571e{platform:/resource/MyProject/model/My.ecore#//@ownedNestedPackage.0/@ownedType.2/@ownedConstraint.2/@specification/@ownedExpression/@ownedExpression.1/@pathName/@path.0}' contains a dangling reference 'org.eclipse.ocl.examples.pivot.internal.impl.PropertyImpl@368c9326{#//}'
- Matthias
[Updated on: Mon, 10 December 2012 15:33] Report message to a moderator
|
|
|
|
|
| Re: Accessing parent [message #1005382 is a reply to message #1005327] |
Fri, 25 January 2013 03:12  |
Ed Willink Messages: 3151 Registered: July 2009 |
Senior Member |
|
|
Hi
And the problems that you see are??
This newsgroup/forum is searchable so that similar problems and
solutions can be shared. If you don't identify your problems you deny
others the opportunity to share. This is totally contrary to the ethos
of Open Source and Eclipse; and also a waste of my time.
I see only one problem with the attached; you have stored OCLinEcore
concrete syntax as a *.ecore file, so opening the file with any EMF tool
bombs. Use *.oclinecore for OCLinEcore concrete syntax.
Regards
Ed Willink
On 24/01/2013 21:54, Matthias Schoettle wrote:
> Hi,
>
> sorry for the late response.
>
> I unfortunately cannot reproduce this error with a new model (i.e., a simplified version). It randomly appears in my file. With a new model it didn't happen.
>
> I found two other problems though that worked before. You can find an example attached.
>
> Regards,
> Matthias
|
|
|
Powered by
FUDForum. Page generated in 0.01779 seconds