Examples of ClusterCoordinates


Examples of net.helipilot50.aerospike.model.ClusterCoordinates

          continue; //skip it if its not a folder
        IFolder folder = (IFolder)resource;
        IFile file = folder.getFile(ClusterCoordinates.FILE_NAME);
        if (!file.exists())
          continue; //skip it if the folder does not contain the coordinates file
        ClusterCoordinates coordinates = new ClusterCoordinates(file.getContents());
        elements.add(coordinates);
      }
    } catch (CoreException e) {
      Activator.log(IStatus.ERROR, "Cluster List Content Provider error", e);
    }
View Full Code Here

Examples of net.helipilot50.aerospike.model.ClusterCoordinates

   
    serverTreeViewer = new TreeViewer(sashForm, SWT.BORDER);
    serverTreeViewer.addSelectionChangedListener(new ISelectionChangedListener() {
      public void selectionChanged(SelectionChangedEvent event) {
        ITreeSelection selection = (ITreeSelection) event.getSelection();
        ClusterCoordinates coordinates = (ClusterCoordinates) selection.getFirstElement();
        currentDB = coordinates;
        if (viewer != null && currentDB != null)
          viewer.setInput(currentDB.getStats());
      }
    });
View Full Code Here

Examples of net.helipilot50.aerospike.model.ClusterCoordinates

//    dbCoordinates.setImageDescriptor(Activator.getImageDescriptor("icons/repository.gif"));
   
    doubleClickAction = new Action() {
      public void run() {
        ISelection selection = serverTreeViewer.getSelection();
        ClusterCoordinates obj = (ClusterCoordinates) ((IStructuredSelection)selection).getFirstElement();
        NewDBCoordinatesWizard wizard = new NewDBCoordinatesWizard(obj);
        WizardDialog wd = new  WizardDialog(viewer.getControl().getShell(), wizard);
        wd.setTitle(wizard.getWindowTitle());
        wd.open();
      }
View Full Code Here

Examples of net.helipilot50.aerospike.model.ClusterCoordinates

  private ClusterCoordinates dbCoordinates;
  private DBCoordinatesWizardPage page;
  public NewDBCoordinatesWizard() {
    super();
    setNeedsProgressMonitor(true);
    this.dbCoordinates = new ClusterCoordinates("", "", 3000);
  }
View Full Code Here

Examples of net.helipilot50.aerospike.model.ClusterCoordinates

   
  }

  @Override
  public boolean performFinish() {
    final ClusterCoordinates db = dbCoordinates;
    IRunnableWithProgress op = new IRunnableWithProgress() {
      public void run(IProgressMonitor monitor) throws InvocationTargetException {
        monitor.beginTask("Saving Database Coordinates for " + db.getName(), 6);
        try {
          doFinish(db, monitor);
        } catch (CoreException e) {
          throw new InvocationTargetException(e);
        } finally {
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.