if (providerID == null || artefactID == null)
continue;
XMLProvider provider = new XMLProvider(providerID,
artefactID);
XMLReference reference = new XMLReference(provider);
IntegrationDialog dialog = new IntegrationDialog(PlatformUI
.getWorkbench().getActiveWorkbenchWindow().getShell(),
document);
if (dialog.open() != Dialog.OK)
continue;
for (MetaArtefactOperation operation : dialog.getOperations()) {
XMLArtefactOperation o = new XMLArtefactOperation(operation
.getId());
o.setConfiguration(operation.getConfiguration());
reference.getOperations().add(o);
}
MetaIntegrator integrator = dialog.getIntegrator();
if (integrator != null) {
XMLIntegrator i = new XMLIntegrator(integrator.getId());
i.setConfiguration(integrator.getConfiguration());
reference.setIntegrator(i);
}