Author: mareshkau
Date: 2008-07-17 09:52:33 -0400 (Thu, 17 Jul 2008)
New Revision: 9161
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
Log:
JBIDE-2505
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2008-07-17
11:39:15 UTC (rev 9160)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2008-07-17
13:52:33 UTC (rev 9161)
@@ -280,8 +280,9 @@
// TODO Sergey Vasilyev figure out with nsIPressShell
// presShell = browser.getPresShell();
+ //initialization visual selection controller
visualSelectionController = new
VpeSelectionController(visualEditor.getEditor().getSelectionController());
-
+
selectionBuilder = new VpeSelectionBuilder(domMapping, sourceBuilder,
visualBuilder, visualSelectionController);
@@ -1032,12 +1033,12 @@
nsIDOMNode node = SelectionUtil.getSelectedNode(selection);
if (node != null
&& node.getNodeType() == nsIDOMNode.TEXT_NODE) {
-
- // selectionBuilder.setSelection(selection);
-
+
selectionManager.setSelection(selection);
}
}
+ //enables cursor on selection event
+ visualSelectionController.setCaretEnabled(true);
} catch (Exception e) {
VpePlugin.reportProblem(e);
} finally {
Show replies by date