1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 09:46:02 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2009-01-19 03:34:20 +00:00
parent d55331cf8e
commit 48930c212f

View file

@ -50,7 +50,7 @@ public class IndexLocationFactory {
*/ */
public static IPath getPath(IIndexFileLocation location) { public static IPath getPath(IIndexFileLocation location) {
String fp = location.getFullPath(); String fp = location.getFullPath();
if(fp!=null) { if (fp != null) {
return new Path(fp); return new Path(fp);
} }
return getAbsolutePath(location); return getAbsolutePath(location);
@ -63,7 +63,7 @@ public class IndexLocationFactory {
* URI is not a filesystem path. * URI is not a filesystem path.
*/ */
public static IPath getAbsolutePath(IIndexFileLocation location) { public static IPath getAbsolutePath(IIndexFileLocation location) {
return URIUtil.toPath(location.getURI()); return URIUtil.toPath(location.getURI());
} }
/** /**
@ -141,11 +141,11 @@ public class IndexLocationFactory {
*/ */
public static IIndexFileLocation getIFL(ITranslationUnit tu) { public static IIndexFileLocation getIFL(ITranslationUnit tu) {
IResource res = tu.getResource(); IResource res = tu.getResource();
if(res instanceof IFile) { if (res instanceof IFile) {
return getWorkspaceIFL((IFile)res); return getWorkspaceIFL((IFile)res);
} }
IPath location = tu.getLocation(); IPath location = tu.getLocation();
if(location!=null) { if (location != null) {
return getExternalIFL(location); return getExternalIFL(location);
} }
return null; return null;