Package org.fusesource.ide.jmx.fabric8.navigator.properties

Examples of org.fusesource.ide.jmx.fabric8.navigator.properties.FabricStatusTableSheetPage


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


    IStructuredSelection selection = getSelection();
    if (selection != null) {
      boolean changed = false;
      Iterator iterator = selection.iterator();
      while (iterator.hasNext()) {
        ContainerNode agentNode = ContainerNode
            .toContainerNode(iterator.next());
        if (agentNode != null) {
          if (!agentNode.matches(version)) {
            agentNode.getContainer().setVersion(version);
            changed = true;
          }
        }
      }
      if (changed) {
View Full Code Here

//    return new CreateChildContainerAction(fabric);
//  }

  protected void updateActionStatus() {
    List<Container> selectedContainers = getSelectedContainers();
    ContainerNode containerNode = getSingleSelectedRootContainerNode(selectedContainers);
//    getCreateChildContainerAction().setContainerNode(containerNode);
//    getCreateChildContainerAction().updateEnabled();
    int selectedContainerSize = selectedContainers.size();
    openTerminalAction.setEnabled(selectedContainerSize > 0);
    startAction.setEnabled(countStarted(selectedContainers, false) > 0);
View Full Code Here

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

    IStructuredSelection selection = getSelection();
    if (selection != null) {
      boolean changed = false;
      Iterator iterator = selection.iterator();
      while (iterator.hasNext()) {
        ContainerNode agentNode = ContainerNode
            .toContainerNode(iterator.next());
        if (agentNode != null) {
          if (!agentNode.matches(version)) {
            agentNode.getContainer().setVersion(version);
            changed = true;
          }
        }
      }
      if (changed) {
View Full Code Here

//  protected abstract CreateChildContainerAction createChildContainerAction(
//      Object current);

  protected void updateActionStatus() {
    List<Container> selectedContainers = getSelectedContainers();
    ContainerNode containerNode = getSingleSelectedRootContainerNode(selectedContainers);
//    createChildContainerAction.setContainerNode(containerNode);
//    createChildContainerAction.updateEnabled();
    int selectedContainerSize = selectedContainers.size();
    openTerminalAction.setEnabled(selectedContainerSize > 0);
    boolean isRootContainerSelected = false;
View Full Code Here

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

      }
    }
  }

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

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

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

TOP

Related Classes of org.fusesource.ide.jmx.fabric8.navigator.properties.FabricStatusTableSheetPage

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.