Package org.eclipse.egit.ui.internal.synchronize.model.TreeBuilder

Examples of org.eclipse.egit.ui.internal.synchronize.model.TreeBuilder.FileModelFactory


      children = createChildren();
    return children;
  }

  private GitModelObject[] createChildren() {
    FileModelFactory fileModelFactory = new FileModelFactory() {
      public GitModelBlob createFileModel(GitModelObjectContainer parent,
          Repository repository, Change change, IPath fullPath) {
        return new GitModelBlob(parent, repository, change, fullPath);
      }
View Full Code Here


   * @param cache
   *            cache containing all changed objects
   */
  public GitModelCache(GitModelRepository parent, Repository repo,
      Map<String, Change> cache) {
    this(parent, repo, cache, new FileModelFactory() {
      public GitModelBlob createFileModel(
          GitModelObjectContainer objParent, Repository nestedRepo,
          Change change, IPath path) {
        return new GitModelCacheFile(objParent, nestedRepo, change,
            path);
View Full Code Here

   * @param cache
   *            list of cached changes
   */
  public GitModelWorkingTree(GitModelRepository parent, Repository repo,
      Map<String, Change> cache) {
    super(parent, repo, cache, new FileModelFactory() {
      public GitModelBlob createFileModel(
          GitModelObjectContainer objParent, Repository nestedRepo,
          Change change, IPath path) {
        return new GitModelWorkingFile(objParent, nestedRepo, change,
            path);
View Full Code Here

  }

  private GitModelCacheTree crateCacheTree(IPath location)
      throws Exception {
    return new GitModelCacheTree(createModelCommit(),
        lookupRepository(leftRepoFile), location, new FileModelFactory() {
          public boolean isWorkingTree() {
            return false;
          }
          public GitModelBlob createFileModel(GitModelObjectContainer objParent,
              Repository repo, Change change, IPath fullPath) {
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.synchronize.model.TreeBuilder.FileModelFactory

Copyright © 2018 www.massapicom. 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.