[jboss-svn-commits] JBL Code SVN: r24259 - labs/jbossrules/trunk/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/editors.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Dec 5 18:50:01 EST 2008
Author: KrisVerlaenen
Date: 2008-12-05 18:50:01 -0500 (Fri, 05 Dec 2008)
New Revision: 24259
Modified:
labs/jbossrules/trunk/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/editors/DRLRuleEditor2.java
Log:
JBIDE-3299: Error msg when displaying RETE tree
- giving parsing errors a more meaningful error dialog
Modified: labs/jbossrules/trunk/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/editors/DRLRuleEditor2.java
===================================================================
--- labs/jbossrules/trunk/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/editors/DRLRuleEditor2.java 2008-12-05 23:19:42 UTC (rev 24258)
+++ labs/jbossrules/trunk/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/editors/DRLRuleEditor2.java 2008-12-05 23:50:01 UTC (rev 24259)
@@ -260,7 +260,21 @@
reteViewer.drawGraph( graph );
} catch ( InvocationTargetException e ) {
- handleError( e );
+ System.out.println(e.getTargetException().getMessage());
+ if (e.getTargetException() != null
+ && ReteViewer.MSG_PARSE_ERROR.equals(e.getTargetException().getMessage())) {
+ IStatus status = new Status( IStatus.ERROR,
+ DroolsEclipsePlugin.getUniqueIdentifier(),
+ -1,
+ "Unable to show Rete Tree when rules cannot be parsed correctly.",
+ null);
+ ErrorDialog.openError( getSite().getShell(),
+ "Rete Tree Build Error",
+ "Unable to parse rules, please correct rules first.",
+ status);
+ } else {
+ handleError( e );
+ }
reteFailed = true;
} catch ( InterruptedException e ) {
MessageDialog.openError( getSite().getShell(),
More information about the jboss-svn-commits
mailing list