Examples of Sorter


Examples of org.apache.myfaces.tobago.component.Sorter

        // TODO should be first invokeMethodBinding and the update state
        getSheetState(getFacesContext()).updateSortState((SortActionEvent) facesEvent);
        FacesUtils.invokeMethodBinding(getFacesContext(), methodBinding, facesEvent);
      } else {
        getSheetState(getFacesContext()).updateSortState((SortActionEvent) facesEvent);
        new Sorter().perform((SortActionEvent) facesEvent);
      }
    }
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.component.Sorter

        // TODO should be first invokeMethodBinding and the update state
        getSheetState(getFacesContext()).updateSortState((SortActionEvent) facesEvent);
        expression.invoke(getFacesContext().getELContext(), new Object[]{facesEvent});
      } else {
        getSheetState(getFacesContext()).updateSortState((SortActionEvent) facesEvent);
        new Sorter().perform((SortActionEvent) facesEvent);
      }
    }
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.component.Sorter

        // TODO should be first invokeMethodBinding and the update state
        getSheetState(getFacesContext()).updateSortState((SortActionEvent) facesEvent);
        FacesUtils.invokeMethodBinding(getFacesContext(), methodBinding, facesEvent);
      } else {
        getSheetState(getFacesContext()).updateSortState((SortActionEvent) facesEvent);
        new Sorter().perform((SortActionEvent) facesEvent);
      }
    }
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.component.Sorter

        // TODO should be first invokeMethodBinding and the update state
        getSheetState(getFacesContext()).updateSortState((SortActionEvent) facesEvent);
        expression.invoke(getFacesContext().getELContext(), new Object[]{facesEvent});
      } else {
        getSheetState(getFacesContext()).updateSortState((SortActionEvent) facesEvent);
        new Sorter().perform((SortActionEvent) facesEvent);
      }
    }
  }
View Full Code Here

Examples of org.broad.igv.tools.sort.Sorter

        userMessageWriter.println("Sorting " + ifile + "  -> " + ofile);
        File inputFile = new File(ifile);
        boolean writeStdOut = ofile.equals(STDOUT_FILE_STR);
        File outputFile = writeStdOut ? null : new File(ofile);
        Sorter sorter = Sorter.getSorter(inputFile, outputFile);
        if (tmpDirName != null && tmpDirName.trim().length() > 0) {
            File tmpDir = new File(tmpDirName);
            if (!tmpDir.exists()) {
                log.error("Error: tmp directory: " + tmpDir.getAbsolutePath() + " does not exist.");
                throw new PreprocessingException("Error: tmp directory: " + tmpDir.getAbsolutePath() + " does not exist.");
            }
            sorter.setTmpDir(tmpDir);
        }

        sorter.setMaxRecords(maxRecords);

        try {
            sorter.run();
        } catch (Exception e) {
            e.printStackTrace();
            // Delete output file as its probably corrupt
            if (writeStdOut && outputFile.exists()) {
                outputFile.delete();
View Full Code Here

Examples of org.conserve.sort.Sorter

                throw new IllegalArgumentException("Multiple limits defined.");
              }
            }
            for (int x = 0; x < subClauses.length; x++)
            {
              Sorter sorter = (Sorter) subClauses[x];
              generateOrder(sorter, sp);
            }
          }
          else if (where instanceof ConditionalClause)
          {
View Full Code Here

Examples of org.eclipse.wst.sse.ui.internal.util.Sorter

  protected IExtension[] orderExtensions(IExtension[] extensions) {
    // By default, the order is based on plugin id sorted
    // in ascending order. The order for a plugin providing
    // more than one extension for an extension point is
    // dependent in the order listed in the XML file.
    Sorter sorter = new Sorter() {
      public boolean compare(Object extension1, Object extension2) {
        String s1 = ((IExtension) extension1).getNamespace().toUpperCase();
        String s2 = ((IExtension) extension2).getNamespace().toUpperCase();
        //Return true if elementTwo is 'greater than' elementOne
        return s2.compareTo(s1) > 0;
      }
    };

    Object[] sorted = sorter.sort(extensions);
    IExtension[] sortedExtension = new IExtension[sorted.length];
    System.arraycopy(sorted, 0, sortedExtension, 0, sorted.length);
    return sortedExtension;
  }
View Full Code Here

Examples of org.glassfish.hk2.runlevel.Sorter

       
        private List<ServiceHandle<?>> applySorters(List<ServiceHandle<?>> jobs) {
            List<ServiceHandle<?>> retVal = jobs;
           
            for (ServiceHandle<Sorter> sorterHandle : sorters) {
                Sorter sorter = sorterHandle.getService();
                if (sorter == null) continue;
               
                List<ServiceHandle<?>> sortedList = sorter.sort(retVal);
                if (sortedList == null) continue;
               
                retVal = sortedList;
            }
           
View Full Code Here

Examples of org.junit.runner.manipulation.Sorter

     * @see org.junit.runners.ParentRunner#sort(org.junit.runner.manipulation.Sorter)
     */
    @Override
    public void sort(Sorter sorter)
    {
        super.sort(new Sorter(new Comparator<Description>() {
            @Override
            public int compare(Description o1, Description o2) {
                return o1.getDisplayName().compareTo(o2.getDisplayName());
            }
        }));
View Full Code Here

Examples of org.junit.runner.manipulation.Sorter

      new JUnitCore().run(unsorted);
    }
   
    @Test public void testClassRunnerCanBeWrappedAroundUnsortable() throws InitializationError {
      TestClassRunner runner= new TestClassRunner(Unsortable.class, new UnsortableRunner(Unsortable.class));
      runner.sort(new Sorter(forward()));
    }
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.