Package net.helipilot50.aerospike.model

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


   
    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

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

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

   
  }

  @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

        CloneHelper.cloneClientProperties(source, target);
        return target;
    }

    public static JTree cloneJTree(JTree source) {
        DisplayNode root = clone((DisplayNode) source.getModel().getRoot(), true);
        TreeViewModel dtm = new TreeViewModel(root);
        JTree target = new JTree(dtm);
        CloneHelper.cloneComponent(source, target, new String[] {"UI", // class javax.swing.plaf.TreeUI
                "UIClassID", // class java.lang.String
                "accessibleContext", // class javax.accessibility.AccessibleContext
View Full Code Here

        this.editor = new BorderedComboBoxEditor();
        this.setEditor(this.editor);
        this.setRenderer(new BorderedComboBoxRenderer());
        JTextComponent comp = (JTextComponent)this.editor.getEditorComponent();
        comp.setBackground(this.getBackground());
        comp.setDocument(new FixedLengthDocument(0));

        comp.addKeyListener(new ComboBoxKeyHandler());
    }
View Full Code Here

            }
            if (autoComplete) {
                editComponent.setDocument(new FillinManagementDocument(this, showDropdowns, listEntriesOnly, maxCharacters));
            }
            else {
                editComponent.setDocument(new FixedLengthDocument(maxCharacters));
            }
        }
    }
View Full Code Here

        target.setPreferredSize(source.isPreferredSizeSet() ? source.getPreferredSize() : null);
        target.setMinimumSize(source.isMinimumSizeSet() ? source.getMinimumSize() : null);
        target.setMaximumSize(source.isMaximumSizeSet() ? source.getMaximumSize() : null);
       
        if (source instanceof JComponent) {
          GridCell orig = GridCell.getExisting((JComponent)source);
          if (orig != null) {
            GridCell cell = GridCell.get((JComponent)target);
            cell.setWidthPolicy(orig.getWidthPolicy());
            cell.setHeightPolicy(orig.getHeightPolicy());
          }
          // TF:03/11/2008:We need to clone specific client properties too, otherwise some things won't work.
          ArrayFieldCellHelper.cloneComponentArrayParts((JComponent)source, (JComponent)target);
        }
    }
View Full Code Here

                    ((TitledBorder) border).setTitle("");
                }
            } else {
                if (pCaption != null) {
                    // TitledBorder tb = BorderFactory.createTitledBorder(border, caption.toString(), TitledBorder.LEFT, TitledBorder.TOP);
                    TitledBorder tb = new GridTitledBorder(border, caption.toString(), TitledBorder.LEFT, TitledBorder.TOP);
                    if (this.captionFont != null) {
                        tb.setTitleFont(this.captionFont);
                    }
                    setBorder(tb);
                }
            }
        } else {
          GridTitledBorder gridBorder;
            if (pCaption != null) {
              gridBorder = new GridTitledBorder(pCaption.toString());
            } else {
              gridBorder = new GridTitledBorder("");
            }
            if (this.captionFont != null) {
              gridBorder.setTitleFont(this.captionFont);
            }
            setBorder(gridBorder);
        }
    }
View Full Code Here

TOP

Related Classes of net.helipilot50.aerospike.model.ClusterCoordinates

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.