Package org.jboss.tools.jmx.core.tree

Examples of org.jboss.tools.jmx.core.tree.Node


        GraphableNode node = (GraphableNode) input;
        answer.addAll(node.getChildrenGraph());
      } else if (input != null) {
        answer.add(input);
        if (input instanceof Node) {
          Node aNode = (Node) input;
          answer.addAll(aNode.getChildrenList());
        }
      } else {
        // will prevent the grayish box in the diagram view
        return null;
      }
View Full Code Here


    }
    else if (entity instanceof ConnectedNode) {
      ConnectedNode node = (ConnectedNode) entity;
      return node.getConnectedTo().toArray();
    } else if (entity instanceof Node) {
      Node aNode = (Node) entity;
      return aNode.getChildren();
    }
    return EMPTY;
  }
View Full Code Here

  public static Fabric toFabric(Object object) {
    if (object instanceof Fabric) {
      return (Fabric) object;
    }
    if (object instanceof Node) {
      Node n = (Node) object;
      return toFabric(n.getParent());
    }
    return null;
  }
View Full Code Here

    return versionNode;
  }

  public void addAndDescendants(Set<Node> answer) {
    answer.add(this);
    Node p = getParent();
    if (p instanceof ProfileNode) {
      ProfileNode parentNode = (ProfileNode) p;
      parentNode.addAndDescendants(answer);
    }
  }
View Full Code Here

    String message = Messages.bind(Messages.deleteProfileMessage, profile.getId());
    boolean confirm = MessageDialog.openConfirm(Shells.getShell(), Messages.deleteProfileDialogTitle,
        message);
    if (confirm) {
      node.getFabric().getFabricService().deleteProfile(node.getVersionNode().getVersionId(), profile.getId());
      Node parent = node.getParent();
      if (parent != null){
        parent.removeChild(node);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.jboss.tools.jmx.core.tree.Node

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.