addPage(new EjbRelationWizardPage("Page0"));
}
@Override
public boolean performFinish() {
Adminobject admin;
if (element.getText().equals(elementTypes[ADMIN_OBJECT])) {
if (isEmpty(textList.get(0).getText()) || isEmpty(textList.get(1).getText())) {
return false;
}
admin = (Adminobject)eObject;
if (admin == null) {
admin = (Adminobject)getEFactory().create(Adminobject.class);
List objectList = (List)section.getInput();
objectList.add (admin);
}
admin.setAdminobjectInterface(textList.get(0).getText());
admin.setAdminobjectClass(textList.get(1).getText());
}
else if (element.getText().equals(elementTypes[ADMIN_OBJECT_INSTANCE])) {
if (isEmpty(textList.get(0).getText())) {
return false;
}
AdminobjectInstance aoInstance = (AdminobjectInstance)eObject;
if (aoInstance == null) {
aoInstance = (AdminobjectInstance)getEFactory().create(AdminobjectInstance.class);
admin = (Adminobject)((AdminObjectSection)section).getSelectedObject();
admin.getAdminobjectInstance().add(aoInstance);
}
aoInstance.setMessageDestinationName(textList.get(0).getText());
}
else if (element.getText().equals(elementTypes[CONFIG_PROPERTY_SETTING])) {
if (isEmpty(textList.get(0).getText()) || isEmpty(textList.get(1).getText())) {