Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Kucera2009-12-07 21:40:00 +0000
committerMike Kucera2009-12-07 21:40:00 +0000
commitb316f8f5fa31e2e27b8905745fae3a7462107940 (patch)
tree24a907e39cd713f6e8d9e61ca35b1c05ee8f2781
parentb6d0b06f02c0499df384fc0c040ae1c49259f56f (diff)
downloadorg.eclipse.cdt-b316f8f5fa31e2e27b8905745fae3a7462107940.tar.gz
org.eclipse.cdt-b316f8f5fa31e2e27b8905745fae3a7462107940.tar.xz
org.eclipse.cdt-b316f8f5fa31e2e27b8905745fae3a7462107940.zip
Bug 296881 - remote C/C++ search results not displaying properly
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/EditorUtility.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/EditorUtility.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/EditorUtility.java
index 33f780c5bc9..ed41e793f08 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/EditorUtility.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/EditorUtility.java
@@ -329,7 +329,11 @@ public class EditorUtility {
// crecoskie test
// TODO FIXME
// include entries don't handle URIs yet, so fake it out for now
- if (includeReferences[j].isOnIncludeEntry(URIUtil.toPath(locationURI))) {
+ IPath path = URIUtil.toPath(locationURI);
+ if(path == null)
+ path = new Path(locationURI.getPath());
+
+ if (includeReferences[j].isOnIncludeEntry(path)) {
context = projects[i];
break outerFor;
}

Back to the top