Author: scabanovich
Date: 2007-11-06 08:23:47 -0500 (Tue, 06 Nov 2007)
New Revision: 4734
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/hyperlink/BundleBasenameHyperlink.java
Log:
JBIDE-1259
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/hyperlink/BundleBasenameHyperlink.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/hyperlink/BundleBasenameHyperlink.java 2007-11-06
12:51:28 UTC (rev 4733)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/hyperlink/BundleBasenameHyperlink.java 2007-11-06
13:23:47 UTC (rev 4734)
@@ -68,7 +68,7 @@
IClasspathEntry[] es = javaProject.getRawClasspath();
for (int i = 0; i < es.length; i++) {
if(es[i].getEntryKind() != IClasspathEntry.CPE_SOURCE) continue;
- IFile file =
(IFile)project.getFile(es[i].getPath().lastSegment()+"/"+name);
+ IFile file = (IFile)project.getFile(es[i].getPath().removeFirstSegments(1) +
"/" + name);
if(file != null && file.exists()) return file;
}
return null;
Show replies by date