Author: sdzmitrovich
Date: 2008-08-29 10:21:10 -0400 (Fri, 29 Aug 2008)
New Revision: 9965
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/util/NodesManagingUtil.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-1972
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-08-29
14:19:13 UTC (rev 9964)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/SelectionManager.java 2008-08-29
14:21:10 UTC (rev 9965)
@@ -298,7 +298,7 @@
// if mapping is elementMapping
-// SelectionUtil.clearSelection(selectionController);
+ SelectionUtil.clearSelection(selectionController);
if (nodeMapping instanceof VpeElementMapping) {
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/NodesManagingUtil.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/NodesManagingUtil.java 2008-08-29
14:19:13 UTC (rev 9964)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/NodesManagingUtil.java 2008-08-29
14:21:10 UTC (rev 9965)
@@ -108,7 +108,7 @@
public static boolean isNodeContainsPosition(Node node, int position) {
if ((NodesManagingUtil.getStartOffsetNode(node) <= position)
- && (NodesManagingUtil.getEndOffsetNode(node) > position))
+ && (NodesManagingUtil.getEndOffsetNode(node) >= position))
return true;
return false;