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));
 }
예제 #2
0
파일: AutoRun.java 프로젝트: riby/logm
 @SuppressWarnings("nls")
 public String toInternalFormat(IIndexFileLocation location) {
   if (location.getFullPath() != null) return location.getFullPath();
   return location.getURI().getSchemeSpecificPart();
 }