use of com.android.tools.idea.gradle.structure.configurables.android.dependencies.treeview.ModuleDependencyNode in project android by JetBrains.
the class DependenciesTreeRootNode method createChildren.
@Override
@NotNull
protected List<? extends AbstractPsModelNode> createChildren() {
T model = getFirstModel();
DependencyCollector collector = myDependencyCollectorFunction.apply(model);
List<AbstractDependencyNode> children = Lists.newArrayList();
for (Map.Entry<LibraryDependencySpecs, List<PsLibraryAndroidDependency>> entry : collector.libraryDependenciesBySpec.entrySet()) {
LibraryDependencyNode child = new LibraryDependencyNode(this, entry.getValue());
children.add(child);
}
for (Map.Entry<String, List<PsModuleAndroidDependency>> entry : collector.moduleDependenciesByGradlePath.entrySet()) {
ModuleDependencyNode child = new ModuleDependencyNode(this, entry.getValue());
children.add(child);
}
Collections.sort(children, DependencyNodeComparator.INSTANCE);
return children;
}
Aggregations