You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2007/04/06 08:11:23 UTC

svn commit: r526069 - in /webservices/axis2/branches/java/1_2/modules/tool/axis2-idea-plugin/src/main/java/org/apache: axis2/tools/idea/Java2CodeFrame.java axis2/tools/java2wsdl/Java2WSDLFrame.java ideaplugin/frames/Axi2PluginPage.java

Author: sandakith
Date: Thu Apr  5 23:11:22 2007
New Revision: 526069

URL: http://svn.apache.org/viewvc?view=rev&rev=526069
Log:
fix for AXIS2-2480

Modified:
    webservices/axis2/branches/java/1_2/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/Java2CodeFrame.java
    webservices/axis2/branches/java/1_2/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/java2wsdl/Java2WSDLFrame.java
    webservices/axis2/branches/java/1_2/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/Axi2PluginPage.java

Modified: webservices/axis2/branches/java/1_2/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/Java2CodeFrame.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_2/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/Java2CodeFrame.java?view=diff&rev=526069&r1=526068&r2=526069
==============================================================================
--- webservices/axis2/branches/java/1_2/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/Java2CodeFrame.java (original)
+++ webservices/axis2/branches/java/1_2/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/Java2CodeFrame.java Thu Apr  5 23:11:22 2007
@@ -52,7 +52,7 @@
 
     // To keep the value of wsdl wizzard
     private CodegenBean codegenBean;
-
+    private int defaultCloseOperation;
     public Java2CodeFrame() {
         windowLayout customLayout = new windowLayout(1);
 
@@ -90,6 +90,26 @@
         setBounds(200, 200, dim.width, dim.height);
     }
 
+    public void setDefaultCloseOperation(int operation) {
+        if (operation != DO_NOTHING_ON_CLOSE &&
+                operation != HIDE_ON_CLOSE &&
+                operation != DISPOSE_ON_CLOSE &&
+                operation != EXIT_ON_CLOSE) {
+            throw new IllegalArgumentException("defaultCloseOperation must be one of: DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, DISPOSE_ON_CLOSE, or EXIT_ON_CLOSE");
+        }
+        if (this.defaultCloseOperation != operation) {
+            if (operation == EXIT_ON_CLOSE) {
+                SecurityManager security = System.getSecurityManager();
+                if (security != null) {
+                    security.checkExit(0);
+                }
+            }
+            int oldValue = this.defaultCloseOperation;
+            this.defaultCloseOperation = operation;
+            firePropertyChange("defaultCloseOperation", oldValue, operation);
+        }
+    }
+
     public void setProject(Project project) {
         codegenBean.setProject(project);
     }
@@ -213,6 +233,7 @@
 
             copyDirectory(new File(temp + File.separator + "src"), new File(codegenBean.getOutput()+File.separator + ".." + File.separator + "src") );
             copyDirectory(new File(temp + File.separator + "lib"), new File(codegenBean.getOutput() + File.separator + ".." + File.separator + "lib"));
+            copyFiles(new File(temp + File.separator + "build.xml"), new File(codegenBean.getOutput() + File.separator + ".." + File.separator + "build.xml"));
 
         } catch (Exception e1) {
 

Modified: webservices/axis2/branches/java/1_2/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/java2wsdl/Java2WSDLFrame.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_2/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/java2wsdl/Java2WSDLFrame.java?view=diff&rev=526069&r1=526068&r2=526069
==============================================================================
--- webservices/axis2/branches/java/1_2/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/java2wsdl/Java2WSDLFrame.java (original)
+++ webservices/axis2/branches/java/1_2/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/java2wsdl/Java2WSDLFrame.java Thu Apr  5 23:11:22 2007
@@ -22,7 +22,7 @@
     Project project;
 
     private WsdlgenBean wsdlgenBean;
-
+    private int defaultCloseOperation;
     public Java2WSDLFrame (){
 
         windowLayout customLayout = new windowLayout(1);
@@ -73,6 +73,27 @@
 
 
     }
+
+    public void setDefaultCloseOperation(int operation) {
+        if (operation != DO_NOTHING_ON_CLOSE &&
+                operation != HIDE_ON_CLOSE &&
+                operation != DISPOSE_ON_CLOSE &&
+                operation != EXIT_ON_CLOSE) {
+            throw new IllegalArgumentException("defaultCloseOperation must be one of: DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, DISPOSE_ON_CLOSE, or EXIT_ON_CLOSE");
+        }
+        if (this.defaultCloseOperation != operation) {
+            if (operation == EXIT_ON_CLOSE) {
+                SecurityManager security = System.getSecurityManager();
+                if (security != null) {
+                    security.checkExit(0);
+                }
+            }
+            int oldValue = this.defaultCloseOperation;
+            this.defaultCloseOperation = operation;
+            firePropertyChange("defaultCloseOperation", oldValue, operation);
+        }
+    }
+
     public void setProject(Project project) {
         this.project = project;
     }

Modified: webservices/axis2/branches/java/1_2/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/Axi2PluginPage.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_2/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/Axi2PluginPage.java?view=diff&rev=526069&r1=526068&r2=526069
==============================================================================
--- webservices/axis2/branches/java/1_2/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/Axi2PluginPage.java (original)
+++ webservices/axis2/branches/java/1_2/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/Axi2PluginPage.java Thu Apr  5 23:11:22 2007
@@ -44,7 +44,7 @@
     Java2CodeFrame winj2c;
     Java2WSDLFrame winj2w;
 
-
+    private int defaultCloseOperation;
 
     public Axi2PluginPage() {
         setBackground(Color.white);
@@ -90,6 +90,28 @@
         imglbl = new LogoPage();
         getContentPane().add(imglbl);
 
+    }
+
+
+
+    public void setDefaultCloseOperation(int operation) {
+        if (operation != DO_NOTHING_ON_CLOSE &&
+                operation != HIDE_ON_CLOSE &&
+                operation != DISPOSE_ON_CLOSE &&
+                operation != EXIT_ON_CLOSE) {
+            throw new IllegalArgumentException("defaultCloseOperation must be one of: DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, DISPOSE_ON_CLOSE, or EXIT_ON_CLOSE");
+        }
+        if (this.defaultCloseOperation != operation) {
+            if (operation == EXIT_ON_CLOSE) {
+                SecurityManager security = System.getSecurityManager();
+                if (security != null) {
+                    security.checkExit(0);
+                }
+            }
+            int oldValue = this.defaultCloseOperation;
+            this.defaultCloseOperation = operation;
+            firePropertyChange("defaultCloseOperation", oldValue, operation);
+        }
     }
 
     public void showUI() {



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