Author: mareshkau
Date: 2008-07-31 11:51:10 -0400 (Thu, 31 Jul 2008)
New Revision: 9456
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/SelectionManager.java
Log:
JBIDE-2584
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/SelectionManager.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/SelectionManager.java 2008-07-31
15:17:08 UTC (rev 9455)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/SelectionManager.java 2008-07-31
15:51:10 UTC (rev 9456)
@@ -329,7 +329,7 @@
&&visualNode.getNodeType()==nsIDOMNode.TEXT_NODE
&&nodeData.getSourceNode()!=null){
- if(nodeData.getSourceNode().getNodeType()==Node.ELEMENT_NODE) {
+ if(nodeData.getSourceNode().getNodeType()==Node.ATTRIBUTE_NODE) {
NodeImpl targetSourceNode = (NodeImpl)nodeData.getSourceNode();
String sourceNodeValue = nodeData.getSourceNode().getNodeValue();
ITextRegion valueRegion = targetSourceNode.getValueRegion();
Show replies by date