mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 16:58:56 +00:00
[xbase][guice] Added workspace root to DefaultXbaseUIModule
Also some NPE safety in ResourceStorageWritable Change-Id: I725c7bde72ff77a18b2deb1bfd215997ef2ec7a6
This commit is contained in:
parent
ef1dd4949b
commit
6aa2e61f8f
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ import org.eclipse.xtext.nodemodel.serialization.SerializationConversionContext
|
|||
def protected void convertExternalURIsToPortableURIs(SerializableResourceDescription description, StorageAwareResource resource) {
|
||||
for (ref : description.referenceDescriptions) {
|
||||
if (ref.targetEObjectUri.trimFragment != resource.URI) {
|
||||
(ref as SerializableReferenceDescription).targetEObjectUri = resource.portableURIs.toPortableURI(resource, ref.targetEObjectUri)
|
||||
(ref as SerializableReferenceDescription).targetEObjectUri = resource.portableURIs.toPortableURI(resource, ref.targetEObjectUri) ?: ref.targetEObjectUri
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue