Author: mareshkau
Date: 2007-11-01 09:40:17 -0400 (Thu, 01 Nov 2007)
New Revision: 4623
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionHref.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1232
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionHref.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionHref.java 2007-11-01
13:34:02 UTC (rev 4622)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionHref.java 2007-11-01
13:40:17 UTC (rev 4623)
@@ -31,12 +31,11 @@
public VpeValue exec(VpePageContext pageContext, Node sourceNode) {
String tagValue = getParameter(0).exec(pageContext, sourceNode).stringValue();
- String localFile = tagValue;
IPath tagPath = new Path(tagValue);
if (tagPath.isEmpty()) return new VpeValue(getUnresolved());
- String device = tagPath.getDevice();
+ String device = (tagPath.getDevice()==null?tagPath.segment(0):tagPath.getDevice());;
if (device != null &&
("http:".equalsIgnoreCase(device) ||
"file:".equalsIgnoreCase(device))) return new VpeValue(tagValue);