// now we have a list of Repos we still don't know.
// add these to the repo list
for (MavenRepository unknownRepository : unknownRepositories) {
// fix up IDEA-24324, we use the ID provided by MavenRepository instead of using its URL
// which breaks maven on windows systems.
MavenDomRepository repo = model.getRepositories().addRepository();
repo.getId().setStringValue(unknownRepository.getRepositoryId());
repo.getUrl().setStringValue(unknownRepository.getRepositoryUrl());
repo.getName().setStringValue(unknownRepository.getRepositoryDescription());
}
}
}.execute();
FileDocumentManager docManager = FileDocumentManager.getInstance();
com.intellij.openapi.editor.Document doc = docManager.getDocument(psiFile.getVirtualFile());