axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r367586 - /webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/codegen/eclipse/CodeGenWizard.java
Date Tue, 10 Jan 2006 12:37:29 GMT
Author: ajith
Date: Tue Jan 10 04:37:18 2006
New Revision: 367586

URL: http://svn.apache.org/viewcvs?rev=367586&view=rev
Log:
Fixed a minor bug in error handling

Modified:
    webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/codegen/eclipse/CodeGenWizard.java

Modified: webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/codegen/eclipse/CodeGenWizard.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/codegen/eclipse/CodeGenWizard.java?rev=367586&r1=367585&r2=367586&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/codegen/eclipse/CodeGenWizard.java
(original)
+++ webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/codegen/eclipse/CodeGenWizard.java
Tue Jan 10 04:37:18 2006
@@ -19,6 +19,7 @@
 import org.apache.axis2.wsdl.codegen.CodeGenConfiguration;
 import org.apache.axis2.wsdl.codegen.CodeGenerationEngine;
 import org.apache.wsdl.WSDLDescription;
+import org.eclipse.core.runtime.CoreException;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.NullProgressMonitor;
 import org.eclipse.jface.dialogs.MessageDialog;
@@ -166,7 +167,7 @@
         WorkspaceModifyOperation op = new WorkspaceModifyOperation()
         {
            protected void execute(IProgressMonitor monitor)
-           {
+           throws CoreException, InvocationTargetException, InterruptedException{
               if (monitor == null)
                  monitor = new NullProgressMonitor();
 
@@ -206,18 +207,15 @@
                  monitor.worked(1);
                  
                  monitor.subTask(CodegenWizardPlugin.getResourceString("generator.generating"));
-                 try {
-                    new CodeGenerationEngine(codegenConfig).generate();
-                } catch (Exception e1) {
-                    // TODO Auto-generated catch block
-                    e1.printStackTrace();
-                }
+                 
+                 new CodeGenerationEngine(codegenConfig).generate();
+                
                  monitor.worked(1);
               }
               catch (Exception e)
               {
-                 e.printStackTrace(); 
-                 throw new RuntimeException(e);
+                
+                 throw new InterruptedException(e.getMessage());
               }
 
               monitor.done();
@@ -239,7 +237,7 @@
         }
         catch (InterruptedException e1)
         {
-           throw new RuntimeException("User Aborted!");
+           throw new RuntimeException(e1);
         }
         catch (Exception e)
         {



Mime
View raw message