Package org.fusesource.ide.jmx.fabric8

Examples of org.fusesource.ide.jmx.fabric8.Messages


    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

            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

      Root r = w.getRoot();
      if( r != null ) {
        if (r.containsDomain("io.fabric8")) {
          try {
            JmxPluginJmxTemplate jmxTemplate = new JmxPluginJmxTemplate(r.getConnection());
            Fabric8JMXFacade facade = new Fabric8JMXFacade(jmxTemplate);
            Fabric8Node fabric8 = new Fabric8Node(r, facade);
            return new Object[]{fabric8};
          } catch (MalformedObjectNameException ex) {
            Fabric8JMXPlugin.getLogger().error(ex);
          }
View Full Code Here

  public FabricStatusTabSection() {
  }

  @Override
  public void setInput(IWorkbenchPart part, ISelection selection) {
    Fabric8Node fabric = (Fabric8Node) Selections.getFirstSelection(selection);
    if (fabric == current) {
      return;
    }
    if (current != null) {
      current.removeFabricUpdateRunnable(refreshRunnable);
View Full Code Here

      if( r != null ) {
        if (r.containsDomain("io.fabric8")) {
          try {
            JmxPluginJmxTemplate jmxTemplate = new JmxPluginJmxTemplate(r.getConnection());
            Fabric8JMXFacade facade = new Fabric8JMXFacade(jmxTemplate);
            Fabric8Node fabric8 = new Fabric8Node(r, facade);
            return new Object[]{fabric8};
          } catch (MalformedObjectNameException ex) {
            Fabric8JMXPlugin.getLogger().error(ex);
          }
        }
View Full Code Here

TOP

Related Classes of org.fusesource.ide.jmx.fabric8.Messages

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.