Package org.eclipse.test.internal.performance.results.model

Examples of org.eclipse.test.internal.performance.results.model.ResultsElement.compareTo()


    // of the #compareTo(Object) in the ResultsElement hierarchy
    public int compare(Viewer view, Object e1, Object e2) {
      // Config and Build results are sorted in reverse order
      if (e1 instanceof BuildResultsElement) {
        ResultsElement element = (ResultsElement) e2;
        return element.compareTo(e1);
      }
      if (e1 instanceof ResultsElement) {
        ResultsElement element = (ResultsElement) e1;
        return element.compareTo(e2);
      }
View Full Code Here


        ResultsElement element = (ResultsElement) e2;
        return element.compareTo(e1);
      }
      if (e1 instanceof ResultsElement) {
        ResultsElement element = (ResultsElement) e1;
        return element.compareTo(e2);
      }
      return super.compare(view, e1, e2);
    }
  };
  this.viewer.setSorter(nameSorter);
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.