case REFERENCE:
if (isEmpty(textList.get(0).getText()) || isEmpty(textList.get(1).getText()) ||
isEmpty(textList.get(2).getText())) {
return false;
}
Reference reference = (Reference)eObject;
if (reference == null) {
reference = (Reference)getEFactory().create(Reference.class);
gbean = (Gbean)section.getSelectedObject();
// add the JAXBElement of a Dependency, not the Dependency
ObjectFactory objectFactory = new ObjectFactory();
gbean.getAttributeOrXmlAttributeOrReference().add(objectFactory.createGbeanReference(reference));
}
reference.setName(textList.get(0).getText());
reference.setGroupId(textList.get(1).getText());
reference.setArtifactId(textList.get(2).getText());
reference.setVersion(textList.get(3).getText());
reference.setModule(textList.get(4).getText());
reference.setType(textList.get(5).getText());
reference.setCustomFoo(textList.get(6).getText());
break;
}
return true;
}