Examples of Fabric


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

    dialog.open();
  }

  public void addCloud(FabricDetails details) {
    if (!FabricDetails.getDetailList().contains(details)) {
      Fabric node = fabrics.addFabric(details);
      Viewer viewer = fabrics.getViewer();
      Viewers.expand(viewer, node, 2);
      FabricDetails.getDetailList().add(details);
      onFabricDetailsAdded(details);
    }
View Full Code Here

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

      Action doubleClickAction = hdc.getDoubleClickAction();
      if (doubleClickAction != null) {
        doubleClickAction.run();
      }
    } else if (element instanceof Fabric) {
      final Fabric fabric = (Fabric) element;
      UIJob job = new UIJob("Connect to Fabric: " + fabric.toString()) {
       
        /* (non-Javadoc)
         * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor)
         */
        @Override
 
View Full Code Here

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

    }
    return null;
  }

  private void deleteRequirementsForProfile(ExecutionEvent event, String profileId) {
    Fabric fabricNode = getSelectedFabric();
   
    RequirementsDTO reqs = fabricNode.getFabricService().getRequirements();
   
    try {
      if (reqs.findProfileRequirements(profileId) != null) {
        reqs.removeProfileRequirements(profileId);
        return;
      }
    } finally {
      try {
        fabricNode.getFabricService().setRequirements(reqs);
      } finally {
        IWorkbenchPart wp = HandlerUtil.getActivePart(event);
        if (wp instanceof PropertySheet) {
          PropertySheet ps = (PropertySheet)wp;
          if (ps.getCurrentPage() instanceof FabricTabViewPage) {
View Full Code Here

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

      }
    }
  }   
 
  private Fabric getSelectedFabric() {
    Fabric f = null;
   
    Object selectedFabricObject = Selections.getFirstSelection(FabricPlugin.getFabricNavigator().getCommonViewer().getSelection());
    if (selectedFabricObject != null && selectedFabricObject instanceof Fabric) {
      f = (Fabric)selectedFabricObject;
    }
View Full Code Here

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

    String agentName = form.getAgentName();
    CreateJCloudsContainerOptions.Builder args = form.getCreateCloudArguments();
    args.name(agentName);
    args.resolver(PUBLIC_IP);

    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) {
View Full Code Here

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

    public FabricStatusTabSection() {
    }

    @Override
    public void setInput(IWorkbenchPart part, ISelection selection) {
        final Fabric fabric = (Fabric) Selections.getFirstSelection(selection);
        if (fabric == current) {
            return;
        }
        if (current != null) {
            current.removeFabricUpdateRunnable(refreshRunnable);
        }
        current = fabric;
        if (current != null) {
            current.addFabricUpdateRunnable(refreshRunnable);
        }
       
        Job loadJob = new Job("Loading " + fabric.toString() + " data...") {
     
      @Override
      protected IStatus run(IProgressMonitor monitor) {
        final Collection<ProfileStatusDTO> statuses = getProfileStatuses();
            Display.getDefault().asyncExec(new Runnable() {
View Full Code Here

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

    public void setInput(IWorkbenchPart part, ISelection selection) {
      VersionsNode vNode = (VersionsNode)Selections.getFirstSelection(selection);
        if (vNode == null) {
          return;
        }
      final Fabric fabric = vNode.getFabric();
        if (fabric == current) {
            return;
        }
        if (current != null) {
            current.removeFabricUpdateRunnable(refreshRunnable);
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.