Package org.fusesource.ide.fabric8.ui.navigator

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


    return children != null && children.length > 0;
  }

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

    }
    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

    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

    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

    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

                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

        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

    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

    createProfileForm(profile, inner);

    createLabel(inner, Messages.profileParentsLabel);
    parentsForm.createColumnsViewer(inner);
    parentsForm.setProfilesViewerInput(node.getVersionNode());
    parentsForm.getProfilesViewer().setContentProvider(new ProfileParentsContentProvider(node));

    GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
    gridData.horizontalSpan = 2;
    parentsForm.getProfilesViewer().getTree().setLayoutData(gridData);
    List<ProfileDTO> parents = profile.getParents();
View Full Code Here

TOP

Related Classes of org.fusesource.ide.fabric8.ui.navigator.ProfileNode

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.