Examples of DiffFolderResult


Examples of jp.sf.amateras.stepcounter.diffcount.object.DiffFolderResult

   */
  public static DiffFolderResult count(File oldRoot, File newRoot) {

    // TODO �t�@�C���P�ʂł̍����ɂ��Ή�����B

    DiffFolderResult root = new DiffFolderResult(null);
    root.setName(newRoot.getName());

    diffFolder(root, oldRoot, newRoot);

    return root;
  }
View Full Code Here

Examples of jp.sf.amateras.stepcounter.diffcount.object.DiffFolderResult

        parent.addChild(result);
      }

      // �f�B���N�g���̏ꍇ�͍ċA�I�ɏ���
      if (newFile.isDirectory()) {
        DiffFolderResult newParent = (DiffFolderResult)parent.getChildren().get(
            parent.getChildren().size() - 1);
        diffFolder(newParent, new File(oldFolder, newFile.getName()),
            newFile);
      } else {
View Full Code Here

Examples of jp.sf.amateras.stepcounter.diffcount.object.DiffFolderResult

      }

      return diffResult;

    } else if (newFile != null && newFile.isDirectory()) {
      DiffFolderResult diffResult = new DiffFolderResult(parent);
      diffResult.setName(newFile.getName());
      diffResult.setStatus(status);
      return diffResult;

    } else if (oldFile != null && oldFile.isDirectory()) {
      DiffFolderResult diffResult = new DiffFolderResult(parent);
      diffResult.setName(oldFile.getName());
      diffResult.setStatus(status);
      return diffResult;
    }

    return null;
  }
View Full Code Here

Examples of jp.sf.amateras.stepcounter.diffcount.object.DiffFolderResult

      Renderer renderer = RendererFactory.getRenderer(format);
      if(renderer == null){
        throw new RuntimeException(format + " is invalid format!");
      }

      DiffFolderResult result = DiffCounter.count(olddir, srcdir);

      byte[] bytes = renderer.render(result);

      try {
        output.write(bytes);
View Full Code Here

Examples of jp.sf.amateras.stepcounter.diffcount.object.DiffFolderResult

    sb.append("</td>");

    sb.append("</tr>\n");

    if (obj instanceof DiffFolderResult) {
      DiffFolderResult folder = (DiffFolderResult)obj;
      for (AbstractDiffResult child : folder.getSortedChildren()) {
        renderLine(folder, child, sb, nest + 1);
      }
    }
  }
View Full Code Here

Examples of jp.sf.amateras.stepcounter.diffcount.object.DiffFolderResult

   */
  private void executeDiffCountActionActionPerformed(ActionEvent event) {
    File oldRoot = new File(this.oldRoot.getText());
    File newRoot = new File(this.newRoot.getText());

    DiffFolderResult root = DiffCounter.count(oldRoot, newRoot);

        DiffCountTreeTableModel model = (DiffCountTreeTableModel) resultTable.getTreeTableModel();
        model.setRoot(wrapToTreeTableModel(root));
  }
View Full Code Here

Examples of jp.sf.amateras.stepcounter.diffcount.object.DiffFolderResult

    String newRoot = "test/sample/java/root2";

    URL url = this.getClass().getResource(
        "DiffCounterTest_testCount_java.txt");

    DiffFolderResult root = DiffCounter.count(new File(oldRoot), new File(newRoot));

    DiffCounterResultUtil.assertEquals(url, root.toString());
  }
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.