Examples of toList()


Examples of org.apache.accumulo.core.util.ByteArraySet.toList()

      verify(c, check(c, SystemPermission.CREATE_TABLE));
      checkNotMetadataTable(tableName, TableOperation.CREATE);
      checkTableName(tableName, TableOperation.CREATE);
     
      final ByteArraySet uniq = new ByteArraySet(splitPoints);
      splitPoints = uniq.toList();
     
      int newly_created_tablets = 0;
     
      // Don't create new tables until we have read the entire metadata table
      while (stillMaster() && !cycledOnce()) {
View Full Code Here

Examples of org.apache.pdfbox.cos.COSArray.toList()

        // ---- compare both arrays
        boolean isEqual = true;
        for (Object of : af.toList())
        {
            boolean oneIsEquals = false;
            for (Object ol : al.toList())
            {
                // ---- according to PDF Reference 1-4, ID is an array containing two
                // strings
                if (!oneIsEquals)
                    oneIsEquals = ((COSString) ol).getString().equals(((COSString) of).getString());
View Full Code Here

Examples of org.apache.uima.caseditor.editor.AnnotationSelection.toList()

    CAS documentCAS = mDocument.getCAS();

    AnnotationFS mergedAnnotation = documentCAS.createAnnotation(annotations.getFirst().getType(),
            annotations.getFirst().getBegin(), annotations.getLast().getEnd());

    mDocument.removeAnnotations(annotations.toList());
    mDocument.addFeatureStructure(mergedAnnotation);
  }
}
View Full Code Here

Examples of org.apache.uima.caseditor.editor.FeatureStructureSelection.toList()

      if (fsSelection.size() == 1 && !pinAction.isChecked()) {

        // filter out selection which are cause by this view itself
        if (editView != part) {
          viewer.setInput(fsSelection.toList().get(0));
        }
      }
    }
  }
View Full Code Here

Examples of org.apache.uima.caseditor.editor.util.AnnotationSelection.toList()

    CAS documentCAS = document.getCAS();

    AnnotationFS mergedAnnotation = documentCAS.createAnnotation(annotations.getFirst().getType(),
            annotations.getFirst().getBegin(), annotations.getLast().getEnd());

    document.removeFeatureStructures(annotations.toList());
    document.addFeatureStructure(mergedAnnotation);
  }
}
View Full Code Here

Examples of org.dspace.storage.rdbms.TableRowIterator.toList()

        // Get all the epeople that match the query
    TableRowIterator rows = DatabaseManager.query(context, dbquery, paramArr);
    try
        {
            List epeopleRows = rows.toList();
            EPerson[] epeople = new EPerson[epeopleRows.size()];

            for (int i = 0; i < epeopleRows.size(); i++)
            {
                TableRow row = (TableRow) epeopleRows.get(i);
View Full Code Here

Examples of org.eclipse.jface.viewers.ISelection.toList()

      public boolean performDrop(final Object data) {
        if (data instanceof IStructuredSelection) {
          SafeRunner.run(new LoggingSafeRunnable() {
            public void run() throws Exception {
              IStructuredSelection selection = (IStructuredSelection) data;
              List<?> draggedObjects = selection.toList();
              perfromDrop(draggedObjects, getCurrentTarget());
            }
          });

          return true;
View Full Code Here

Examples of org.eclipse.jface.viewers.ISelection.toList()

      public boolean performDrop(final Object data) {
        if (data instanceof IStructuredSelection) {
          SafeRunner.run(new LoggingSafeRunnable() {
            public void run() throws Exception {
              IStructuredSelection selection = (IStructuredSelection) data;
              List<?> draggedObjects = selection.toList();
              perfromDrop(draggedObjects, getCurrentTarget());
            }
          });

          return true;
View Full Code Here

Examples of org.eclipse.jface.viewers.IStructuredSelection.toList()

    return data;
  }

  private void onDelete() {
    IStructuredSelection selection = (IStructuredSelection) fNewsColumnViewer.getSelection();
    List<?> elements = selection.toList();
    for (Object element : elements) {
      fModel.removeColumn((NewsColumn) element);
      fNewsColumnViewer.remove(element);
    }
View Full Code Here

Examples of org.eclipse.jface.viewers.IStructuredSelection.toList()

    }
  }

  private ISelection getNormalizedSelection() {
    IStructuredSelection selection = (IStructuredSelection) getViewer().getSelection();
    List<?> selectedObjects = selection.toList();

    /* Retrieve dragged Marks / Folders and separate */
    List<IEntity> draggedEntities = new ArrayList<IEntity>(selectedObjects.size());
    List<IFolder> draggedFolders = new ArrayList<IFolder>(selectedObjects.size());
    for (Object object : selectedObjects) {
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.