Class AbstractTemplatePreferencePage.TemplateViewerComparator
- java.lang.Object
-
- org.eclipse.jface.viewers.ViewerComparator
-
- com.e1c.g5.v8.dt.lcore.ui.templates.preferences.AbstractTemplatePreferencePage.TemplateViewerComparator
-
- Enclosing class:
- AbstractTemplatePreferencePage
protected class AbstractTemplatePreferencePage.TemplateViewerComparator extends ViewerComparator
Default ViewerComparator forAbstractTemplatePreferencePage.templatesTableViewer
-
-
Field Summary
Fields Modifier and Type Field Description protected int
columnIndex
The column index last selectedprotected int
sortOrder
The sort order of comparator
-
Constructor Summary
Constructors Constructor Description TemplateViewerComparator()
Returns new instance of this
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Viewer viewer, Object e1, Object e2)
int
getDirection()
Returns the style constant for the sort direction.void
setColumn(int column)
Sets the selected column to given one-
Methods inherited from class org.eclipse.jface.viewers.ViewerComparator
category, getComparator, isSorterProperty, sort
-
-
-
-
Field Detail
-
columnIndex
protected int columnIndex
The column index last selected
-
sortOrder
protected int sortOrder
The sort order of comparator- See Also:
getDirection()
-
-
Method Detail
-
getDirection
public int getDirection()
Returns the style constant for the sort direction.- Returns:
SWT.DOWN
for asc sorting,SWT.UP
otherwise
-
setColumn
public void setColumn(int column)
Sets the selected column to given one- Parameters:
column
- The column to set
-
compare
public int compare(Viewer viewer, Object e1, Object e2)
- Overrides:
compare
in classViewerComparator
-
-