Package com.google.collide.dto.server.DtoServerImpls

Examples of com.google.collide.dto.server.DtoServerImpls.DirInfoImpl


   */
  private TreeNodeInfoImpl stripChildren(NodeInfoExt newNode) {
    if (newNode.getNodeType() == TreeNodeInfo.FILE_TYPE) {
      return (TreeNodeInfoImpl) newNode;
    }
    DirInfoImpl dir = (DirInfoImpl) newNode;
    if ((dir.hasFiles() && dir.getFiles().size() > 0) || dir.hasSubDirectories()
        && dir.getSubDirectories().size() > 0) {
      // Make a copy; modifying the node would change the real tree.
      dir = DirInfoImpl.fromJsonElement(dir.toJsonElement());
      dir.clearFiles();
      dir.clearSubDirectories();
      dir.setIsComplete(false);
    }
    return dir;
  }
View Full Code Here

TOP

Related Classes of com.google.collide.dto.server.DtoServerImpls.DirInfoImpl

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.