org.eclipse.mylar.internal.tasks.ui
Class TasksReminderDialog.ReminderTaskSorter

java.lang.Object
  extended by org.eclipse.jface.viewers.ViewerComparator
      extended by org.eclipse.jface.viewers.ViewerSorter
          extended by org.eclipse.mylar.internal.tasks.ui.TasksReminderDialog.ReminderTaskSorter
Enclosing class:
TasksReminderDialog

private static class TasksReminderDialog.ReminderTaskSorter
extends org.eclipse.jface.viewers.ViewerSorter


Field Summary
private  int criteria
           
static int DATE
           
static int DESCRIPTION
           
static int PRIORITY
           
 
Fields inherited from class org.eclipse.jface.viewers.ViewerSorter
collator
 
Constructor Summary
TasksReminderDialog.ReminderTaskSorter(int criteria)
           
 
Method Summary
 int compare(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object obj1, java.lang.Object obj2)
           
private  int compareDate(ITask task1, ITask task2)
           
private  int compareDescription(ITask task1, ITask task2)
           
private  int comparePriority(ITask task1, ITask task2)
           
 
Methods inherited from class org.eclipse.jface.viewers.ViewerSorter
getCollator, getComparator
 
Methods inherited from class org.eclipse.jface.viewers.ViewerComparator
category, isSorterProperty, sort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESCRIPTION

public static final int DESCRIPTION
See Also:
Constant Field Values

PRIORITY

public static final int PRIORITY
See Also:
Constant Field Values

DATE

public static final int DATE
See Also:
Constant Field Values

criteria

private int criteria
Constructor Detail

TasksReminderDialog.ReminderTaskSorter

public TasksReminderDialog.ReminderTaskSorter(int criteria)
Method Detail

compare

public int compare(org.eclipse.jface.viewers.Viewer viewer,
                   java.lang.Object obj1,
                   java.lang.Object obj2)
Overrides:
compare in class org.eclipse.jface.viewers.ViewerComparator

compareDescription

private int compareDescription(ITask task1,
                               ITask task2)

comparePriority

private int comparePriority(ITask task1,
                            ITask task2)

compareDate

private int compareDate(ITask task1,
                        ITask task2)