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");
}
Aggregations