[Model Importer] Add new method to import as model
@@ -87,8 +87,11 @@ public class ModelImporter {
throw new IOException(NLS.bind(Messages.ModelImporter_2, importedFile));
}
- importedModel = IEditorModelManager.INSTANCE.load(importedFile);
+ doImport(IEditorModelManager.INSTANCE.load(importedFile), targetModel);
+ }
+ public void doImport(IArchimateModel importedModel, IArchimateModel targetModel) throws IOException, ImportException {
+ this.importedModel = importedModel;
this.targetModel = targetModel;
objectCache = createObjectIDCache();
