if (fEntry.getURI().startsWith("file:")) { //$NON-NLS-1$
return new ExternalFileHyperlink(fHyperlinkRegion, new File(fEntry.getURI().substring(5)));
}
else if (fEntry.getURI().startsWith("platform:/resource/")) { //$NON-NLS-1$
IPath path = new Path(fEntry.getURI().substring(20));
if (path.segmentCount() > 1)
return new WorkspaceFileHyperlink(fHyperlinkRegion, ResourcesPlugin.getWorkspace().getRoot().getFile(path));
}
else {
/*
* the URL detector will already work on the literal text, so