private IPath getLabel(IIndexFileLocation ifl) { String fullPath = ifl.getFullPath(); if (fullPath != null) { return new Path(fullPath); } IPath path = IndexLocationFactory.getAbsolutePath(ifl); if (path != null) { return path; } URI uri = ifl.getURI(); return new Path(EFSExtensionManager.getDefault().getPathFromURI(uri)); }
@SuppressWarnings("nls") public String toInternalFormat(IIndexFileLocation location) { if (location.getFullPath() != null) return location.getFullPath(); return location.getURI().getSchemeSpecificPart(); }