Author: dmaliarevich
Date: 2008-08-13 03:14:41 -0400 (Wed, 13 Aug 2008)
New Revision: 9680
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2030, code adjustment (catch block was removed).
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-08-13
06:54:29 UTC (rev 9679)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2008-08-13
07:14:41 UTC (rev 9680)
@@ -676,8 +676,6 @@
sourceSelectionChanged();
}
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -698,8 +696,6 @@
// if (event.getSource() instanceof StyledText) {
sourceSelectionChanged();
// }
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -718,8 +714,6 @@
if (event.getSource() instanceof StyledText) {
sourceSelectionChanged();
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -842,8 +836,6 @@
}
try {
sourceSelectionChanged(showCaret);
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -888,8 +880,6 @@
// visualBuilder.rebuildDom(sourceDocument);
// pageContext.fireTaglibsChanged();
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -905,8 +895,6 @@
if (VpeDebug.PRINT_VISUAL_MUTATION_EVENT) {
printVisualEvent(mutationEvent);
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -926,8 +914,6 @@
sourceBuilder.addNode(targetNode);
visualBuilder.resetPseudoElement(targetNode);
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -948,8 +934,6 @@
sourceBuilder.removeNode(targetNode);
visualBuilder.resetPseudoElement(targetNode);
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -964,8 +948,6 @@
if (VpeDebug.PRINT_VISUAL_MUTATION_EVENT) {
printVisualEvent(mutationEvent);
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -980,8 +962,6 @@
if (VpeDebug.PRINT_VISUAL_MUTATION_EVENT) {
printVisualEvent(mutationEvent);
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -996,8 +976,6 @@
if (VpeDebug.PRINT_VISUAL_MUTATION_EVENT) {
printVisualEvent(mutationEvent);
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1015,8 +993,6 @@
nsIDOMNode targetNode = VisualDomUtil.getTargetNode(mutationEvent);
sourceBuilder.setText(targetNode);
visualBuilder.resetPseudoElement(targetNode);
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1051,8 +1027,6 @@
}
//enables cursor on selection event
visualSelectionController.setCaretEnabled(true);
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1121,8 +1095,6 @@
selectionManager.setSelection(mouseEvent);
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1143,8 +1115,6 @@
mouseEvent.stopPropagation();
mouseDownSelectionFlag = false;
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1175,8 +1145,6 @@
// selectionBuilder.setClickContentAreaSelection();
}
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1199,8 +1167,6 @@
}
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1221,8 +1187,6 @@
// }
visualBuilder.setMoveCursor(mouseEvent);
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1240,8 +1204,6 @@
}
try {
visualEditor.hideResizer();
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1336,8 +1298,6 @@
*/
sourceSelectionChanged(true);
visualSelectionController.setCaretEnabled(true);
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1357,8 +1317,6 @@
}
try {
visualEditor.hideResizer();
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1895,8 +1853,6 @@
pageContext.refreshBundleValues();
}
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -1918,8 +1874,6 @@
}
try {
pageContext.refreshBundleValues();
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -2448,8 +2402,6 @@
event.stopPropagation();
event.preventDefault();
}
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}
@@ -3046,8 +2998,6 @@
.println(">>>>>>>>>>>>>>
selectionChanged " + event.getSource()); //$NON-NLS-1$
}
sourceSelectionChanged();
- } catch (Exception e) {
- VpePlugin.reportProblem(e);
} finally {
switcher.stopActiveEditor();
}