Package com.google.devtools.depan.model

Examples of com.google.devtools.depan.model.GraphNode


   * @param erase if true, if there is an existing group with the same master,
   *        it will be erased. if not, the selected nodes will be added to the
   *        existing group.
   */
  protected void collapse(boolean erase) {
    GraphNode master = collapseMaster.getElementAtIndex(
        masterViewer.getCombo().getSelectionIndex());
    Collection<GraphNode> objects = collapseMaster.getObjects();
    getEditor().collapse(master, objects, erase, null);
  }
View Full Code Here


      return;
    }
    NodeWrapper<NodeDisplayProperty> prop =
        (NodeWrapper<NodeDisplayProperty>) o;
    NodeDisplayProperty p = prop.getContent();
    GraphNode node = prop.getNode();

//    System.out.println("" + p + " " + property + " - " + value);
    if (property.equals(COL_VISIBLE) && (value instanceof Boolean)) {
      p.setVisible((Boolean) value);
    } else if (property.equals(COL_SELECTED) && (value instanceof Boolean)) {
View Full Code Here

    if (null == packageFile) {
      return;
    }

    TreeClimber treePath = new TreeClimber(treeFile);
    GraphNode lookupNode = builder.newNode(packageNode);

    // If the lookup is not the same node, then a node with that identity
    // already exists.  No need to add that package (or its parents) again.
    while (lookupNode == packageNode) {
      // Set up for parent of current entities
View Full Code Here

    Enumeration<? extends ZipEntry> entries = zipFile.entries();
    while (entries.hasMoreElements()) {
      ZipEntry entry = entries.nextElement();
      String name = entry.getName();

      GraphNode entryNode = createEntryNode(entry);
      String parent = new File(name).getParent();
      if (null == parent) {
        builder.newNode(entryNode);
      } else {
        DirectoryElement parentNode = new DirectoryElement(parent);
View Full Code Here

      return null;
    }
    NodeWrapper<NodeDisplayProperty> wrapper =
        (NodeWrapper<NodeDisplayProperty>) element;
    NodeDisplayProperty property = wrapper.getContent();
    GraphNode node = wrapper.getNode();

    switch (columnIndex) {
    case NodeEditorTool.INDEX_NAME:
      return Tools.getIcon(node);
    case NodeEditorTool.INDEX_VISIBLE:
View Full Code Here

TOP

Related Classes of com.google.devtools.depan.model.GraphNode

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.