Class ResultsComparator
java.lang.Object
org.eclipse.jface.viewers.ViewerComparator
com._1c.g5.v8.dt.internal.profiling.ui.view.ResultsComparator
- Direct Known Subclasses:
AllResultsTableComparator
,CompareTreeComparator
,MethodsTreeComparator
,ResultsTableComparator
Contains common methods for comparators in different views with profiling results.
Child classes must override the behaviour of
Child classes must override the behaviour of
compare(Viewer viewer, Object e1, Object e2)
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Gets direction of sorting.void
setColumn
(int columnIndex) Sets the index of column to be used to sort the tree or switches the direction of sorting if column was selected twice.Methods inherited from class org.eclipse.jface.viewers.ViewerComparator
category, compare, getComparator, isSorterProperty, sort
-
Field Details
-
propertyIndex
protected int propertyIndex -
descending
protected boolean descending
-
-
Constructor Details
-
ResultsComparator
public ResultsComparator()
-
-
Method Details
-
getDirection
public int getDirection()Gets direction of sorting.- Returns:
SWT.DOWN
if table is to be sorted in descending order,SWT.UP
otherwise.
-
setColumn
public void setColumn(int columnIndex) Sets the index of column to be used to sort the tree or switches the direction of sorting if column was selected twice.- Parameters:
columnIndex
- The index of selected column (current accepted values are 0-8)
-