Author: mareshkau
Date: 2007-10-18 09:52:07 -0400 (Thu, 18 Oct 2007)
New Revision: 4340
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
Log:
code adjustment
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 2007-10-18
13:49:33 UTC (rev 4339)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2007-10-18
13:52:07 UTC (rev 4340)
@@ -772,8 +772,8 @@
if (!switcher.startActiveEditor(ActiveEditorSwitcher.ACTIVE_EDITOR_VISUAL)) {
return;
}
- try{
nsIDOMNode visualNode = VisualDomUtil.getTargetNode(mouseEvent);
+
if (visualNode != null) {
if (!mouseUpSelectionReasonFlag) {
if (VpeDebug.PRINT_VISUAL_MOUSE_EVENT) {
@@ -790,9 +790,6 @@
selectionBuilder.setClickContentAreaSelection();
}
}
- } catch(Throwable exception) {
- exception.printStackTrace();
- }
switcher.stopActiveEditor();
}