private void doImportProjects(final List<VirtualFile> files, String... profiles) { initProjectsManager(false); readProjects(files, profiles); UIUtil.invokeAndWaitIfNeeded( new Runnable() { @Override public void run() { myProjectsManager.waitForResolvingCompletion(); myProjectsManager.scheduleImportInTests(files); myProjectsManager.importProjects(); } }); for (MavenProject each : myProjectsTree.getProjects()) { if (each.hasReadingProblems()) { System.out.println(each + " has problems: " + each.getProblems()); } } }
protected void readProjects() { readProjects(myProjectsManager.getProjectsFiles()); }
protected void updateProjectsAndImport(VirtualFile... files) { readProjects(files); myProjectsManager.performScheduledImportInTests(); }