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

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


    }
    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

      }
    }
  }   
 
  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

    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

    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

    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

        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.Fabric

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.