QualifiedName name = nameProvider.getFullyQualifiedName(crossLinkedEObject);
IResourceDescriptions index = indexService.getResourceDescriptions(resource);
Iterable<IEObjectDescription> matches = index.getExportedObjectsByType(XturtlePackage.Literals.RESOURCE);//, name, false);
for (final IEObjectDescription desc : matches) {
if(desc.getQualifiedName().equals(name)){
XtextHyperlink result = getHyperlinkProvider().get();
result.setHyperlinkRegion(region);
result.setURI(desc.getEObjectURI());
result.setHyperlinkText(desc.getEObjectURI().trimFragment().toString());
acceptor.accept(result);
}
}
}
//always allow browser link (if uri is absolute, text editor will create URLHyperlink anyway)