Search in sources :

Example 1 with DependencyUISettings

use of com.intellij.packageDependencies.DependencyUISettings in project intellij-community by JetBrains.

the class DependenciesPanelTest method testModuleGroups.

public void testModuleGroups() throws Exception {
    ModifiableModuleModel model = ModuleManager.getInstance(myProject).getModifiableModel();
    model.setModuleGroupPath(myModule, new String[] { "a", "b" });
    model.renameModule(myModule, "module");
    WriteAction.run(model::commit);
    // groups aren't shown for single-module projects so we need to add an empty second module
    createModule("util");
    DependencyUISettings settings = DependencyUISettings.getInstance();
    settings.UI_GROUP_BY_SCOPE_TYPE = false;
    settings.UI_SHOW_FILES = false;
    settings.SCOPE_TYPE = ProjectPatternProvider.FILE;
    doTestDependenciesTrees(new AnalysisScope(myModule), "-Root\n" + " -[a]\n" + "  -b\n" + "   -module\n" + "    -dependencies\n" + "     -src\n" + "      com/package1\n", "Root\n");
}
Also used : AnalysisScope(com.intellij.analysis.AnalysisScope) ModifiableModuleModel(com.intellij.openapi.module.ModifiableModuleModel) DependencyUISettings(com.intellij.packageDependencies.DependencyUISettings)

Aggregations

AnalysisScope (com.intellij.analysis.AnalysisScope)1 ModifiableModuleModel (com.intellij.openapi.module.ModifiableModuleModel)1 DependencyUISettings (com.intellij.packageDependencies.DependencyUISettings)1