List of usage examples for org.eclipse.jface.viewers ViewerComparator subclass-usage
From source file org.nightlabs.eclipse.preferences.ui.ResourceComparator.java
/**
* Sorter for viewers that display items of type <code>IResource</code>.
* The sorter supports two sort criteria:
* <p>
* <code>NAME</code>: Folders are given order precedence, followed by files.
* Within these two groups resources are ordered by name. All name comparisons
From source file org.openehealth.ipf.tools.manager.connection.ui.utils.sorter.ColumnViewerSorter.java
/** * Base class which supports sorting of JFace ColumnViewer components. * * @author Mitko Kolev */ public abstract class ColumnViewerSorter extends ViewerComparator {
From source file org.openscada.ae.ui.testing.views.EntryTimestampViewerComparator.java
final class EntryTimestampViewerComparator extends ViewerComparator { @Override public int compare(final Viewer viewer, final Object e1, final Object e2) { if (!(e1 instanceof Event) || !(e2 instanceof Event)) { return -super.compare(viewer, e1, e2); }
From source file org.openscada.ae.ui.testing.views.SourceTimestampViewerComparator.java
final class SourceTimestampViewerComparator extends ViewerComparator { @Override public int compare(final Viewer viewer, final Object e1, final Object e2) { if (!(e1 instanceof Event) || !(e2 instanceof Event)) { return -super.compare(viewer, e1, e2); }
From source file org.openscada.core.ui.connection.information.InformationBeanComparator.java
public class InformationBeanComparator extends ViewerComparator { @Override public int compare(final Viewer viewer, final Object e1, final Object e2) { if (e1 instanceof InformationBean && e2 instanceof InformationBean) { return ((InformationBean) e1).compareTo((InformationBean) e2); }
From source file org.openscada.da.ui.widgets.realtime.ListEntryComparator.java
public class ListEntryComparator extends ViewerComparator { @Override public int compare(final Viewer viewer, final Object e1, final Object e2) { if (e1 instanceof ListEntry && e2 instanceof ListEntry) { final ListEntry l1 = (ListEntry) e1; final ListEntry l2 = (ListEntry) e2;
From source file org.pentaho.ui.xul.swt.tags.treeutil.XulColumnSorter.java
/**
* Its unfortunate due to the lack of a base class or common interface between a tree and a table in SWT that we must
* resort to this random separation of code in an abstract class. The pieces that have been abstracted are those that
* require us to talk directly to the table or tree to set necessary variables.
*
* @author GMoran
From source file org.rssowl.ui.internal.editors.feed.NewsComparator.java
/**
* Sorts the elements of the feed view based on the choices provided by the
* user.
*
* @author Ismael Juma (ismael@juma.me.uk)
* @author bpasero
From source file org.rssowl.ui.internal.views.explorer.BookMarkSorter.java
/** * @author bpasero */ public class BookMarkSorter extends ViewerComparator { /* Return this is the sort should be skipped for two elements */
From source file org.seasar.uruma.viewer.AbstractGenericColumnViewerComparator.java
/**
* {@link ColumnViewer} ???<br />
* ? {@link ColumnViewer#setComparator(ViewerComparator)}
* ??????????<br />
* ?? {@link ColumnViewer} ??({@link Table} {@link Tree}
* ??)???????????<br />