}
}
public boolean performFinish() {
AbstractTableWizardPage page = (AbstractTableWizardPage) getPages()[0];
PathType path;
ModuleType module;
if (eObject == null) {
eObject = getEFactory().create(ModuleType.class);
JAXBElement plan = section.getPlan();
module = (ModuleType)eObject;
List moduleList = ((ApplicationType)plan.getValue()).getModule();
if (moduleList == null) {
moduleList = (List)getEFactory().create(ModuleType.class);
}
moduleList.add(eObject);
}
else {
module = (ModuleType)eObject;
module.setConnector(null);
module.setEjb(null);
module.setJava(null);
module.setWeb(null);
}
// NOTE!! this replaces the call to processEAttributes (page);
path = (PathType)getEFactory().create(PathType.class);
path.setValue(page.getTextEntry(0).getText());
if (((ModuleWizardPage)page).buttonList[0].getSelection())
module.setConnector(path);
else if (((ModuleWizardPage)page).buttonList[1].getSelection())
module.setEjb(path);
else if (((ModuleWizardPage)page).buttonList[2].getSelection())
module.setJava(path);
else if (((ModuleWizardPage)page).buttonList[3].getSelection())
module.setWeb(path);
String altDD = page.getTextEntry(1).getText();
path = (PathType)getEFactory().create(PathType.class);
path.setValue(altDD);
module.setAltDd(path);
if (section.getViewer().getInput() == section.getPlan()) {
section.getViewer().setInput(section.getInput());
}