Package com.google.collide.dto.client.DtoClientImpls

Examples of com.google.collide.dto.client.DtoClientImpls.GetDirectoryImpl


    reloadDirectory(invalidatedPath);
  }

  private void reloadDirectory(final PathUtil invalidatedPath) {
    GetDirectoryImpl request = GetDirectoryImpl.make().setRootId(
        fileTreeModel.getLastAppliedTreeMutationRevision())
        .setDepth(FrontendConstants.DEFAULT_FILE_TREE_DEPTH);

    // Fetch the parent directory of the file
    request.setPath(invalidatedPath.toString());

    appContext.getFrontendApi().GET_DIRECTORY.send(request,
        new ApiCallback<GetDirectoryResponse>() {

          @Override
View Full Code Here


          /*
           * TODO: We should revisit deep linking in the file tree and possible only show
           * the directory that is deep linked. Otherwise, we may have to load a lot of parent
           * directories when deep linking to a very deep directory.
           */
          GetDirectoryImpl getDirectoryAndPath = GetDirectoryImpl.make()
              .setPath(dirPath.getPathString())
              .setDepth(FrontendConstants.DEFAULT_FILE_TREE_DEPTH)
              .setRootId(fileTreeModel.getLastAppliedTreeMutationRevision());
              // Include the root path so we load parent directories leading up to the file.
              //.setRootPath(closest.getNodePath().getPathString());
View Full Code Here

     */
    void requestDirectoryChildren(
        final FileTreeModel fileTreeModel, FileTreeNode node, final NodeRequestCallback callback) {
      Preconditions.checkArgument(node.isDirectory(), "Cannot request children of a file");
      final PathUtil path = node.getNodePath();
      GetDirectoryImpl getDirectory = GetDirectoryImpl.make()
          .setPath(path.getPathString())
          .setDepth(FrontendConstants.DEFAULT_FILE_TREE_DEPTH)
          .setRootId(fileTreeModel.getLastAppliedTreeMutationRevision());
      appContext.getFrontendApi().GET_DIRECTORY.send(getDirectory,
          new ApiCallback<GetDirectoryResponse>() {
View Full Code Here

    reloadDirectory(invalidatedPath);
  }

  private void reloadDirectory(final PathUtil invalidatedPath) {
    GetDirectoryImpl request = GetDirectoryImpl.make().setRootId(
        fileTreeModel.getLastAppliedTreeMutationRevision())
        .setDepth(FrontendConstants.DEFAULT_FILE_TREE_DEPTH);

    // Fetch the parent directory of the file
    request.setPath(invalidatedPath.toString());

    fileTreeController.getDirectory(request,
        new ApiCallback<GetDirectoryResponse>() {

          @Override
View Full Code Here

          /*
           * TODO: We should revisit deep linking in the file tree and possible only show
           * the directory that is deep linked. Otherwise, we may have to load a lot of parent
           * directories when deep linking to a very deep directory.
           */
          GetDirectoryImpl getDirectoryAndPath = GetDirectoryImpl.make()
              .setPath(dirPath.getPathString())
              .setDepth(FrontendConstants.DEFAULT_FILE_TREE_DEPTH)
              .setRootId(fileTreeModel.getLastAppliedTreeMutationRevision());
              // Include the root path so we load parent directories leading up to the file.
              //.setRootPath(closest.getNodePath().getPathString());
View Full Code Here

     */
    void requestDirectoryChildren(
        final FileTreeModel fileTreeModel, FileTreeNode node, final NodeRequestCallback callback) {
      Preconditions.checkArgument(node.isDirectory(), "Cannot request children of a file");
      final PathUtil path = node.getNodePath();
      GetDirectoryImpl getDirectory = GetDirectoryImpl.make()
          .setPath(path.getPathString())
          .setDepth(FrontendConstants.DEFAULT_FILE_TREE_DEPTH)
          .setRootId(fileTreeModel.getLastAppliedTreeMutationRevision());
      fileTreeController.getDirectory(getDirectory,
          new ApiCallback<GetDirectoryResponse>() {
View Full Code Here

TOP

Related Classes of com.google.collide.dto.client.DtoClientImpls.GetDirectoryImpl

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.