Author: estherbin
Date: 2008-08-21 09:21:39 -0400 (Thu, 21 Aug 2008)
New Revision: 9855
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/FileUtil.java
Log:
Fix D. Golovin request.
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/FileUtil.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/FileUtil.java 2008-08-21
13:05:12 UTC (rev 9854)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/FileUtil.java 2008-08-21
13:21:39 UTC (rev 9855)
@@ -103,7 +103,6 @@
// do nothing that means include will shown as text region with included file name
}
} else {
- try {
ResourceReference[] resources =
RelativeFolderReferenceList.getInstance().getAllResources(includeFile);
if ((resources != null) && resources.length == 1) {
String location = resources[0].getLocation() +
File.separator+fileName;
@@ -111,17 +110,10 @@
//new File(location);
return
ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(path);//ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(path);
} else {
-
IPath currentFolder = includeFile.getParent().getFullPath();
IPath path = currentFolder.append(fileName);
file = ResourcesPlugin.getWorkspace().getRoot().getFile(path);
- }
- } catch (Exception e) {
- if(VpeDebug.USE_PRINT_STACK_TRACE){
- e.printStackTrace();
- }
- return null;
- }
+ }
}
return file;
}
Show replies by date