Search in sources :

Example 1 with AndroidModuleValidator

use of com.android.tools.idea.gradle.project.sync.validation.android.AndroidModuleValidator in project android by JetBrains.

the class AndroidModuleModelDataService method importData.

@Override
protected void importData(@NotNull Collection<DataNode<AndroidModuleModel>> toImport, @NotNull Project project, @NotNull IdeModifiableModelsProvider modelsProvider, @NotNull Map<String, AndroidModuleModel> modelsByName) {
    AndroidModuleValidator moduleValidator = myModuleValidatorFactory.create(project);
    for (Module module : modelsProvider.getModules()) {
        AndroidModuleModel androidModel = modelsByName.get(module.getName());
        setUpModule(module, moduleValidator, modelsProvider, androidModel);
    }
    if (!modelsByName.isEmpty()) {
        moduleValidator.fixAndReportFoundIssues();
    }
}
Also used : AndroidModuleValidator(com.android.tools.idea.gradle.project.sync.validation.android.AndroidModuleValidator) AndroidModuleModel(com.android.tools.idea.gradle.project.model.AndroidModuleModel) Module(com.intellij.openapi.module.Module)

Aggregations

AndroidModuleModel (com.android.tools.idea.gradle.project.model.AndroidModuleModel)1 AndroidModuleValidator (com.android.tools.idea.gradle.project.sync.validation.android.AndroidModuleValidator)1 Module (com.intellij.openapi.module.Module)1