Author: mareshkau
Date: 2007-11-01 09:08:45 -0400 (Thu, 01 Nov 2007)
New Revision: 4619
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1185
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2007-11-01
13:02:50 UTC (rev 4618)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2007-11-01
13:08:45 UTC (rev 4619)
@@ -14,6 +14,7 @@
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
+import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
@@ -1089,8 +1090,10 @@
linkNode.setAttribute(VpeTemplateManager.ATTR_LINK_EXT, ext_val);
try {
StringBuffer styleText = new StringBuffer(EMPTY_STRING);
+ URL url = new URL((new Path(href_val)).setDevice("").toOSString());
+ String fileName=url.getFile();
BufferedReader in = new BufferedReader(new FileReader(
- (new Path(href_val)).setDevice("").toOSString()));
+ (fileName)));
String str = EMPTY_STRING;
while ((str = in.readLine()) != null) {
styleText.append(str);