Author: mareshkau
Date: 2009-10-01 07:37:00 -0400 (Thu, 01 Oct 2009)
New Revision: 17830
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4526, exception notification and error processing
has been added to visual builder
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2009-10-01
09:51:41 UTC (rev 17829)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2009-10-01
11:37:00 UTC (rev 17830)
@@ -278,7 +278,7 @@
*/
private boolean addNode(Node sourceNode, nsIDOMNode visualNextNode,
nsIDOMNode visualContainer) {
-
+ try {
nsIDOMNode visualNewNode = createNode(sourceNode, visualContainer);
// Commented as fix for JBIDE-3012.
// // Fix for JBIDE-1097
@@ -299,6 +299,9 @@
}
return true;
}
+ } catch(XPCOMException xpcomException) {
+ VpePlugin.reportProblem(xpcomException);
+ }
return false;
}