jpov.viewer.lemma
Class LemmaSorter

java.lang.Object
  extended byorg.eclipse.jface.viewers.ViewerSorter
      extended byjpov.viewer.lemma.LemmaSorter

public class LemmaSorter
extends org.eclipse.jface.viewers.ViewerSorter

The class implements a sorter for the hypothesis viewer

Author:
L. Burdy

Constructor Summary
LemmaSorter(LemmaFilterWindow lfw)
          Constructs a lemma filter
 
Method Summary
 int compare(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object e1, java.lang.Object e2)
          If the two lines have the same origin, compare their nums, otherwise compare their origins.
 
Methods inherited from class org.eclipse.jface.viewers.ViewerSorter
category, getCollator, isSorterProperty, sort
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LemmaSorter

public LemmaSorter(LemmaFilterWindow lfw)
Constructs a lemma filter

Parameters:
lfw - The associated filter window
Method Detail

compare

public int compare(org.eclipse.jface.viewers.Viewer viewer,
                   java.lang.Object e1,
                   java.lang.Object e2)
If the two lines have the same origin, compare their nums, otherwise compare their origins.