Examples of DependenciesListener


Examples of com.google.devtools.depan.model.builder.DependenciesListener

    // Step 1) Create the GraphModel to hold the analysis results
    // TODO(leeca): Add filters, etc.
    // TODO(leeca): Extend UI to allow lists of directories.

    GraphModel result = new GraphModel();
    DependenciesListener builder =
        new FileSystemDependencyDispatcher(result.getBuilder());

    monitor.worked(1);

    // Step 2) Read through the file system to build the analysis graph
View Full Code Here

Examples of com.google.devtools.depan.model.builder.DependenciesListener

public class FileSystemTreeBuilderTest {

  @Test
  public void testInsertLeaf() {
    GraphModel test = new GraphModel();
    DependenciesListener builder = new SimpleDependencyListener(test.getBuilder());
    FileSystemTreeBuilder treeBuilder = new FileSystemTreeBuilder(builder);
    PathInfo leafInfo = new FilePathInfo(new File("this/is/a test/path"));

    GraphNode leaf = treeBuilder.insertLeaf(leafInfo);
View Full Code Here

Examples of com.google.devtools.depan.model.builder.DependenciesListener

  }

  @Test
  public void testInsertLeaf_withDuplicate() {
    GraphModel test = new GraphModel();
    DependenciesListener builder = new SimpleDependencyListener(test.getBuilder());
    FileSystemTreeBuilder treeBuilder = new FileSystemTreeBuilder(builder);
    PathInfo leafInfo = new FilePathInfo(new File("this/is/a test/path"));

    GraphNode leaf = treeBuilder.insertLeaf(leafInfo);
View Full Code Here

Examples of com.google.devtools.depan.model.builder.DependenciesListener

    // TODO(leeca): Extend UI to allow lists of packages.
    Collection<String> packageWhitelist = splitFilter(packageFilter);
    ElementFilter filter = new DefaultElementFilter(packageWhitelist);

    GraphModel resultGraph = new GraphModel();
    DependenciesListener builder =
        new DependenciesDispatcher(filter, resultGraph.getBuilder());

    // TODO(leeca): Extend UI to allow lists of directories.
    Collection<String> directoryWhitelist = splitFilter(directoryFilter);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.