Package org.apache.ideaplugin.bean

Examples of org.apache.ideaplugin.bean.ServiceObj


                if (operationObj.getSelect().booleanValue()) {
                    ops.add(operationObj.getOpName());
                }
            }

            ServiceObj service = new ServiceObj(txtServiceName.getText(), fileName, ops);
            archiveBean.addToServicelsit(service);
            if (!archiveBean.isSingleService()) {
                int valu = JOptionPane.showConfirmDialog(this, "Do you want to add an another service to group", "Service Archive",
                        JOptionPane.YES_NO_OPTION);
                if (valu == 0) {
                    fileName = "";
                    txtClassName.setText("");
                    txtServiceName.setText("");
                    operations.clear();
                    setNextButtonEnabled(false);
                    switchPanel(CodegenFrame.PANEL_FIRST_C);
                    count++;
                    this.repaint();
                } else {
                    servicelsit =archiveBean.getServicelsit();
                    System.out.println(servicelsit.size());
                    sgXMl = "<serviceGroup>\n";
                    for (int i = 0; i < servicelsit.size(); i++) {
                        ServiceObj serviceObj = (ServiceObj) servicelsit.get(i);
                        sgXMl = sgXMl + serviceObj.toString();
                    }
                    sgXMl = sgXMl + "</serviceGroup>";
                    archiveBean.setServiceXML(sgXMl);
                    sgXMl="";
                    switchPanel(CodegenFrame.PANEL_OPTION_C );
                }
            } else {
                servicelsit = archiveBean.getServicelsit();
                sgXMl = "<serviceGroup>\n";
                for (int i = 0; i < servicelsit.size(); i++) {
                    ServiceObj serviceObj = (ServiceObj) servicelsit.get(i);
                    sgXMl = sgXMl + serviceObj.toString();
                }
                sgXMl = sgXMl + "</serviceGroup>";
                archiveBean.setServiceXML(sgXMl);
                sgXMl="";
                switchPanel(CodegenFrame.PANEL_OPTION_C );
View Full Code Here


            if (operationObj.getSelect().booleanValue()) {
                ops.add(operationObj.getOpName());
            }
        }
        txtServiceName.setText(txtServiceName.getText());
        ServiceObj service = new ServiceObj(txtServiceName.getText(), fileName, ops);
        archiveBean.addToServicelsit(service);
        servicelsit = archiveBean.getServicelsit();
        sgXMl="<serviceGroup>";
        for (int i = 0; i < servicelsit.size(); i++) {
            ServiceObj serviceObj = (ServiceObj) servicelsit.get(i);
            sgXMl = sgXMl + serviceObj.toString();
        }
        sgXMl = sgXMl + "</serviceGroup>";
        archiveBean.setServiceXML(sgXMl);
        sgXMl="";
    }
View Full Code Here

                if (operationObj.getSelect().booleanValue()) {
                    ops.add(operationObj.getOpName());
                }
            }

            ServiceObj service = new ServiceObj(txtServiceName.getText(), fileName, ops);
            archiveBean.addToServicelsit(service);
            if (!archiveBean.isSingleService()) {
                int valu = JOptionPane.showConfirmDialog(this, "Do you want to add an another service to group", "Service Archive",
                        JOptionPane.YES_NO_OPTION);
                if (valu == 0) {
                    fileName = "";
                    txtClassName.setText("");
                    txtServiceName.setText("");
                    operations.clear();
                    setNextButtonEnabled(false);
                    switchPanel(CodegenFrame.PANEL_FIRST_C);
                    count++;
                    this.repaint();
                } else {
                    servicelsit =archiveBean.getServicelsit();
                    System.out.println(servicelsit.size());
                    sgXMl = "<serviceGroup>\n";
                    for (int i = 0; i < servicelsit.size(); i++) {
                        ServiceObj serviceObj = (ServiceObj) servicelsit.get(i);
                        sgXMl = sgXMl + serviceObj.toString();
                    }
                    sgXMl = sgXMl + "</serviceGroup>";
                    archiveBean.setServiceXML(sgXMl);
                    sgXMl="";
                    switchPanel(CodegenFrame.PANEL_OPTION_C );
                }
            } else {
                servicelsit = archiveBean.getServicelsit();
                sgXMl = "<serviceGroup>\n";
                for (int i = 0; i < servicelsit.size(); i++) {
                    ServiceObj serviceObj = (ServiceObj) servicelsit.get(i);
                    sgXMl = sgXMl + serviceObj.toString();
                }
                sgXMl = sgXMl + "</serviceGroup>";
                archiveBean.setServiceXML(sgXMl);
                sgXMl="";
                switchPanel(CodegenFrame.PANEL_OPTION_C );
View Full Code Here

            if (operationObj.getSelect().booleanValue()) {
                ops.add(operationObj.getOpName());
            }
        }
        txtServiceName.setText(txtServiceName.getText());
        ServiceObj service = new ServiceObj(txtServiceName.getText(), fileName, ops);
        archiveBean.addToServicelsit(service);
        servicelsit = archiveBean.getServicelsit();
        sgXMl="<serviceGroup>";
        for (int i = 0; i < servicelsit.size(); i++) {
            ServiceObj serviceObj = (ServiceObj) servicelsit.get(i);
            sgXMl = sgXMl + serviceObj.toString();
        }
        sgXMl = sgXMl + "</serviceGroup>";
        archiveBean.setServiceXML(sgXMl);
        sgXMl="";
    }
View Full Code Here

                if (operationObj.getSelect().booleanValue()) {
                    ops.add(operationObj.getOpName());
                }
            }

            ServiceObj service = new ServiceObj(txtServiceName.getText(), fileName, ops);

            parent.bean.addToServicelsit(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);
                        lblServiceNam.setVisible(false);
                        txtServiceName.setVisible(false);
                    } catch (Exception e1) {
//                    e1.printStackTrace();
                    }
                    classPage = new ClassSelctionPage(parent);
                    count++;
                    parent.reShow();
                    this.repaint();
                } else {
                    servicelsit = parent.bean.getServicelsit();
                    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 {
                servicelsit = parent.bean.getServicelsit();
                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);
View Full Code Here

TOP

Related Classes of org.apache.ideaplugin.bean.ServiceObj

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.