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);