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 de...@apache.org on 2005/09/24 09:51:47 UTC

svn commit: r291260 [2/2] - in /webservices/axis2/trunk/java/modules/tool/ideapluging/plugin: ./ META-INF/ icons/ org/ org/apache/ org/apache/axis2/ org/apache/axis2/tools/ org/apache/axis2/tools/bean/ org/apache/axis2/tools/idea/ org/apache/idaeplugin...

Added: webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/Axi2PluginPage.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/Axi2PluginPage.java?rev=291260&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/Axi2PluginPage.java (added)
+++ webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/Axi2PluginPage.java Sat Sep 24 00:51:20 2005
@@ -0,0 +1,151 @@
+package org.apache.idaeplugin.frames;
+
+import org.apache.axis2.tools.idea.*;
+
+import javax.swing.*;
+import java.awt.*;
+import java.awt.Window;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Deepal Jayasinghe
+ * Date: Sep 24, 2005
+ * Time: 10:41:41 AM
+ */
+public class Axi2PluginPage extends JFrame implements ActionListener {
+    ButtonGroup cbg;
+    JRadioButton service;
+    JRadioButton javawsdl;
+    JButton butOK;
+    JButton butCancle;
+    JPanel imglbl;
+
+    public Axi2PluginPage() {
+        setBackground(Color.white);
+        Dimension dim = getPreferredSize();
+        setSize(dim);
+        setBounds(200,200,dim.width ,dim.height);
+        setBounds(200,200,dim.width ,dim.height);
+        Axi2PluginPageLayout customLayout = new Axi2PluginPageLayout();
+
+        getContentPane().setFont(new Font("Helvetica", Font.PLAIN, 12));
+        getContentPane().setLayout(customLayout);
+
+        cbg = new ButtonGroup();
+        service = new JRadioButton("Create a service archive", false);
+        cbg.add(service);
+        getContentPane().add(service);
+
+        javawsdl = new JRadioButton("WSDL2Java codegenaration", false);
+        cbg.add(javawsdl);
+        getContentPane().add(javawsdl);
+
+        butOK = new JButton("OK");
+        butOK.addActionListener(this);
+        setResizable(false);
+        getContentPane().add(butOK);
+
+        butCancle = new JButton("Cancel");
+        butCancle.addActionListener(this);
+        getContentPane().add(butCancle);
+
+        imglbl = new LogoPage();
+        getContentPane().add(imglbl);
+        setVisible(true);
+//        setBackground(Color.white);
+//        getContentPane().setBackground(Color.white);
+        // setSize(getPreferredSize());
+    }
+
+
+    public void showUI(){
+        pack();
+        show();
+    }
+    public static void main(String args[]) {
+        Axi2PluginPage window = new Axi2PluginPage();
+        window.showUI();
+//        window.setTitle("Axi2PluginPage");
+//        window.pack();
+//        window.show();
+    }
+
+    public void actionPerformed(ActionEvent e) {
+        Object obj = e.getSource();
+        if(obj == butCancle){
+            this.hide();
+            setVisible(false);
+        } else if(obj == butOK){
+            this.hide();
+            setVisible(false);
+            if(javawsdl.isSelected()){
+                org.apache.axis2.tools.idea.Window win = new org.apache.axis2.tools.idea.Window();
+                win.showUI();
+            }   else {
+                MainFrame window = new MainFrame();
+                window.setTitle("Service Rchive creation");
+                window.show();
+            }
+        }
+
+    }
+}
+
+class Axi2PluginPageLayout implements LayoutManager {
+
+    public Axi2PluginPageLayout() {
+    }
+
+    public void addLayoutComponent(String name, Component comp) {
+    }
+
+    public void removeLayoutComponent(Component comp) {
+    }
+
+    public Dimension preferredLayoutSize(Container parent) {
+        Dimension dim = new Dimension(0, 0);
+
+        Insets insets = parent.getInsets();
+        dim.width = 320 + insets.left + insets.right;
+        dim.height = 240 + insets.top + insets.bottom;
+
+        return dim;
+    }
+
+    public Dimension minimumLayoutSize(Container parent) {
+        return  new Dimension(0, 0);
+    }
+
+    public void layoutContainer(Container parent) {
+        Insets insets = parent.getInsets();
+        Component c;
+        c = parent.getComponent(0);
+        if (c.isVisible()) {c.setBounds(insets.left+24,insets.top+104,208,24);}
+        c = parent.getComponent(1);
+        if (c.isVisible()) {c.setBounds(insets.left+24,insets.top+136,208,24);}
+        c = parent.getComponent(2);
+        if (c.isVisible()) {c.setBounds(insets.left+130,insets.top+200,80,24);}
+        c = parent.getComponent(3);
+        if (c.isVisible()) {c.setBounds(insets.left+215,insets.top+200,80,24);}
+        c = parent.getComponent(4);
+        if (c.isVisible()) {c.setBounds(insets.left,insets.top,320,80);}
+    }
+}

Added: webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/BottomPanel.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/BottomPanel.java?rev=291260&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/BottomPanel.java (added)
+++ webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/BottomPanel.java Sat Sep 24 00:51:20 2005
@@ -0,0 +1,159 @@
+package org.apache.idaeplugin.frames;
+
+import org.apache.idaeplugin.bean.ObjectKeeper;
+import org.apache.idaeplugin.bean.ArchiveBean;
+
+import javax.swing.*;
+import java.awt.*;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Deepal Jayasinghe
+ * Date: Sep 18, 2005
+ * Time: 12:01:58 PM
+ */
+public class BottomPanel extends JPanel implements ActionListener {
+    JButton butBack;
+    JButton butNext;
+    JButton btnFinsh;
+    JButton btnCanclel;
+    MainFrame parent;
+    private ArchiveBean bean;
+
+    private JPanel currentPanel = null;
+
+    public BottomPanel(JPanel currPanel, MainFrame parent,ArchiveBean bean) {
+        BottomPanelLayout customLayout = new BottomPanelLayout();
+
+        setFont(new Font("Helvetica", Font.PLAIN, 12));
+        setLayout(customLayout);
+        this.parent = parent;
+        this.bean = bean;
+
+        butBack = new JButton("< Back");
+        add(butBack);
+        butBack.addActionListener(this);
+
+        butNext = new JButton("Next >");
+        butNext.setEnabled(false);
+        add(butNext);
+        butNext.addActionListener(this);
+
+        btnFinsh = new JButton("Finish");
+        btnFinsh.setEnabled(false);
+        add(btnFinsh);
+        btnFinsh.addActionListener(this);
+
+        btnCanclel = new JButton("Cancel");
+        add(btnCanclel);
+        btnCanclel.addActionListener(this);
+
+        this.currentPanel = currPanel;
+
+        if (((ObjectKeeper) currentPanel).getPrivious() == null) {
+            butBack.setEnabled(false);
+        }
+        setSize(getPreferredSize());
+    }
+
+    public void setEnable(boolean back, boolean next, boolean finish, boolean cancel) {
+        butBack.setEnabled(back);
+        butNext.setEnabled(next);
+        btnFinsh.setEnabled(finish);
+        btnCanclel.setEnabled(cancel);
+    }
+
+    public void actionPerformed(ActionEvent e) {
+        Object obj = e.getSource();
+        if (obj == btnCanclel) {
+            parent.setVisible(false);
+        }
+        if (obj == butNext) {
+            ((ObjectKeeper)currentPanel).fillBean(bean);
+            currentPanel =((ObjectKeeper)currentPanel).getNext();
+            parent.Next(currentPanel);
+            if(currentPanel instanceof DescriptorFile){
+                parent.setEnable(false,true,false,true);
+            }
+        } else if (obj == btnFinsh){
+            ((ObjectKeeper)currentPanel).fillBean(bean);
+            bean.finsh();
+
+            JOptionPane.showMessageDialog(parent, "Service creation successful!",
+                    "Axis2 Service creation", JOptionPane.INFORMATION_MESSAGE);
+            parent.setVisible(false);
+
+        } else if(obj == butBack){
+            currentPanel =((ObjectKeeper)currentPanel).getPrivious();
+            parent.Back(currentPanel);
+        }
+    }
+}
+
+class BottomPanelLayout implements LayoutManager {
+
+    public BottomPanelLayout() {
+    }
+
+    public void addLayoutComponent(String name, Component comp) {
+    }
+
+    public void removeLayoutComponent(Component comp) {
+    }
+
+    public Dimension preferredLayoutSize(Container parent) {
+        Dimension dim = new Dimension(0, 0);
+
+        Insets insets = parent.getInsets();
+        dim.width = 606 + insets.left + insets.right;
+        dim.height = 64 + insets.top + insets.bottom;
+
+        return dim;
+    }
+
+    public Dimension minimumLayoutSize(Container parent) {
+        Dimension dim = new Dimension(0, 0);
+        return dim;
+    }
+
+    public void layoutContainer(Container parent) {
+        Insets insets = parent.getInsets();
+
+        Component c;
+        c = parent.getComponent(0);
+        if (c.isVisible()) {
+            c.setBounds(insets.left + 176, insets.top + 24, 80, 24);
+        }
+        c = parent.getComponent(1);
+        if (c.isVisible()) {
+            c.setBounds(insets.left + 260, insets.top + 24, 80, 24);
+        }
+        c = parent.getComponent(2);
+        if (c.isVisible()) {
+            c.setBounds(insets.left + 344, insets.top + 24, 80, 24);
+        }
+        c = parent.getComponent(3);
+        if (c.isVisible()) {
+            c.setBounds(insets.left + 426, insets.top + 24, 80, 24);
+        }
+    }
+}
+

Added: webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/ClassSelctionPage.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/ClassSelctionPage.java?rev=291260&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/ClassSelctionPage.java (added)
+++ webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/ClassSelctionPage.java Sat Sep 24 00:51:20 2005
@@ -0,0 +1,124 @@
+package org.apache.idaeplugin.frames;
+
+import org.apache.idaeplugin.bean.ObjectKeeper;
+import org.apache.idaeplugin.bean.ArchiveBean;
+
+import javax.swing.*;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+import java.awt.*;
+import java.io.File;
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Deepal Jayasinghe
+ * Date: Sep 22, 2005
+ * Time: 5:18:26 PM
+ */
+public class ClassSelctionPage extends JPanel implements ObjectKeeper, ActionListener {
+
+    protected JLabel lblClass;
+    protected JTextField txtClassDir;
+    protected JButton butSelect;
+
+    private JPanel previous;
+
+    File file;
+    Insets insets;
+    MainFrame parent;
+//    protected SelectPanel selectPanel;
+
+
+    public ClassSelctionPage(MainFrame parent) {
+        this.parent = parent;
+
+        setFont(new Font("Helvetica", Font.PLAIN, 12));
+        this.setLayout(null);
+        insets = parent.getInsets();
+
+        lblClass = new JLabel("Select Classes");
+        add(lblClass);
+        lblClass.setBounds(insets.left + 8, insets.top + 24, 120, 24);
+
+        txtClassDir = new JTextField("");
+        add(txtClassDir);
+        txtClassDir.setBounds(insets.left + 136, insets.top + 24, 336, 24);
+
+        butSelect = new JButton(" ... ");
+        add(butSelect);
+        butSelect.addActionListener(this);
+        butSelect.setBounds(insets.left + 480, insets.top + 24, 56, 24);
+        setSize(getPreferredSize());
+//        this.parent.setEnable(true, false, false, true);
+//        this.parent.reShow();
+    }
+
+    public void fillBean(ArchiveBean bean) {
+        bean.setClassLocation(file);
+    }
+
+    //to keep a refernce to next panel
+    public void setNext(JPanel next) {
+    }
+
+    public JPanel getNext() {
+        ResourceChooser res = new ResourceChooser(parent);
+        res.setPrivious(this);
+        return  res;
+//        return selectPanel;
+    }
+
+    //to keep a refernce to previous panel
+    public void setPrivious(JPanel privious) {
+        this.previous = privious;
+    }
+
+    public JPanel getPrivious() {
+        return this.previous;
+    }
+
+
+    public String getTopLable() {
+        return "Class location selection";
+    }
+
+    public String getLable() {
+        return " Select the location of service classes directory";
+    }
+
+    public void actionPerformed(ActionEvent e) {
+        Object obj = e.getSource();
+        if (obj == butSelect) {
+            parent.fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
+            int returnVal = parent.fc.showOpenDialog(this);
+            if (returnVal == JFileChooser.APPROVE_OPTION) {
+                file = parent.fc.getSelectedFile();
+                parent.fc.setCurrentDirectory(file);
+                txtClassDir.setText(file.getAbsolutePath());
+                parent.setEnable(false, true, false, true);
+//                selectPanel = new SelectPanel(parent,file);
+//                selectPanel.setPrivious(this);
+            } else {
+                txtClassDir.setText("No File");
+                parent.setEnable(true, false, false, true);
+            }
+        }
+    }
+}
+

Added: webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/DescriptorFile.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/DescriptorFile.java?rev=291260&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/DescriptorFile.java (added)
+++ webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/DescriptorFile.java Sat Sep 24 00:51:20 2005
@@ -0,0 +1,128 @@
+package org.apache.idaeplugin.frames;
+
+import org.apache.idaeplugin.bean.ObjectKeeper;
+import org.apache.idaeplugin.bean.ArchiveBean;
+import org.apache.idaeplugin.ParameterDialog;
+import org.apache.idaeplugin.ModuleDialog;
+
+import javax.swing.*;
+import java.awt.event.*;
+import java.awt.*;
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Deepal Jayasinghe
+ * Date: Sep 22, 2005
+ * Time: 11:42:16 PM
+ */
+public class DescriptorFile extends JPanel implements ObjectKeeper, ActionListener  {
+
+    protected JTextArea desArea;
+    protected JButton butaddpara;
+    protected JButton addModuleRef;
+    protected MainFrame parent;
+    protected Insets insets;
+    protected JScrollPane sp;
+
+    protected ParameterDialog pradialog;
+    protected ModuleDialog mdouledialog;
+    private JPanel previous;
+
+    public DescriptorFile(MainFrame parent, String XML) {
+        this.parent = parent;
+
+        setFont(new Font("Helvetica", Font.PLAIN, 12));
+        this.setLayout(null);
+        insets = parent.getInsets();
+
+        desArea = new JTextArea(XML);
+        sp = new JScrollPane(desArea);
+        sp.setAutoscrolls(true);
+        add(sp);
+        sp.setBounds(insets.left + 8, insets.top + 26, 560, 190);
+
+        butaddpara = new JButton("+Parameter ");
+        add(butaddpara);
+        butaddpara.addActionListener(this);
+        butaddpara.setBounds(insets.left + 10, insets.top + 2, 120, 20);
+
+        addModuleRef = new JButton("+ModuleRef ");
+        add(addModuleRef);
+        addModuleRef.addActionListener(this);
+        addModuleRef.setBounds(insets.left + 135, insets.top + 2, 120, 20);
+
+        pradialog = new ParameterDialog();
+        mdouledialog = new ModuleDialog();
+        setSize(getPreferredSize());
+
+
+    }
+
+
+    public void fillBean(ArchiveBean bean) {
+        bean.setServiceXML(desArea.getText());
+    }
+
+    //to keep a refernce to next panel
+    public void setNext(JPanel next) {
+        //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public JPanel getNext() {
+        OutPage out = new OutPage(parent);
+        out.setPrivious(this);
+        return out;
+//        ResourceChooser rs =   new ResourceChooser(parent);
+//        rs.setPrivious(this);
+//        return rs ;
+    }
+
+    //to keep a refernce to previous panel
+    public void setPrivious(JPanel privious) {
+        this.previous =privious;
+    }
+
+    public JPanel getPrivious() {
+        return this.previous;
+    }
+
+    public void actionPerformed(ActionEvent e) {
+        Object obj = e.getSource();
+        if(obj == butaddpara){
+            String str = "";
+            int cusrpos =  desArea.getCaretPosition();
+            pradialog.showDialog(str,desArea,cusrpos);
+            pradialog.hideForm();
+        }  else if(obj == addModuleRef){
+            String str = "";
+            int cusrpos =  desArea.getCaretPosition();
+            mdouledialog.showDialog(str,desArea,cusrpos);
+            mdouledialog.hideForm();
+        }
+    }
+
+    public String getTopLable() {
+        return "Edit service descriptor";
+    }
+
+    public String getLable() {
+        return "Edit description file add paramters and module references";
+    }
+
+}

Added: webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/FirstFrame.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/FirstFrame.java?rev=291260&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/FirstFrame.java (added)
+++ webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/FirstFrame.java Sat Sep 24 00:51:20 2005
@@ -0,0 +1,176 @@
+package org.apache.idaeplugin.frames;
+
+import org.apache.idaeplugin.bean.ObjectKeeper;
+import org.apache.idaeplugin.bean.ArchiveBean;
+
+import javax.swing.*;
+import java.awt.*;
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Deepal Jayasinghe
+ * Date: Sep 17, 2005
+ * Time: 10:09:08 PM
+ */
+public class FirstFrame extends JPanel implements ObjectKeeper {
+    JLabel lblArchivetype;
+    ButtonGroup cbgservoceType;
+    ButtonGroup cbggenerateserviceDesc;
+    JRadioButton radioSingle;
+    JRadioButton serviGroup;
+    JLabel label_1;
+    JRadioButton radioGenerate;
+    JRadioButton radihaveService;
+
+    private JPanel previous;
+    protected ClassSelctionPage classPage;
+    MainFrame parent;
+
+    public FirstFrame(MainFrame parent) {
+        this.parent = parent;
+        FirstFrameLayout customLayout = new FirstFrameLayout();
+        setFont(new Font("Helvetica", Font.PLAIN, 12));
+        setLayout(customLayout);
+
+        lblArchivetype = new JLabel("Select Archive Type");
+        add(lblArchivetype);
+
+        cbgservoceType = new ButtonGroup();
+        radioSingle = new JRadioButton("Single service Archive", true);
+        cbgservoceType.add(radioSingle);
+        add(radioSingle);
+
+        serviGroup = new JRadioButton("Service Group Archive", false);
+        cbgservoceType.add(serviGroup);
+        add(serviGroup);
+
+        label_1 = new JLabel("Do you want to generete services.xml");
+        add(label_1);
+
+        cbggenerateserviceDesc = new ButtonGroup();
+        radioGenerate = new JRadioButton("Generate services.xml", true);
+        cbggenerateserviceDesc.add(radioGenerate);
+        add(radioGenerate);
+
+        radihaveService = new JRadioButton("I alrady have services.xml", false);
+        cbggenerateserviceDesc.add(radihaveService);
+        add(radihaveService);
+
+
+        //creating next page
+//        classPage = new ClassSelctionPage(parent);
+//        classPage.setPrivious(this);
+        setSize(getPreferredSize());
+    }
+
+    public void fillBean(ArchiveBean bean) {
+        bean.setGeneretServiceDesc(radioGenerate.isSelected());
+        bean.setSingleService(radioSingle.isSelected());
+    }
+
+    //to keep a refernce to next panel
+    public void setNext(JPanel next) {
+//        this.next = next;
+    }
+
+    public JPanel getNext() {
+        boolean singleservice= radioSingle.isSelected();
+        boolean generateXML =radioGenerate.isSelected();
+        if(singleservice  && generateXML){
+            parent.singleService = true;
+            parent.generateServiceXML = true;
+            ClassSelctionPage classPage = new ClassSelctionPage(parent);
+            classPage.setPrivious(this);
+            return classPage ;
+        } else if (!generateXML){
+             parent.generateServiceXML = false;
+            XMLSelectionPage xml = new XMLSelectionPage(parent);
+            xml.setPrivious(this);
+            return xml;
+        } else {
+            parent.generateServiceXML = true;
+            parent.singleService = false;
+            ClassSelctionPage classPage = new ClassSelctionPage(parent);
+            classPage.setPrivious(this);
+            return classPage ;
+        }
+    }
+
+    //to keep a refernce to previous panel
+    public void setPrivious(JPanel privious) {
+        this.previous = privious;
+    }
+
+    public JPanel getPrivious() {
+        return this.previous ;
+    }
+
+    public String getTopLable() {
+        return "Service Type selection";
+    }
+
+    public String getLable() {
+        return "Welcome to Axis2 service archive generation" +
+                "select service type";
+    }
+}
+
+class FirstFrameLayout implements LayoutManager {
+
+    public FirstFrameLayout() {
+    }
+
+    public void addLayoutComponent(String name, Component comp) {
+    }
+
+    public void removeLayoutComponent(Component comp) {
+    }
+
+    public Dimension preferredLayoutSize(Container parent) {
+        Dimension dim = new Dimension(0, 0);
+
+        Insets insets = parent.getInsets();
+        dim.width = 494 + insets.left + insets.right;
+        dim.height = 281 + insets.top + insets.bottom;
+
+        return dim;
+    }
+
+    public Dimension minimumLayoutSize(Container parent) {
+        return new Dimension(0, 0);
+    }
+
+    public void layoutContainer(Container parent) {
+        Insets insets = parent.getInsets();
+
+        Component c;
+        c = parent.getComponent(0);
+        if (c.isVisible()) {c.setBounds(insets.left+8,insets.top+24,208,24);}
+        c = parent.getComponent(1);
+        if (c.isVisible()) {c.setBounds(insets.left+32,insets.top+56,184,24);}
+        c = parent.getComponent(2);
+        if (c.isVisible()) {c.setBounds(insets.left+32,insets.top+88,184,24);}
+        c = parent.getComponent(3);
+        if (c.isVisible()) {c.setBounds(insets.left+8,insets.top+136,250,24);}
+        c = parent.getComponent(4);
+        if (c.isVisible()) {c.setBounds(insets.left+32,insets.top+168,224,24);}
+        c = parent.getComponent(5);
+        if (c.isVisible()) {c.setBounds(insets.left+32,insets.top+200,224,16);}
+    }
+}

Added: webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/ImagePanel.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/ImagePanel.java?rev=291260&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/ImagePanel.java (added)
+++ webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/ImagePanel.java Sat Sep 24 00:51:20 2005
@@ -0,0 +1,102 @@
+package org.apache.idaeplugin.frames;
+
+import javax.swing.*;
+import java.awt.*;
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Deepal Jayasinghe
+ * Date: Sep 18, 2005
+ * Time: 8:50:16 PM
+ */
+public class ImagePanel extends JPanel {
+    JLabel lblImage;
+    JLabel labTop;
+    JLabel lblBottom;
+    ImageIcon apachelogo ;
+
+    public ImagePanel() {
+        ImageLayout customLayout = new ImageLayout();
+        setLayout(customLayout);
+
+        java.net.URL resource = ImagePanel.class.getResource("/icons/asf-feather.png");
+        apachelogo = new ImageIcon(resource);
+
+        lblImage = new JLabel(apachelogo);
+        add(lblImage);
+        lblImage.setBackground(Color.white);
+
+        labTop = new JLabel();
+        labTop.setBackground(Color.white);
+        add(labTop);
+        labTop.setFont(new Font("Helvetica", Font.BOLD, 12));
+
+        lblBottom = new JLabel();
+        add(lblBottom);
+        lblBottom.setBackground(Color.white);
+        lblBottom.setFont(new Font("Helvetica", Font.PLAIN, 10));
+
+        setSize(getPreferredSize());
+        this.setBackground(Color.white);
+    }
+
+    public void setCaptions(String lbl1 , String lbl2){
+        labTop.setText("  " + lbl1);
+        lblBottom.setText("  " + lbl2);
+    }
+}
+
+class ImageLayout implements LayoutManager {
+
+    public ImageLayout() {
+    }
+
+    public void addLayoutComponent(String name, Component comp) {
+    }
+
+    public void removeLayoutComponent(Component comp) {
+    }
+
+    public Dimension preferredLayoutSize(Container parent) {
+        Dimension dim = new Dimension(0, 0);
+
+        Insets insets = parent.getInsets();
+        dim.width = 535 + insets.left + insets.right;
+        dim.height = 77 + insets.top + insets.bottom;
+
+        return dim;
+    }
+
+    public Dimension minimumLayoutSize(Container parent) {
+        Dimension dim = new Dimension(0, 0);
+        return dim;
+    }
+
+    public void layoutContainer(Container parent) {
+        Insets insets = parent.getInsets();
+
+        Component c;
+        c = parent.getComponent(0);
+        if (c.isVisible()) {c.setBounds(insets.left+368,insets.top+0,168,80);}
+        c = parent.getComponent(1);
+        if (c.isVisible()) {c.setBounds(insets.left+0,insets.top+0,368,40);}
+        c = parent.getComponent(2);
+        if (c.isVisible()) {c.setBounds(insets.left+0,insets.top+40,368,40);}
+    }
+}

Added: webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/LogoPage.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/LogoPage.java?rev=291260&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/LogoPage.java (added)
+++ webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/LogoPage.java Sat Sep 24 00:51:20 2005
@@ -0,0 +1,79 @@
+package org.apache.idaeplugin.frames;
+
+import javax.swing.*;
+import java.awt.*;
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Deepal Jayasinghe
+ * Date: Sep 24, 2005
+ * Time: 11:04:25 AM
+ */
+public class LogoPage extends JPanel {
+    JLabel imagelbl;
+    ImageIcon apachelogo ;
+
+    public LogoPage() {
+        LogoPageLayout customLayout = new LogoPageLayout();
+        setFont(new Font("Helvetica", Font.PLAIN, 12));
+        setLayout(customLayout);
+
+        java.net.URL resource = LogoPage.class.getResource("/icons/asf-feather.png");
+        apachelogo = new ImageIcon(resource);
+        imagelbl = new JLabel(apachelogo);
+        add(imagelbl);
+        setSize(getPreferredSize());
+        setBackground(Color.white);
+    }
+}
+
+class LogoPageLayout implements LayoutManager {
+
+    public LogoPageLayout() {
+    }
+
+    public void addLayoutComponent(String name, Component comp) {
+    }
+
+    public void removeLayoutComponent(Component comp) {
+    }
+
+    public Dimension preferredLayoutSize(Container parent) {
+        Dimension dim = new Dimension(0, 0);
+
+        Insets insets = parent.getInsets();
+        dim.width = 320 + insets.left + insets.right;
+        dim.height = 76 + insets.top + insets.bottom;
+
+        return dim;
+    }
+
+    public Dimension minimumLayoutSize(Container parent) {
+        Dimension dim = new Dimension(0, 0);
+        return dim;
+    }
+
+    public void layoutContainer(Container parent) {
+        Insets insets = parent.getInsets();
+
+        Component c;
+        c = parent.getComponent(0);
+        if (c.isVisible()) {c.setBounds(insets.left+8,insets.top+8,304,64);}
+    }
+}

Added: webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/MainFrame.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/MainFrame.java?rev=291260&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/MainFrame.java (added)
+++ webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/MainFrame.java Sat Sep 24 00:51:20 2005
@@ -0,0 +1,172 @@
+package org.apache.idaeplugin.frames;
+
+import org.apache.idaeplugin.bean.ArchiveBean;
+import org.apache.idaeplugin.bean.ObjectKeeper;
+
+import javax.swing.*;
+import java.awt.*;
+import java.awt.event.WindowEvent;
+import java.awt.event.WindowAdapter;
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Deepal Jayasinghe
+ * Date: Sep 18, 2005
+ * Time: 11:45:58 AM
+ */
+public class MainFrame extends JFrame {
+
+    protected ImagePanel topPanel;
+    protected BottomPanel bottomPanel ;
+    public boolean singleService;
+    public boolean generateServiceXML;
+    //  protected JPanel firstpanel ;
+//    protected SelectPanel slectpanel;
+    protected JPanel currentpanle;
+    public String fileSeparator = System.getProperty("file.separator");
+    public final JFileChooser fc = new JFileChooser();
+    Insets insets;
+    ArchiveBean bean;
+
+    public MainFrame() {
+//        setSize(610,400);
+        setBounds(200,200,600,420);
+//        getContentPane().setSize(600,400);
+        getContentPane().setFont(new Font("Helvetica", Font.PLAIN, 12));
+        getContentPane().setLayout(null);
+        getContentPane().setBounds(200,200,600,420);
+        bean = new ArchiveBean();
+
+        topPanel = new ImagePanel();
+        getContentPane().add(topPanel);
+        topPanel.setCaptions("Service Type selection","Welcome to Axis2 service archive generation" +
+                "select service type");
+
+        currentpanle = new FirstFrame(this);
+        getContentPane().add(currentpanle);
+
+
+        bottomPanel = new BottomPanel(currentpanle,this,bean);
+        getContentPane().add(bottomPanel);
+        bottomPanel.setEnable(false,true,false,true);
+
+        insets = getInsets();
+        topPanel.setBounds(insets.left,insets.top,608,80);
+        currentpanle.setBounds(insets.left,insets.top+80,608,260);
+        bottomPanel.setBounds(insets.left,insets.top+328,608,60);
+
+
+//        slectpanel = new SelectPanel(this);
+//        getContentPane().add(slectpanel);
+//        slectpanel.setPrivious(firstpanel);
+//        slectpanel.setVisible(false);
+//        ((ObjectKeeper)firstpanel).setNext(slectpanel);
+
+        setSize(getPreferredSize());
+        setResizable(false);
+    }
+
+    public void setEnable(boolean back, boolean next, boolean finish, boolean cancel) {
+        if(currentpanle instanceof FirstFrame){
+            bottomPanel.setEnable(false,next,finish,cancel);
+        } else{
+            bottomPanel.setEnable(true,next,finish,cancel);
+        }
+
+    }
+
+    public void Next(JPanel current) {
+        currentpanle.setVisible(false);
+        try {
+            remove(currentpanle);
+        } catch (Exception e) {
+            System.out.println("");
+        }
+        getContentPane().add(current);
+        current.setBounds(insets.left,insets.top+80,608,260);
+        currentpanle = current;
+        setEnable(true,false,false,true);
+        reShow();
+    }
+
+    public void Back(JPanel current) {
+        currentpanle.setVisible(false);
+        try {
+            remove(currentpanle);
+        } catch (Exception e) {
+            System.out.println("");
+        }
+        getContentPane().add(current);
+        current.setBounds(insets.left,insets.top+80,608,260);
+        currentpanle = current;
+        currentpanle.setVisible(true);
+        setEnable(true,true,false,true);
+        reShow();
+    }
+    public void reShow(){
+        ObjectKeeper keeper = (ObjectKeeper)currentpanle;
+        topPanel.setCaptions(keeper.getTopLable(),keeper.getLable());
+//        this.repaint();
+        this.show();
+    }
+
+//    public void setButStatus(boolean ){
+//
+//    }
+}
+
+class MainFrameLayout implements LayoutManager {
+
+    public MainFrameLayout() {
+    }
+
+    public void addLayoutComponent(String name, Component comp) {
+    }
+
+    public void removeLayoutComponent(Component comp) {
+    }
+
+    public Dimension preferredLayoutSize(Container parent) {
+        Dimension dim = new Dimension(0, 0);
+
+        Insets insets = parent.getInsets();
+        dim.width = 608 + insets.left + insets.right;
+        dim.height = 400 + insets.top + insets.bottom;
+
+        return dim;
+    }
+
+    public Dimension minimumLayoutSize(Container parent) {
+        return new Dimension(0, 0);
+    }
+
+    public void layoutContainer(Container parent) {
+        Insets insets = parent.getInsets();
+
+        Component c;
+        c = parent.getComponent(0);
+        if (c.isVisible()) {c.setBounds(insets.left,insets.top,608,80);}
+        c = parent.getComponent(1);
+        if (c.isVisible()) {c.setBounds(insets.left,insets.top+80,608,260);}
+        c = parent.getComponent(2);
+        if (c.isVisible()) {c.setBounds(insets.left,insets.top+328,608,60);}
+//        c = parent.getComponent(3);
+//        if (c.isVisible()) {c.setBounds(insets.left+0,insets.top+80,608,260);}
+    }
+}

Added: webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/OutPage.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/OutPage.java?rev=291260&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/OutPage.java (added)
+++ webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/OutPage.java Sat Sep 24 00:51:20 2005
@@ -0,0 +1,163 @@
+package org.apache.idaeplugin.frames;
+
+import org.apache.idaeplugin.bean.ObjectKeeper;
+import org.apache.idaeplugin.bean.ArchiveBean;
+
+import javax.swing.*;
+import java.awt.*;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+import java.io.File;
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Deepal Jayasinghe
+ * Date: Sep 23, 2005
+ * Time: 5:12:13 PM
+ */
+public class OutPage extends JPanel implements ObjectKeeper, ActionListener {
+    JLabel lblout;
+    JTextField txtoutput;
+    JButton butselect;
+    JLabel lblname;
+    JTextField txtjarName;
+
+    public final JFileChooser fc = new JFileChooser();
+    MainFrame parent;
+    private JPanel previous;
+
+
+    public OutPage( MainFrame parent) {
+        this.parent = parent;
+        OutPageLayout customLayout = new OutPageLayout();
+
+        setFont(new Font("Helvetica", Font.PLAIN, 12));
+        setLayout(customLayout);
+
+        lblout = new JLabel("Select Output location");
+        add(lblout);
+
+        txtoutput = new JTextField(".");
+        add(txtoutput);
+
+        butselect = new JButton("Select");
+        butselect.addActionListener(this);
+        add(butselect);
+
+        lblname = new JLabel("Archive name");
+        add(lblname);
+
+        txtjarName = new JTextField("MyArchive");
+        add(txtjarName);
+
+        setSize(getPreferredSize());
+    }
+
+    public void fillBean(ArchiveBean bean) {
+        bean.setOutPath(txtoutput.getText().trim());
+        bean.setArchiveName(txtjarName.getText().trim());
+    }
+
+    //to keep a refernce to next panel
+    public void setNext(JPanel next) {
+
+    }
+
+    public JPanel getNext() {
+        return null;
+    }
+
+    //to keep a refernce to previous panel
+    public void setPrivious(JPanel privious) {
+        this.previous = privious;
+    }
+
+    public JPanel getPrivious() {
+        return this.previous; 
+    }
+
+    public String getTopLable() {
+           return "Output location selection";
+       }
+
+       public String getLable() {
+           return "Select output location and archive name";  
+       }
+
+
+    public void actionPerformed(ActionEvent e) {
+        Object obj = e.getSource();
+        if(obj == butselect){
+            fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
+            int returnVal = fc.showOpenDialog(this);
+            if (returnVal == JFileChooser.APPROVE_OPTION) {
+                fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
+                File newfile = fc.getSelectedFile();
+                txtoutput.setText(newfile.getAbsolutePath());
+            }  else {
+                txtoutput.setText("");
+            }
+            parent.setEnable(false,false,true,true);
+        }
+    }
+}
+
+class OutPageLayout implements LayoutManager {
+
+    public OutPageLayout() {
+    }
+
+    public void addLayoutComponent(String name, Component comp) {
+    }
+
+    public void removeLayoutComponent(Component comp) {
+    }
+
+    public Dimension preferredLayoutSize(Container parent) {
+        Dimension dim = new Dimension(0, 0);
+
+        Insets insets = parent.getInsets();
+        dim.width = 594 + insets.left + insets.right;
+        dim.height = 240 + insets.top + insets.bottom;
+
+        return dim;
+    }
+
+    public Dimension minimumLayoutSize(Container parent) {
+        Dimension dim = new Dimension(0, 0);
+        return dim;
+    }
+
+    public void layoutContainer(Container parent) {
+        Insets insets = parent.getInsets();
+
+        Component c;
+        c = parent.getComponent(0);
+        if (c.isVisible()) {c.setBounds(insets.left+8,insets.top+16,152,24);}
+        c = parent.getComponent(1);
+        if (c.isVisible()) {c.setBounds(insets.left+168,insets.top+16,312,24);}
+        c = parent.getComponent(2);
+        if (c.isVisible()) {c.setBounds(insets.left+488,insets.top+16,72,24);}
+        c = parent.getComponent(3);
+        if (c.isVisible()) {c.setBounds(insets.left+8,insets.top+56,152,24);}
+        c = parent.getComponent(4);
+        if (c.isVisible()) {c.setBounds(insets.left+168,insets.top+56,312,24);}
+    }
+}
+

Added: webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/ResourceChooser.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/ResourceChooser.java?rev=291260&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/ResourceChooser.java (added)
+++ webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/ResourceChooser.java Sat Sep 24 00:51:20 2005
@@ -0,0 +1,279 @@
+package org.apache.idaeplugin.frames;
+
+import org.apache.idaeplugin.bean.ObjectKeeper;
+import org.apache.idaeplugin.bean.ArchiveBean;
+
+import javax.swing.*;
+import java.awt.*;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+import java.io.File;
+import java.util.Enumeration;
+import java.util.ArrayList;
+import java.net.URL;
+import java.net.URLClassLoader;
+import java.net.MalformedURLException;
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Deepal Jayasinghe
+ * Date: Sep 23, 2005
+ * Time: 4:30:18 PM
+ */
+public class ResourceChooser extends JPanel implements ObjectKeeper, ActionListener {
+
+    JLabel libLbl;
+    JTextField txtLibs;
+    JButton butLoad;
+    JButton butselect;
+    JList lisLibs;
+    JScrollPane sp_lisLibs;
+    JLabel lblwsdl;
+    JTextField txtwsdl;
+    JButton butSelectwsdl;
+    JButton butaddwsdl;
+    JList listwsdl;
+    JScrollPane sp_listwsdl;
+    JButton butDone;
+    private DefaultListModel listModellibs;
+    private DefaultListModel listModellwsdls;
+    private JPanel previous;
+
+    public final JFileChooser fc = new JFileChooser();
+    MainFrame parent;
+
+    public ResourceChooser(MainFrame parent) {
+        this.parent = parent;
+        ResourceChooserLayout customLayout = new ResourceChooserLayout();
+
+        setFont(new Font("Helvetica", Font.PLAIN, 12));
+        setLayout(customLayout);
+
+        libLbl = new JLabel("Select Lib files : ");
+        add(libLbl);
+
+        txtLibs = new JTextField("");
+        add(txtLibs);
+
+        butLoad = new JButton("Add");
+        butLoad.addActionListener(this);
+        add(butLoad);
+
+        butselect = new JButton("...");
+        butselect.addActionListener(this);
+        add(butselect);
+
+        listModellibs = new DefaultListModel();
+        lisLibs = new JList(listModellibs);
+        sp_lisLibs = new JScrollPane(lisLibs);
+        add(sp_lisLibs);
+
+        lblwsdl = new JLabel("Select WSDLs : ");
+        add(lblwsdl);
+
+        txtwsdl = new JTextField("");
+        add(txtwsdl);
+
+        butSelectwsdl = new JButton("...");
+        butSelectwsdl.addActionListener(this);
+        add(butSelectwsdl);
+
+        butaddwsdl = new JButton("Add");
+        butaddwsdl.addActionListener(this);
+        add(butaddwsdl);
+
+        listModellwsdls = new DefaultListModel();
+        listwsdl = new JList(listModellwsdls);
+        sp_listwsdl = new JScrollPane(listwsdl);
+        add(sp_listwsdl);
+
+        butDone = new JButton("Done");
+        butDone.addActionListener(this);
+        add(butDone);
+        setSize(getPreferredSize());
+
+    }
+
+    public void actionPerformed(ActionEvent e) {
+        Object obj = e.getSource();
+        if(obj == butLoad ) {
+            listModellibs.addElement(txtLibs.getText());
+        } else if (obj == butselect) {
+            fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
+            int returnVal = fc.showOpenDialog(this);
+            if (returnVal == JFileChooser.APPROVE_OPTION) {
+                fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
+                File newfile = fc.getSelectedFile();
+                txtLibs.setText(newfile.getAbsolutePath());
+            }  else {
+                txtLibs.setText("");
+            }
+        } else if(obj == butSelectwsdl){
+            fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
+            int returnVal = fc.showOpenDialog(this);
+            if (returnVal == JFileChooser.APPROVE_OPTION) {
+                fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
+                File newfile = fc.getSelectedFile();
+                txtwsdl.setText(newfile.getAbsolutePath());
+            }  else {
+                txtwsdl.setText("");
+            }
+        } else if(obj ==butaddwsdl ){
+            listModellwsdls.addElement(txtwsdl.getText());
+        } else if (obj == butDone){
+            parent.setEnable(false,true,false,true);
+        }
+    }
+
+    public void fillBean(ArchiveBean bean) {
+
+        Enumeration enum =listModellibs.elements();
+        ArrayList libs = new ArrayList();
+        URL urllist [] = new URL[listModellibs.size() +1];
+        int count = 0;
+        while (enum.hasMoreElements()) {
+            String s = (String) enum.nextElement();
+            File file = new File(s);
+            if(file.exists()){
+                try {
+                    urllist[count] = file.toURL();
+                } catch (MalformedURLException e) {
+                    System.out.println("Error");
+                }
+            }
+            libs.add(s);
+            count ++;
+        }
+        try {
+            urllist[count] = bean.getClassLocation().toURL();
+        } catch (MalformedURLException e) {
+            
+        }
+        ClassLoader cls = new URLClassLoader(urllist,ResourceChooser.class.getClassLoader());
+        bean.setClassLoader(cls);
+//        Enumeration enum =listModellibs.elements();
+//        ArrayList libs = new ArrayList();
+//        while (enum.hasMoreElements()) {
+//            String s = (String) enum.nextElement();
+//            libs.add(s);
+//        }
+        bean.setLibs(libs);
+        enum =listModellwsdls.elements();
+        ArrayList wsdls = new ArrayList();
+        while (enum.hasMoreElements()) {
+            String s = (String) enum.nextElement();
+            wsdls.add(s);
+        }
+        bean.setWsdls(wsdls);
+    }
+
+
+    public String getTopLable() {
+        return "Resource Selection";
+    }
+
+    public String getLable() {
+        return "Select service specific lib and service WSDLs";
+    }
+
+    //to keep a refernce to next panel
+    public void setNext(JPanel next) {
+
+    }
+
+    public JPanel getNext() {
+        if(parent.generateServiceXML){
+            SelectPanel sp = new SelectPanel(parent,parent.bean.getClassLocation());
+            sp.setPrivious(this);
+            return sp;
+        } else {
+            DescriptorFile dis = new DescriptorFile(parent,parent.bean.getServiceXML());
+            dis.setPrivious(this);
+            return dis;
+        }
+//        OutPage op = new OutPage(parent);
+//        op.setPrivious(this);
+//        return op;
+    }
+
+    //to keep a refernce to previous panel
+    public void setPrivious(JPanel privious) {
+        this.previous = privious;
+    }
+
+    public JPanel getPrivious() {
+        return  this.previous;
+    }
+}
+
+class ResourceChooserLayout implements LayoutManager {
+
+    public ResourceChooserLayout() {
+    }
+
+    public void addLayoutComponent(String name, Component comp) {
+    }
+
+    public void removeLayoutComponent(Component comp) {
+    }
+
+    public Dimension preferredLayoutSize(Container parent) {
+        Dimension dim = new Dimension(0, 0);
+
+        Insets insets = parent.getInsets();
+        dim.width = 587 + insets.left + insets.right;
+        dim.height = 278 + insets.top + insets.bottom;
+
+        return dim;
+    }
+
+    public Dimension minimumLayoutSize(Container parent) {
+        Dimension dim = new Dimension(0, 0);
+        return dim;
+    }
+
+    public void layoutContainer(Container parent) {
+        Insets insets = parent.getInsets();
+
+        Component c;
+        c = parent.getComponent(0);
+        if (c.isVisible()) {c.setBounds(insets.left+16,insets.top+16,128,24);}
+        c = parent.getComponent(1);
+        if (c.isVisible()) {c.setBounds(insets.left+152,insets.top+16,312,24);}
+        c = parent.getComponent(2);
+        if (c.isVisible()) {c.setBounds(insets.left+496,insets.top+16,72,24);}
+        c = parent.getComponent(3);
+        if (c.isVisible()) {c.setBounds(insets.left+472,insets.top+16,16,24);}
+        c = parent.getComponent(4);
+        if (c.isVisible()) {c.setBounds(insets.left+152,insets.top+48,312,72);}
+        c = parent.getComponent(5);
+        if (c.isVisible()) {c.setBounds(insets.left+16,insets.top+128,128,24);}
+        c = parent.getComponent(6);
+        if (c.isVisible()) {c.setBounds(insets.left+152,insets.top+128,312,24);}
+        c = parent.getComponent(7);
+        if (c.isVisible()) {c.setBounds(insets.left+472,insets.top+128,16,24);}
+        c = parent.getComponent(8);
+        if (c.isVisible()) {c.setBounds(insets.left+496,insets.top+128,72,24);}
+        c = parent.getComponent(9);
+        if (c.isVisible()) {c.setBounds(insets.left+152,insets.top+160,312,64);}
+        c = parent.getComponent(10);
+        if (c.isVisible()) {c.setBounds(insets.left+248,insets.top+225,72,24);}
+    }
+}
+

Added: webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/SelectPanel.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/SelectPanel.java?rev=291260&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/SelectPanel.java (added)
+++ webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/SelectPanel.java Sat Sep 24 00:51:20 2005
@@ -0,0 +1,303 @@
+package org.apache.idaeplugin.frames;
+
+import org.apache.idaeplugin.bean.ObjectKeeper;
+import org.apache.idaeplugin.bean.ArchiveBean;
+import org.apache.idaeplugin.bean.OprationObj;
+import org.apache.idaeplugin.bean.ServiceObj;
+import org.apache.idaeplugin.frames.table.ArchiveTableModel;
+
+import javax.swing.*;
+import java.awt.*;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+import java.io.File;
+import java.net.URLClassLoader;
+import java.net.URL;
+import java.net.MalformedURLException;
+import java.lang.reflect.Method;
+import java.util.HashMap;
+import java.util.ArrayList;
+import java.util.Iterator;
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Deepal Jayasinghe
+ * Date: Sep 18, 2005
+ * Time: 9:11:54 PM
+ */
+public class SelectPanel extends JPanel implements ObjectKeeper, ActionListener {
+
+    protected JLabel lblClass;
+    protected JLabel lblServiceNam;
+    protected JTextField txtClassDir;
+    protected JTextField txtServiceName;
+    protected JButton butSelect;
+    protected JButton butDone;
+    protected JButton load;
+    protected JScrollPane sp;
+    protected JLabel tablelbl;
+
+//    private JPanel next;
+    private JPanel previous;
+    protected File file;
+    protected Insets insets;
+    protected MainFrame parent;
+    protected String fileName;
+    protected int count = 1;
+    protected HashMap opeartions;
+    protected ArrayList servicelsit = new ArrayList();
+    protected DescriptorFile disfile;
+    protected String sgXMl;
+
+    public SelectPanel(MainFrame parent , File file ) {
+        this.parent = parent;
+        this.file =file;
+
+        setFont(new Font("Helvetica", Font.PLAIN, 12));
+        this.setLayout(null);
+
+        insets = parent.getInsets();
+
+        lblClass = new JLabel("Select Service Classes");
+        add(lblClass);
+        lblClass.setBounds(insets.left + 8, insets.top + 2, 150 , 24);
+
+        txtClassDir = new JTextField("");
+        add(txtClassDir);
+        txtClassDir.setBounds(insets.left + 150 , insets.top + 2, 336, 24);
+
+        butSelect = new JButton(" ... ");
+        add(butSelect);
+        butSelect.addActionListener(this);
+        butSelect.setBounds(insets.left + 487, insets.top + 2, 10, 24);
+
+
+        load = new JButton(" Load ");
+        add(load);
+        load.addActionListener(this);
+        load.setBounds(insets.left + 502, insets.top + 2, 70, 24);
+
+        butDone = new JButton("Done");
+        butDone.addActionListener(this);
+        add(butDone);
+        butDone.setBounds(insets.left + 250, insets.top + 185, 70, 24);
+        lblServiceNam = new JLabel("Service Name : ");
+        add(lblServiceNam);
+        lblServiceNam.setBounds(insets.left + 10, insets.top + 185, 100, 24);
+        txtServiceName = new JTextField("");
+        add(txtServiceName);
+        txtServiceName.setBounds(insets.left + 115, insets.top + 185, 120, 24);
+        butDone.setVisible(false);
+        lblServiceNam.setVisible(false);
+        txtServiceName.setVisible(false);
+        setSize(getPreferredSize());
+    }
+
+    public void fillBean(ArchiveBean bean) {
+        bean.setServiceXML(sgXMl);
+    }
+
+    //to keep a refernce to next panel
+    public void setNext(JPanel next) {
+        //no one call this
+    }
+
+    public JPanel getNext() {
+        return disfile;
+    }
+
+    //to keep a refernce to previous panel
+    public void setPrivious(JPanel privious) {
+        this.previous = privious;
+    }
+
+    public JPanel getPrivious() {
+        return this.previous;
+    }
+
+    public void actionPerformed(ActionEvent e) {
+        Object obj = e.getSource();
+        if(obj == butSelect){
+            parent.fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
+            int returnVal = parent.fc.showOpenDialog(this);
+            if (returnVal == JFileChooser.APPROVE_OPTION) {
+                File newfile = parent.fc.getSelectedFile();
+                String newFile =newfile.getPath();
+                int index = newFile.indexOf(file.getAbsolutePath().trim());
+                if(index >=0){
+                    int lastindex= file.getAbsolutePath().trim().length();
+                    newFile = newFile.substring(lastindex +1);
+                    char ch = parent.fileSeparator.toCharArray()[0];
+                    char newch= '.';
+                    int cindex = newFile.indexOf(ch);
+                    while(cindex >=0){
+                        newFile =   newFile.replace(ch,newch);
+                        cindex = newFile.indexOf(ch);
+                    }
+                    fileName = newFile;
+                    int classIndex = fileName.indexOf(".class");
+                    fileName = fileName.substring(0,classIndex);
+                    txtClassDir.setText(fileName);
+                }
+            }
+        } else if(obj == load){
+            if(file == null){
+                return;
+            }
+            try {
+                try {
+                    this.remove(sp);
+                    this.remove(tablelbl);
+                    butDone.setVisible(false);
+                    lblServiceNam.setVisible(false);
+                    txtServiceName.setVisible(false);
+                } catch (Exception e1) {
+//                    e1.printStackTrace();
+                }
+
+//                ClassLoader classLoader = new URLClassLoader(
+//                        new URL[]{file.toURL()},SelectPanel.class.getClassLoader());
+
+                ClassLoader classLoader = parent.bean.getClassLoader();
+                Class serCla= Class.forName(fileName,true,classLoader);
+                Method[] methods =  serCla.getDeclaredMethods();
+                opeartions = new HashMap();
+                if(methods.length >0){
+                    for (int i = 0; i < methods.length; i++) {
+                        Method method = methods[i];
+                        OprationObj Operationobj = new OprationObj(method.getName(),
+                                method.getReturnType().toString(),
+                                new Integer(method.getParameterTypes().length),new Boolean(true));
+                        opeartions.put(method.getName() ,Operationobj);
+                    }
+                }
+
+                ArchiveTableModel myModel = new ArchiveTableModel(opeartions);
+                JTable table = new JTable(myModel);
+                tablelbl = new JLabel("Select Operation you want to publish ") ;
+                add(tablelbl);
+                tablelbl.setBounds(insets.left + 10, insets.top + 45, 400, 24);
+
+                sp =new JScrollPane(table);
+                add(sp);
+                sp.setAutoscrolls(true);
+                sp.setBounds(insets.left + 10, insets.top + 75, 550, 100);
+                txtServiceName.setText("MyService" + count);
+                butDone.setVisible(true);
+                lblServiceNam.setVisible(true);
+                txtServiceName.setVisible(true);
+            }  catch (ClassNotFoundException e1) {
+                e1.printStackTrace();
+            }
+            parent.reShow();
+
+        } else if(obj == butDone){
+
+            ArrayList ops = new ArrayList();
+            Iterator opitr = opeartions.values().iterator();
+            while (opitr.hasNext()) {
+                OprationObj oprationObj = (OprationObj) opitr.next();
+                if(oprationObj.getSelect().booleanValue()){
+                    ops.add(oprationObj.getOpName());
+                }
+            }
+
+            ServiceObj service= new ServiceObj(txtServiceName.getText(),fileName,ops);
+            servicelsit.add(service);
+            if(!parent.singleService){
+                int valu = JOptionPane.showConfirmDialog(parent,"Do you want to add an another service to group","Service Archive",
+                        JOptionPane.YES_NO_OPTION);
+                if(valu == 0){
+                    txtClassDir.setText("");
+                    fileName = "";
+                    try {
+                        this.remove(sp);
+                        this.remove(tablelbl);
+                        butDone.setVisible(false);
+                        lblServiceNam.setVisible(false);
+                        txtServiceName.setVisible(false);
+                    } catch (Exception e1) {
+//                    e1.printStackTrace();
+                    }
+                    count ++;
+                    parent.reShow();
+                    this.repaint();
+                } else {
+                    parent.setEnable(false,true,false,true);
+                    sgXMl = "<serviceGroup>\n";
+                    for (int i = 0; i < servicelsit.size(); i++) {
+                        ServiceObj serviceObj = (ServiceObj) servicelsit.get(i);
+                        sgXMl = sgXMl + serviceObj.toString();
+                    }
+                    sgXMl = sgXMl + "</serviceGroup>";
+                    disfile = new DescriptorFile(parent,sgXMl);
+                    disfile.setPrivious(this);
+                }
+            } else {
+                parent.setEnable(false,true,false,true);
+                sgXMl = "<serviceGroup>\n";
+                for (int i = 0; i < servicelsit.size(); i++) {
+                    ServiceObj serviceObj = (ServiceObj) servicelsit.get(i);
+                    sgXMl = sgXMl + serviceObj.toString();
+                }
+                sgXMl = sgXMl + "</serviceGroup>";
+                disfile = new DescriptorFile(parent,sgXMl);
+                disfile.setPrivious(this);
+            }
+
+//            int valu = JOptionPane.showConfirmDialog(parent,"Do you want to add an another service to group","Service Archive",
+//                    JOptionPane.YES_NO_OPTION);
+//            if(valu == 0){
+//                txtClassDir.setText("");
+//                fileName = "";
+//                try {
+//                    this.remove(sp);
+//                    this.remove(tablelbl);
+//                    butDone.setVisible(false);
+//                    lblServiceNam.setVisible(false);
+//                    txtServiceName.setVisible(false);
+//                } catch (Exception e1) {
+////                    e1.printStackTrace();
+//                }
+//                count ++;
+//                parent.reShow();
+//                this.repaint();
+//            } else {
+//                parent.setEnable(false,true,false,true);
+//                sgXMl = "<serviceGroup>\n";
+//                for (int i = 0; i < servicelsit.size(); i++) {
+//                    ServiceObj serviceObj = (ServiceObj) servicelsit.get(i);
+//                    sgXMl = sgXMl + serviceObj.toString();
+//                }
+//                sgXMl = sgXMl + "</serviceGroup>";
+//                disfile = new DescriptorFile(parent,sgXMl);
+//                disfile.setPrivious(this);
+//            }
+        }
+    }
+
+    public String getTopLable() {
+        return "Service class and operation selection";
+    }
+
+    public String getLable() {
+        return "First select service class and load its method operations";
+    }
+}
+

Added: webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/XMLSelectionPage.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/XMLSelectionPage.java?rev=291260&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/XMLSelectionPage.java (added)
+++ webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/XMLSelectionPage.java Sat Sep 24 00:51:20 2005
@@ -0,0 +1,161 @@
+package org.apache.idaeplugin.frames;
+
+import org.apache.idaeplugin.bean.ObjectKeeper;
+import org.apache.idaeplugin.bean.ArchiveBean;
+
+import javax.swing.*;
+import java.awt.*;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+import java.io.*;
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Deepal Jayasinghe
+ * Date: Sep 23, 2005
+ * Time: 11:26:02 PM
+ */
+public class XMLSelectionPage extends JPanel  implements ObjectKeeper, ActionListener {
+    JLabel selectxml;
+    JTextField txtService;
+    JButton butSelect;
+
+    JLabel selctclass;
+    JTextField txtclass;
+    File file;
+    JButton bustSelectclss;
+    String value;
+    private JPanel previous;
+
+    protected MainFrame parent;
+    public XMLSelectionPage(MainFrame parent) {
+        Insets insets = parent.getInsets();
+        this.parent = parent;
+        setFont(new Font("Helvetica", Font.PLAIN, 12));
+        setLayout(null);
+
+        selectxml = new JLabel("Select services.xml");
+        add(selectxml);
+
+        txtService = new JTextField("");
+        add(txtService);
+
+        butSelect = new JButton("Select");
+        butSelect.addActionListener(this);
+        add(butSelect);
+
+        selctclass = new JLabel("Select class location");
+        add(selctclass);
+
+        txtclass = new JTextField("");
+        add(txtclass);
+
+        bustSelectclss = new JButton("Select");
+        bustSelectclss.addActionListener(this);
+        add(bustSelectclss);
+
+        selectxml.setBounds(insets.left+16,insets.top+16,168,24);
+        txtService.setBounds(insets.left+192,insets.top+16,288,24);
+        butSelect.setBounds(insets.left+488,insets.top+16,72,24);
+
+        selctclass.setBounds(insets.left+16,insets.top+45,168,24);
+        txtclass.setBounds(insets.left+192,insets.top+45,288,24);
+        bustSelectclss.setBounds(insets.left+488,insets.top+45,72,24);
+
+        setSize(getPreferredSize());
+    }
+
+    public void fillBean(ArchiveBean bean) {
+        bean.setClassLocation(file);
+        bean.setServiceXML(value);
+    }
+
+    //to keep a refernce to next panel
+    public void setNext(JPanel next) {
+
+    }
+
+     public String getTopLable() {
+        return "Class location & Service descriptor selection";
+    }
+
+    public String getLable() {
+        return " Select the location of service classes directory and services.xml";
+    }
+
+    public JPanel getNext() {
+        DescriptorFile disfile = new DescriptorFile(parent,value);
+        disfile.setPrivious(this);
+        return disfile;
+    }
+
+    //to keep a refernce to previous panel
+    public void setPrivious(JPanel privious) {
+        this.previous =privious;
+    }
+
+    public JPanel getPrivious() {
+        return this.previous;
+    }
+
+    public void actionPerformed(ActionEvent e) {
+        Object obj = e.getSource();
+        if(obj == bustSelectclss){
+            parent.fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
+            int returnVal = parent.fc.showOpenDialog(this);
+            if (returnVal == JFileChooser.APPROVE_OPTION) {
+                file = parent.fc.getSelectedFile();
+                txtclass.setText(file.getAbsolutePath());
+                parent.setEnable(false, true, false, true);
+            } else {
+                txtclass.setText("No File");
+                parent.setEnable(true, false, false, true);
+            }
+
+        }   else if(obj == butSelect){
+            parent.fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
+            int returnVal = parent.fc.showOpenDialog(this);
+            if (returnVal == JFileChooser.APPROVE_OPTION) {
+                File  file = parent.fc.getSelectedFile();
+
+                byte[] buf = new byte[1024];
+                int read;
+                ByteArrayOutputStream out ;
+                try {
+                    FileInputStream in = new FileInputStream(file);
+
+                    out = new ByteArrayOutputStream();
+                    while ((read = in.read(buf)) > 0) {
+                        out.write(buf, 0, read);
+                    }
+                    in.close();
+                    value = new String(out.toByteArray());
+                } catch (IOException e1) {
+                }
+                txtService.setText(file.getAbsolutePath());
+                parent.setEnable(false, true, false, true);
+            } else {
+                txtService.setText("No File");
+                parent.setEnable(true, false, false, true);
+            }
+
+        }
+    }
+}
+

Added: webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/table/ArchiveTableModel.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/table/ArchiveTableModel.java?rev=291260&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/table/ArchiveTableModel.java (added)
+++ webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/frames/table/ArchiveTableModel.java Sat Sep 24 00:51:20 2005
@@ -0,0 +1,95 @@
+package org.apache.idaeplugin.frames.table;
+
+import org.apache.idaeplugin.bean.OprationObj;
+
+import javax.swing.table.AbstractTableModel;
+import java.util.HashMap;
+import java.util.Iterator;
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Deepal Jayasinghe
+ * Date: Sep 22, 2005
+ * Time: 11:57:24 AM
+ */
+public class ArchiveTableModel extends AbstractTableModel {
+
+    final String[] columnNames = {"Opeartion Name", "Return Value", "Paramters ", "Select"};
+    Object [][] datvalue;
+    private HashMap datobjs;
+
+    public ArchiveTableModel(HashMap dataobjetc) {
+        int size = dataobjetc.size();
+        datvalue = new Object[size][4];
+        Iterator itr =  dataobjetc.values().iterator();
+        int count =0;
+        while (itr.hasNext()) {
+            OprationObj oprationObj = (OprationObj) itr.next();
+            datvalue[count][0]=oprationObj.getOpName();
+            datvalue[count][1]=oprationObj.getReturnVale();
+            datvalue[count][2]=oprationObj.getParamters();
+            datvalue[count][3]=oprationObj.getSelect();
+            count ++;
+        }
+        this.datobjs = dataobjetc;
+    }
+    public int getColumnCount() {
+        return columnNames.length;
+    }
+
+    public int getRowCount() {
+        return datvalue.length;
+    }
+
+    public String getColumnName(int col) {
+        return columnNames[col];
+    }
+
+    public Object getValueAt(int row, int col) {
+        return datvalue[row][col];
+    }
+
+    public Class getColumnClass(int c) {
+        return getValueAt(0, c).getClass();
+    }
+
+    public boolean isCellEditable(int row, int col) {
+        return col >= 3;
+    }
+    public void setValueAt(Object value, int row, int col) {
+        OprationObj obj = (OprationObj)datobjs.get(getValueAt(row,0));
+        if(col == 3){
+            obj.setSelect((Boolean)value);
+        }
+
+        if (datvalue[0][col] instanceof Integer) {
+            try {
+                datvalue[row][col] = new Integer((String)value);
+            } catch (NumberFormatException e) {
+                System.out.println("Error");
+            }
+        } else {
+            datvalue[row][col] = value;
+        }
+//        obj.printMe();
+    }
+}
+
+
+

Added: webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/plugin/Axis2IdeaPlugin.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/plugin/Axis2IdeaPlugin.java?rev=291260&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/plugin/Axis2IdeaPlugin.java (added)
+++ webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/plugin/Axis2IdeaPlugin.java Sat Sep 24 00:51:20 2005
@@ -0,0 +1,52 @@
+package org.apache.idaeplugin.plugin;
+
+import com.intellij.openapi.components.ApplicationComponent;
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Deepal Jayasinghe
+ * Date: Sep 24, 2005
+ * Time: 10:18:36 AM
+ */
+public class Axis2IdeaPlugin implements ApplicationComponent {
+    /**
+     * Method is called after plugin is already created and configured. Plugin can start to communicate with
+     * other plugins only in this method.
+     */
+    public void initComponent() {
+
+    }
+
+    /**
+     * This method is called on plugin disposal.
+     */
+    public void disposeComponent() {
+    }
+
+    /**
+     * Returns the name of component
+     *
+     * @return String representing component name. Use PluginName.ComponentName notation
+     *  to avoid conflicts.
+     */
+    public String getComponentName() {
+        return "ActionsSample.ActionsPlugin";
+    }
+}
+

Added: webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/plugin/Axis2PlgingAction.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/plugin/Axis2PlgingAction.java?rev=291260&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/plugin/Axis2PlgingAction.java (added)
+++ webservices/axis2/trunk/java/modules/tool/ideapluging/plugin/org/apache/idaeplugin/plugin/Axis2PlgingAction.java Sat Sep 24 00:51:20 2005
@@ -0,0 +1,60 @@
+package org.apache.idaeplugin.plugin;
+
+import com.intellij.openapi.actionSystem.AnAction;
+import com.intellij.openapi.actionSystem.AnActionEvent;
+import com.intellij.openapi.actionSystem.Presentation;
+import com.intellij.openapi.actionSystem.ActionPlaces;
+
+import javax.swing.*;
+
+import org.apache.idaeplugin.frames.Axi2PluginPage;
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author: Deepal Jayasinghe
+ * Date: Sep 24, 2005
+ * Time: 10:22:08 AM
+ */
+public class Axis2PlgingAction extends AnAction {
+
+    private ImageIcon myIcon;
+
+    public Axis2PlgingAction() {
+        super("GC", "Axis2 plugings", null);
+    }
+
+    public void actionPerformed(AnActionEvent anActionEvent) {
+        Axi2PluginPage axis2lugin= new Axi2PluginPage();
+        axis2lugin.showUI();
+    }
+
+    public void update(AnActionEvent event) {
+        super.update(event);
+        Presentation presentation = event.getPresentation();
+        if (ActionPlaces.MAIN_TOOLBAR.equals(event.getPlace())) {
+            if (myIcon == null) {
+                java.net.URL resource = Axis2PlgingAction.class.getResource("/icons/icon.png");
+                myIcon = new ImageIcon(resource);
+            }
+            presentation.setIcon(myIcon);
+        }
+    }
+
+
+}