public class CategoryComparator
extends org.eclipse.jface.viewers.ViewerComparator
implements java.util.Comparator
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object arg0,
java.lang.Object arg1) |
int |
compare(org.eclipse.jface.viewers.Viewer viewer,
java.lang.Object e1,
java.lang.Object e2) |
IField |
getCategoryField()
Get the category field.
|
void |
restoreState(org.eclipse.jface.dialogs.IDialogSettings dialogSettings,
ValidationView view)
Restore the state of the receiver from the dialog settings.
|
void |
saveState(org.eclipse.jface.dialogs.IDialogSettings dialogSettings)
Save the state of the receiver.
|
void |
setCategoryField(IField field)
Set the field that we are categorizing by.
|
void |
setTableSorter(TableComparator sorter2)
Set the inner sorter to the new sorter.
|
category, getComparator, isSorterProperty, sort
public int compare(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object e1, java.lang.Object e2)
compare
in class org.eclipse.jface.viewers.ViewerComparator
public int compare(java.lang.Object arg0, java.lang.Object arg1)
compare
in interface java.util.Comparator
public IField getCategoryField()
public void setCategoryField(IField field)
field
- public void setTableSorter(TableComparator sorter2)
sorter2
- public void saveState(org.eclipse.jface.dialogs.IDialogSettings dialogSettings)
dialogSettings
- public void restoreState(org.eclipse.jface.dialogs.IDialogSettings dialogSettings, ValidationView view)
dialogSettings
- view
-