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

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


    }

    @Override
    protected CreateJCloudsContainerAction createCloudContainerAction(Object current) {
        final ProfileNode node = (ProfileNode) current;
        return new CreateJCloudsContainerAction(node.getVersionNode(), null, node);
    }
View Full Code Here


      @Override
      public void run() {
        if (fabric == null) {
          return;
        }
        ContainersNode containersNode = fabric.getContainersNode();
        if (containersNode != null) {
          List<ContainerDTO> selectedContainers = getSelectedContainers();
          if (!selectedContainers.isEmpty()) {
            ContainerDTO container = selectedContainers.get(0);
            ContainerNode containerNode = containersNode
                .getContainerNode(container.getId());
            if (containerNode != null) {
              Selections.setSingleSelection(
                  fabric.getRefreshableUI(), containerNode);
            }
View Full Code Here

          }
        }));

    if (rootContainers.size() == 1 && fabric != null) {
      ContainerDTO rootContainer = rootContainers.get(0);
      ContainersNode containersNode = fabric.getContainersNode();
      if (containersNode != null) {
        return containersNode.getContainerNode(rootContainer.getId());
      }
    }
    return null;
  }
View Full Code Here

    getTableView().setDoubleClickAction(new Action() {

      @Override
      public void run() {
        ContainersNode containersNode = fabric.getContainersNode();
        if (containersNode != null) {
          List<ContainerDTO> selectedContainers = getSelectedContainers();
          if (!selectedContainers.isEmpty()) {
            ContainerDTO container = selectedContainers.get(0);
            ContainerNode containerNode = containersNode.getContainerNode(container.getId());
            if (containerNode != null) {
              Selections.setSingleSelection(fabric.getRefreshableUI(), containerNode);
            }
          }
        }
View Full Code Here

    }
  }


  public void updateData() {
    ContainersNode containersNode = fabric.getContainersNode();
    if (containersNode != null) {
      setPropertySources(containersNode.getPropertySourceList());
    }
  }
View Full Code Here

      }
    }));

    if (rootContainers.size() == 1 && fabric != null) {
      ContainerDTO rootContainer = rootContainers.get(0);
      ContainersNode containersNode = fabric.getContainersNode();
      if (containersNode != null) {
        return containersNode.getContainerNode(rootContainer.getId());
      }
    }
    return null;
  }
View Full Code Here

        return node == null ? Collections.emptyList() : ((ProfileNode) node).getPropertySourceList();
    }

    @Override
    protected CreateJCloudsContainerAction createCloudContainerAction(Object current) {
        final ProfileNode node = (ProfileNode) current;
        return new CreateJCloudsContainerAction(node.getVersionNode(), null, node);
    }
View Full Code Here

        return new CreateJCloudsContainerAction(node.getVersionNode(), null, node);
    }

    @Override
    protected CreateSshContainerAction createSshContainerAction(Object current) {
        final ProfileNode node = (ProfileNode) current;
        return new CreateSshContainerAction(node.getVersionNode(), null, node);
    }
View Full Code Here

        return new CreateSshContainerAction(node.getVersionNode(), null, node);
    }

    @Override
    protected CreateChildContainerAction createChildContainerAction(Object current) {
        final ProfileNode node = (ProfileNode) current;
        return new CreateChildContainerAction(node);
    }
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.ContainersNode

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.