axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thil...@apache.org
Subject svn commit: r469827 - in /webservices/axis2/branches/java/1_1/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea: BottomPanel.java OutPutPane.java
Date Wed, 01 Nov 2006 08:54:29 GMT
Author: thilina
Date: Wed Nov  1 00:54:28 2006
New Revision: 469827

URL: http://svn.apache.org/viewvc?view=rev&rev=469827
Log:
applying patch given at http://issues.apache.org/jira/browse/AXIS2-1571

Thanx Keith

Modified:
    webservices/axis2/branches/java/1_1/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/BottomPanel.java
    webservices/axis2/branches/java/1_1/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/OutPutPane.java

Modified: webservices/axis2/branches/java/1_1/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/BottomPanel.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/BottomPanel.java?view=diff&rev=469827&r1=469826&r2=469827
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/BottomPanel.java
(original)
+++ webservices/axis2/branches/java/1_1/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/BottomPanel.java
Wed Nov  1 00:54:28 2006
@@ -81,6 +81,7 @@
         else if (obj == btnCancel) {
             java2CodeFrame.dispose();
             Thread.currentThread().setContextClassLoader(java2CodeFrame.getClassLoader());
+            return;
         } else if (obj == btnFinish) {
 
             File outputDir = new File(java2CodeFrame.outputpane.txtoutput.getText().trim());
@@ -106,6 +107,7 @@
                         JOptionPane.showMessageDialog(java2CodeFrame, "Code genaration failed!"
+ writer.toString(),
                                 "Axis2 codegeneration", JOptionPane.ERROR_MESSAGE);
                         java2CodeFrame.dispose();
+                        return;
                     }
 
                     JOptionPane.showMessageDialog(java2CodeFrame, "Code genaration successful!",
@@ -136,6 +138,7 @@
                     JOptionPane.showMessageDialog(java2CodeFrame, "Code genaration failed!"
+ writer.toString(),
                             "Axis2 codegeneration", JOptionPane.ERROR_MESSAGE);
                     java2CodeFrame.dispose();
+                        return;
                     }
 
                 }
@@ -151,6 +154,7 @@
                     JOptionPane.showMessageDialog(java2CodeFrame, "Code genaration failed!"
+ writer.toString(),
                             "Axis2 codegeneration", JOptionPane.ERROR_MESSAGE);
                     java2CodeFrame.dispose();
+                    return;
                 }
                 }
             } else if (selected.equalsIgnoreCase("radDefaultServer")) {
@@ -168,6 +172,7 @@
                         JOptionPane.showMessageDialog(java2CodeFrame, "Code genaration failed!"
+ writer.toString(),
                                 "Axis2 codegeneration", JOptionPane.ERROR_MESSAGE);
                         java2CodeFrame.dispose();
+                        return;
                     }
 
 
@@ -182,6 +187,7 @@
                             JOptionPane.showMessageDialog(java2CodeFrame, "Code genaration
failed!" + writer.toString(),
                                     "Axis2 codegeneration", JOptionPane.ERROR_MESSAGE);
                             java2CodeFrame.dispose();
+                            return;
                         }
 
                     } else {
@@ -209,6 +215,8 @@
                         JOptionPane.showMessageDialog(java2CodeFrame, "Code genaration failed!"
+ writer.toString(),
                                 "Axis2 codegeneration", JOptionPane.ERROR_MESSAGE);
                         java2CodeFrame.dispose();
+                        return;
+
                     }
 
                 } else {
@@ -224,6 +232,7 @@
                             JOptionPane.showMessageDialog(java2CodeFrame, "Code genaration
failed!" + writer.toString(),
                                     "Axis2 codegeneration", JOptionPane.ERROR_MESSAGE);
                             java2CodeFrame.dispose();
+                            return;
                         }
 
                     } else {
@@ -239,6 +248,7 @@
             JOptionPane.showMessageDialog(java2CodeFrame, "Code genaration successful!",
                     "Axis2 codegeneration", JOptionPane.INFORMATION_MESSAGE);
             java2CodeFrame.dispose();
+            return;
 
         } else if (obj == btnNext) {
 

Modified: webservices/axis2/branches/java/1_1/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/OutPutPane.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/OutPutPane.java?view=diff&rev=469827&r1=469826&r2=469827
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/OutPutPane.java
(original)
+++ webservices/axis2/branches/java/1_1/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/OutPutPane.java
Wed Nov  1 00:54:28 2006
@@ -86,6 +86,7 @@
         cmbCurrentProject = new JComboBox();
         cmbCurrentProject.setEnabled(true);
         add(cmbCurrentProject);
+        cmbCurrentProject.addActionListener(this);
 
         lblModuleSrc = new JLabel("Select Source Directory");
         lblModuleSrc.setEnabled(true);
@@ -117,6 +118,7 @@
     public void loadcmbModuleSrcProject() {
         String module = null;
         module = (String) cmbCurrentProject.getSelectedItem();
+        cmbModuleSrc.removeAllItems();
         int count = 0;
         if (module != null) {
             String src[] = cogenbean.getModuleSrc(module);
@@ -183,6 +185,8 @@
             txtoutput.setEnabled(true);
             btwBrowse.setEnabled(true);
         }
+        else if (obj == cmbCurrentProject) {
+            loadcmbModuleSrcProject();
     }
 }
 
@@ -233,7 +237,7 @@
         }
         c = parent.getComponent(7);
         if (c.isVisible()) {
-            c.setBounds(insets.left + 200, insets.top + 70, 250, 24);
+            c.setBounds(insets.left + 200, insets.top + 70, 330, 24);
         }
         c = parent.getComponent(4);
         if (c.isVisible()) {
@@ -248,5 +252,7 @@
             c.setBounds(insets.left + 200, insets.top + 130, 150, 24);
         }
     }
+}
+
 }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message