Package org.tuba.export.dialog.data

Examples of org.tuba.export.dialog.data.ResourceTreeObject


    for (IResource resource : resources) {
      treeObjectMap.put(resource, new OOResourceTreeObject(resource));
      IResource current = resource;
      while (current != null) {
        IResource parent = current.getParent();
        ResourceTreeObject parentTreeObject = treeObjectMap.get(parent);

        if (parentTreeObject != null) {
          parentTreeObject.getChildren().add(
              treeObjectMap.get(current));
          break;
        }

        if (parent.getProject().equals(parent)) {
          parentTreeObject = new ProjectTreeObject(parent);
          invisibleRoot.getChildren().add(parentTreeObject);
          parentTreeObject.getChildren().add(
              treeObjectMap.get(current));
          treeObjectMap.put(parent, parentTreeObject);
          break;
        }

        parentTreeObject = new DirectoryTreeObject(parent);
        parentTreeObject.getChildren().add(treeObjectMap.get(current));
        treeObjectMap.put(parent, parentTreeObject);

        current = parent;
      }
    }
View Full Code Here

TOP

Related Classes of org.tuba.export.dialog.data.ResourceTreeObject

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.