throw new IllegalArgumentException("Diagram file " + diagramFile + " should not exist yet");
// initialize model file
// based on generated IamlNewDiagramFileWizard#performFinish
// based on generated IamlInitDiagramFileAction#run
ResourceSet resourceSet = new ResourceSetImpl();
URI sourceModelURI = URI.createPlatformResourceURI(modelFile.getFullPath().toString(), false);
URI diagramModelURI = URI.createPlatformResourceURI(diagramFile.getFullPath().toString(), false);
final Resource modelResource = resourceSet.getResource(sourceModelURI, true);
final Resource diagramResource = resourceSet.createResource(diagramModelURI);
final EObject modelRoot = (EObject) modelResource.getContents().get(0);
List<Object> affectedFiles = new LinkedList<Object>();
affectedFiles.add(diagramFile);
TransactionalEditingDomain myEditingDomain = GMFEditingDomainFactory.INSTANCE