[jbosstools-commits] JBoss Tools SVN: r35663 - branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse/src/org/hibernate/console/ext.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Oct 14 10:23:38 EDT 2011


Author: dgeraskov
Date: 2011-10-14 10:23:38 -0400 (Fri, 14 Oct 2011)
New Revision: 35663

Modified:
   branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse/src/org/hibernate/console/ext/HQLQueryPage.java
   branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse/src/org/hibernate/console/ext/JavaPage.java
   branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse/src/org/hibernate/console/ext/QueryResult.java
   branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse/src/org/hibernate/console/ext/QueryResultImpl.java
Log:
Handle Throwable instead of Exception as incompatible libraries versions (when ConsoleConfiguration and user libraries has different versions) throw Exceptions which actually subclasses of Error

Modified: branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse/src/org/hibernate/console/ext/HQLQueryPage.java
===================================================================
--- branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse/src/org/hibernate/console/ext/HQLQueryPage.java	2011-10-14 14:23:25 UTC (rev 35662)
+++ branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse/src/org/hibernate/console/ext/HQLQueryPage.java	2011-10-14 14:23:38 UTC (rev 35663)
@@ -54,7 +54,7 @@
 				}
 				pcs.firePropertyChange("list", null, list); //$NON-NLS-1$
 			} else {
-				for (Exception e : queryResult.getExceptions()) {
+				for (Throwable e : queryResult.getExceptions()) {
 					addException(e);
 				}
 			}

Modified: branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse/src/org/hibernate/console/ext/JavaPage.java
===================================================================
--- branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse/src/org/hibernate/console/ext/JavaPage.java	2011-10-14 14:23:25 UTC (rev 35662)
+++ branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse/src/org/hibernate/console/ext/JavaPage.java	2011-10-14 14:23:38 UTC (rev 35663)
@@ -62,7 +62,7 @@
 				}
 				pcs.firePropertyChange("list", null, list); //$NON-NLS-1$
 			} else {
-				for (Exception e : queryResult.getExceptions()) {
+				for (Throwable e : queryResult.getExceptions()) {
 					addException(e);
 				}
 			}

Modified: branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse/src/org/hibernate/console/ext/QueryResult.java
===================================================================
--- branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse/src/org/hibernate/console/ext/QueryResult.java	2011-10-14 14:23:25 UTC (rev 35662)
+++ branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse/src/org/hibernate/console/ext/QueryResult.java	2011-10-14 14:23:38 UTC (rev 35663)
@@ -26,7 +26,7 @@
 	
 	public boolean hasExceptions();
 	
-	public List<Exception> getExceptions();
+	public List<Throwable> getExceptions();
 
 	public void setPathNames(List<String> pathNames);
 

Modified: branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse/src/org/hibernate/console/ext/QueryResultImpl.java
===================================================================
--- branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse/src/org/hibernate/console/ext/QueryResultImpl.java	2011-10-14 14:23:25 UTC (rev 35662)
+++ branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse/src/org/hibernate/console/ext/QueryResultImpl.java	2011-10-14 14:23:38 UTC (rev 35663)
@@ -26,7 +26,7 @@
 	
 	private long execTime;
 	
-	private List<Exception> exceptions = new ArrayList<Exception>();
+	private List<Throwable> exceptions = new ArrayList<Throwable>();
 	
 	public QueryResultImpl(List<Object> list, long execTime){
 		this.list = list;
@@ -38,7 +38,7 @@
 		this.pathNames = pathNames;
 	}
 	
-	public QueryResultImpl(Exception e){
+	public QueryResultImpl(Throwable e){
 		exceptions.add(e);
 	}
 
@@ -66,11 +66,11 @@
 		return execTime;
 	}
 	
-	public void addException(Exception e){
+	public void addException(Throwable e){
 		exceptions.add(e);
 	}
 	
-	public List<Exception> getExceptions(){
+	public List<Throwable> getExceptions(){
 		return this.exceptions;
 	}
 



More information about the jbosstools-commits mailing list