Author: mareshkau
Date: 2007-11-01 09:54:46 -0400 (Thu, 01 Nov 2007)
New Revision: 4624
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/VpeFunctionSrc.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:40:17 UTC (rev 4623)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionHref.java 2007-11-01
13:54:46 UTC (rev 4624)
@@ -35,7 +35,7 @@
IPath tagPath = new Path(tagValue);
if (tagPath.isEmpty()) return new VpeValue(getUnresolved());
- String device = (tagPath.getDevice()==null?tagPath.segment(0):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);
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionSrc.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionSrc.java 2007-11-01
13:40:17 UTC (rev 4623)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionSrc.java 2007-11-01
13:54:46 UTC (rev 4624)
@@ -45,7 +45,7 @@
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);