mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 08:48:55 +00:00
[trace] be able to handle multiple associated LocationDatas
This commit is contained in:
parent
4f242d3429
commit
c08a03295a
1 changed files with 11 additions and 4 deletions
|
@ -344,10 +344,17 @@ public abstract class AbstractTraceRegion {
|
|||
return result;
|
||||
}
|
||||
}
|
||||
if (parent != null && getAssociatedLocations().size() == 1) {
|
||||
return parent.getAssociatedPath();
|
||||
}
|
||||
return null;
|
||||
if (parent == null)
|
||||
return null;
|
||||
boolean uriSeen = false;
|
||||
for (ILocationData associated : getAssociatedLocations())
|
||||
if (associated.getPath() != null) {
|
||||
if (!uriSeen)
|
||||
uriSeen = true;
|
||||
else
|
||||
return null;
|
||||
}
|
||||
return parent.getAssociatedPath();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
|
Loading…
Reference in a new issue