Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Camelon2008-01-28 13:39:21 -0500
committerJohn Camelon2008-01-28 13:39:21 -0500
commit9b3f5ab9ccf0b7305dd463bc8012870a2e250963 (patch)
treef4e9bad3cb8a67c73efd7d53224da6eb7d440a8b
parentc84242b0203ba67d4c7b1dc12f0b219eab68b8fe (diff)
downloadorg.eclipse.cdt-9b3f5ab9ccf0b7305dd463bc8012870a2e250963.tar.gz
org.eclipse.cdt-9b3f5ab9ccf0b7305dd463bc8012870a2e250963.tar.xz
org.eclipse.cdt-9b3f5ab9ccf0b7305dd463bc8012870a2e250963.zip
Bug 215566 : PDOM#getFileName() returns null for non-standard EFS implementations
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMName.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMName.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMName.java
index fa14a5eaca..e7b8decfeb 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMName.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMName.java
@@ -11,6 +11,7 @@
*******************************************************************************/
package org.eclipse.cdt.internal.core.pdom.dom;
+import java.io.File;
import java.net.URI;
import java.util.ArrayList;
@@ -24,6 +25,7 @@ import org.eclipse.cdt.internal.core.index.IIndexFragmentBinding;
import org.eclipse.cdt.internal.core.index.IIndexFragmentName;
import org.eclipse.cdt.internal.core.pdom.PDOM;
import org.eclipse.cdt.internal.core.pdom.db.Database;
+import org.eclipse.core.filesystem.EFS;
import org.eclipse.core.runtime.CoreException;
/**
@@ -260,6 +262,9 @@ public class PDOMName implements IIndexFragmentName, IASTFileLocation {
URI uri = file.getLocation().getURI();
if ("file".equals(uri.getScheme())) //$NON-NLS-1$
return uri.getSchemeSpecificPart();
+ File f = EFS.getStore(uri).toLocalFile(0, null);
+ if( f != null )
+ return f.getAbsolutePath();
}
} catch (CoreException e) {
CCorePlugin.log(e);

Back to the top