Author: dazarov
Date: 2011-07-08 20:11:01 -0400 (Fri, 08 Jul 2011)
New Revision: 32780
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-09
00:10:15 UTC (rev 32779)
+++
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:11:01 UTC (rev 32780)
@@ -118,15 +118,11 @@
path = findAndReplaceElVariable(path);
- IPath projectPath = project.getLocation();
IFile member = null;
Set<IFolder> sources = EclipseResourceUtil.getSourceFolders(file.getProject());
for (IFolder source : sources) {
- //IPath sourcePath = source.getLocation();
-
- // Look in source environment
- IPath webRootPath = source.getProjectRelativePath();//projectPath.append(sourcePath);
+ IPath webRootPath = source.getProjectRelativePath();
IPath relativePath = Utils.getRelativePath(webRootPath, basePath);
IPath filePath = relativePath.append(path);
member = project.getFolder(webRootPath).getFile(filePath);
@@ -148,8 +144,6 @@
for (IFolder source : sources) {
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;