| commit | 8cc09d2e6a497c6c45a41541be0033e697db6971 | [log] [tgz] |
|---|---|---|
| author | pavery <pavery> | Wed Feb 23 18:08:53 2005 +0000 |
| committer | pavery <pavery> | Wed Feb 23 18:08:53 2005 +0000 |
| tree | e72b65fc3fd662de8f6b6424a8b1bb46ec078b39 | |
| parent | f002deff79bc788c32e55f15ba6d7fd442a49770 [diff] |
[86009] a better fix (using path)
diff --git a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/search/JSPSearchSupport.java b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/search/JSPSearchSupport.java index 6e0920a..6f007b5 100644 --- a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/search/JSPSearchSupport.java +++ b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/search/JSPSearchSupport.java
@@ -474,8 +474,9 @@ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=86009 // must have a project name as well // which would mean >= 2 path segments - if(filePath.split("/").length >= 2) { - f = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(filePath)); + IPath path = new Path(filePath); + if(path.segmentCount() >= 2) { + f = ResourcesPlugin.getWorkspace().getRoot().getFile(path); } } return f;