|
Re: XText index builder does not persist EReference [message #675445 is a reply to message #675441] |
Tue, 31 May 2011 14:44 |
Sebastian Zarnekow Messages: 3118 Registered: July 2009 |
Senior Member |
|
|
Hi Sebastian,
you are right - the index did not persist the references in Xtext 1.0.1.
This was a bug which was solved for Xtext 2.0. However, the fix did not
make it into a service release for Xtext 1.0.x.
See here:
http://git.eclipse.org/c/tmf/org.eclipse.xtext.git/commit/?id=9fdd6df0a0db07dee03838bf5a24c8853d7c14c7
Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Am 31.05.11 16:14, schrieb Sebastian Paul:
> Hi,
> I am using XText 1.0.1 and noticed that the index builder does not
> persist ReferenceDescriptionImpl#externalFormOfEReference. This is due
> to the fact that the value of this feature is derived from the transient
> feature "reference". This means, setting the reference does not mark
> externalFormOfEReference as set, so that eIsSet(..) and therefore
> XMLSaveImpl.shouldSaveFeature(..) return false.
>
> The problem is that directly after startup, all ReferenceDescriptions
> return null for getEReference. After performing a clean project, this
> information is added (but not persisted on shutdown).
>
> Is this already a known bug? I did not found a bugzilla when searching
> for "externalFormOfEReference". Or maybe there is a simple workaround?
>
> Thanks for any help.
>
|
|
|
Powered by
FUDForum. Page generated in 0.02327 seconds