Examples of ProfileNode


Examples of org.fusesource.ide.fabric8.ui.navigator.ProfileNode

    }
    if (element instanceof VersionNode) {
      VersionNode version = (VersionNode) element;
      return getProfileChildren(version);
    }
    ProfileNode node = Profiles.toProfileNode(element);
    if (node != null) {
      return getProfileChildren(node);
    }
    return null;
  }
View Full Code Here

Examples of org.fusesource.ide.fabric8.ui.navigator.ProfileNode

    return node.getChildrenList();
  }

  @Override
  public Object[] getChildren(Object element) {
    ProfileNode node = Profiles.toProfileNode(element);
    if (node != null) {
      return getProfileChildren(node);
    }
    return null;
  }
View Full Code Here

Examples of org.fusesource.ide.fabric8.ui.navigator.ProfileNode

    List<ProfileNode> selectedProfiles = new ArrayList<ProfileNode>();
    Object input = profilesViewer.getInput();
    if (input instanceof VersionNode) {
      VersionNode node = (VersionNode) input;
      for (ProfileDTO profile : selected) {
        ProfileNode profileNode = node.getProfileNode(profile);
        if (profileNode != null) {
          selectedProfiles.add(profileNode);
        }
      }
    }
View Full Code Here

Examples of org.fusesource.ide.fabric8.ui.navigator.ProfileNode

    Fabric fabric = getFabric();

    // we must use the local IP address of the ZooKeeper URL when creating a cloud container so that it can connect
    // properly to the ZK node if its on the cloud
    ProfileNode defaultProfile = getVersionNode().getProfileNode("default");
    if (defaultProfile != null && fabric != null) {
      ProfileDTO profile = defaultProfile.getProfile();
      if (profile != null) {
        Map<String, String> config = profile.getConfigurations().get("io.fabric8.zookeeper");
        if (config != null) {
          String zkUrl = config.get("zookeeper.url");
          if (zkUrl != null) {
View Full Code Here

Examples of org.fusesource.ide.fabric8.ui.navigator.ProfileNode

                if (nav != null && current != null) {
                    Object oSel = Selections.getFirstSelection(event.getSelection());
                    if (oSel != null && oSel instanceof ProfileStatusDTO) {
                        ProfileStatusDTO s = asProfileStatus(oSel);
                        String profileId = s.getProfile();
                        ProfileNode profileNode = searchProfile(nav, profileId, current.getVersionsNode());
                        if (profileNode != null)
                            nav.selectReveal(new StructuredSelection(profileNode));
                    }
                }
            }
View Full Code Here

Examples of org.fusesource.ide.fabric8.ui.navigator.ProfileNode

        updateData();
    }

    private ProfileNode searchProfile(FabricNavigator nav, String profileId, Node node) {
        ProfileNode result = null;

        if (node instanceof ProfileNode && ((ProfileNode) node).getId().equals(profileId)) {
            // found the profile
            result = ((ProfileNode) node);
        } else {
View Full Code Here

Examples of org.fusesource.ide.fabric8.ui.navigator.ProfileNode

    protected CreateChildContainerAction createChildContainerAction(Fabric fabric) {
        return new CreateChildContainerAction(fabric);
    }

    protected void updateActionStatus() {
        ProfileNode profileNode = getSelectedProfileNode();
        getCreateChildContainerAction().setProfileNode(profileNode);
        getCreateSshContainerAction().setProfileNode(profileNode);
        getCreateCloudContainerAction().setProfileNode(profileNode);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.