Author: dazarov
Date: 2011-07-08 20:10:15 -0400 (Fri, 08 Jul 2011)
New Revision: 32779
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.text.ext/src/org/jboss/tools/cdi/seam/text/ext/hyperlink/CDISeamResourceLoadingHyperlink.java
Log:
https://issues.jboss.org/browse/JBIDE-8202
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.text.ext/src/org/jboss/tools/cdi/seam/text/ext/hyperlink/CDISeamResourceLoadingHyperlink.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.seam.text.ext/src/org/jboss/tools/cdi/seam/text/ext/hyperlink/CDISeamResourceLoadingHyperlink.java 2011-07-08
22:05:58 UTC (rev 32778)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.seam.text.ext/src/org/jboss/tools/cdi/seam/text/ext/hyperlink/CDISeamResourceLoadingHyperlink.java 2011-07-09
00:10:15 UTC (rev 32779)
@@ -126,7 +126,7 @@
//IPath sourcePath = source.getLocation();
// Look in source environment
- IPath webRootPath = source.getFullPath();//projectPath.append(sourcePath);
+ IPath webRootPath = source.getProjectRelativePath();//projectPath.append(sourcePath);
IPath relativePath = Utils.getRelativePath(webRootPath, basePath);
IPath filePath = relativePath.append(path);
member = project.getFolder(webRootPath).getFile(filePath);
@@ -146,9 +146,10 @@
Set<IFolder> sources = EclipseResourceUtil.getSourceFolders(file.getProject());
for (IFolder source : sources) {
- IPath sourcePath = source.getFullPath();
+ IPath sourcePath = source.getProjectRelativePath();
// Look in source environment
+ //IPath relativePath = Utils.getRelativePath(sourcePath, project.getLocation());
member = project.getFolder(sourcePath).getFile(path);
if(member.exists()) {
return member;