Package com.google.collide.client.workspace

Examples of com.google.collide.client.workspace.FileTreeModel.replaceNode()


   */
  private FileTreeModel getFileTree(DirInfo dir) {
    FileTreeNode root = FileTreeNode.transform(dir);

    FileTreeModel model = new FileTreeModel(new MockOutgoingController());
    model.replaceNode(PathUtil.WORKSPACE_ROOT, root, "1");
    return model;
  }

  private final native DirInfo buildSimpleTree() /*-{
    return {
View Full Code Here


    document = Document.createFromString(source);
    parser = DocumentParser.create(
        document, CodeMirror2.getParser(filePath), new StubIncrementalScheduler(50, 50));
    FileTreeNode root = FileTreeNode.transform(buildSimpleTree());
    FileTreeModel model = new FileTreeModel(new MockOutgoingController());
    model.replaceNode(PathUtil.WORKSPACE_ROOT, root, "1");
    return new DynamicReferenceProvider(path, new DeferringLineParser(parser), model, null);
  }

  public void testLocalAndAbsoluteFileReferences() {
    // Some PathUtil sanity tests.
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.