mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Cosmetics.
This commit is contained in:
parent
d55331cf8e
commit
48930c212f
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue