Author: ezheleznyakov
Date: 2007-08-28 05:37:50 -0400 (Tue, 28 Aug 2007)
New Revision: 3373
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeSelectionBuilder.java
Log:
Code adjustment
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeSelectionBuilder.java
===================================================================
---
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeSelectionBuilder.java 2007-08-28
00:51:56 UTC (rev 3372)
+++
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeSelectionBuilder.java 2007-08-28
09:37:50 UTC (rev 3373)
@@ -128,7 +128,7 @@
nsIDOMNode containerForPseudoContent =
VpePseudoContentCreator.getContainerForPseudoContent(visualNode);
if (containerForPseudoContent != null) {
sourceNode = domMapping.getNearSourceNode(containerForPseudoContent);
- visualBuilder.setSelectionRectangle((nsIDOMElement)containerForPseudoContent,
false);
+ visualBuilder.setSelectionRectangle((nsIDOMElement)containerForPseudoContent.queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID),
false);
sourceBuilder.setSelection(sourceNode, 0, 0, true);
visualSelectionController.setCaretEnabled(false);
} else {
Show replies by date