Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » XText index builder does not persist EReference
XText index builder does not persist EReference [message #675441] Tue, 31 May 2011 14:14 Go to next message
Sebastian Paul is currently offline Sebastian PaulFriend
Messages: 106
Registered: July 2009
Senior Member
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.

--
Best regards,
Sebastian Paul
Re: XText index builder does not persist EReference [message #675445 is a reply to message #675441] Tue, 31 May 2011 14:44 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
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.
>
Previous Topic:using Xbase
Next Topic:Issue with Xtend2 ListExtensions
Goto Forum:
  


Current Time: Thu Apr 25 00:42:46 GMT 2024

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

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

Back to the top