[jboss-cvs] jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards ...

Max Rydahl Andersen mandersen at jboss.com
Thu Sep 21 18:34:47 EDT 2006


  User: mandersen
  Date: 06/09/21 18:34:47

  Modified:    hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards 
                        ConsoleConfigurationCreationWizard.java
  Log:
  better error handling/logging in concosle config wizard
  
  Revision  Changes    Path
  1.9       +4 -2      jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationCreationWizard.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ConsoleConfigurationCreationWizard.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationCreationWizard.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- ConsoleConfigurationCreationWizard.java	7 Jul 2006 13:51:10 -0000	1.8
  +++ ConsoleConfigurationCreationWizard.java	21 Sep 2006 22:34:47 -0000	1.9
  @@ -27,6 +27,7 @@
   import org.eclipse.core.runtime.IPath;
   import org.eclipse.core.runtime.IProgressMonitor;
   import org.eclipse.core.runtime.IStatus;
  +import org.eclipse.core.runtime.MultiStatus;
   import org.eclipse.core.runtime.Status;
   import org.eclipse.jface.dialogs.ErrorDialog;
   import org.eclipse.jface.operation.IRunnableWithProgress;
  @@ -112,10 +113,11 @@
   			if(realException instanceof CoreException) {
   				s = ( (CoreException)realException).getStatus();
   			} else {
  -				s = new Status(IStatus.ERROR,HibernateConsolePlugin.ID, IStatus.OK, "Probably missing classes or errors with classloading", e);
  +				IStatus se = HibernateConsolePlugin.throwableToStatus( e ); 
  +				s = new MultiStatus(HibernateConsolePlugin.ID, IStatus.OK, new IStatus[] { se }, "Probably missing classes or errors with classloading", e);
   				
   			}
  -			ErrorDialog.openError(container.getShell(), "Create Conscole Configuration Wizard", "Error while finishing Wizard", s);
  +			HibernateConsolePlugin.getDefault().showError( container.getShell(), "Error while finishing Wizard", s );			
   			return false;
   		}
   		return true;
  
  
  



More information about the jboss-cvs-commits mailing list