com.ibm.carma.ui.view
Class DefaultCarmaViewerComparator

java.lang.Object
  extended by org.eclipse.jface.viewers.ViewerComparator
      extended by com.ibm.carma.ui.view.DefaultCarmaViewerComparator

public class DefaultCarmaViewerComparator
extends org.eclipse.jface.viewers.ViewerComparator

Provides the sorting algorithm for display of CARMA model objects. The display algorithm should force the following display order:

  1. Status items
  2. Repository Instances
  3. CARMA Containers
  4. CARMA Contents
  5. other...


Field Summary
static java.lang.String COPYRIGHT
           
 
Constructor Summary
DefaultCarmaViewerComparator()
           
 
Method Summary
 int category(java.lang.Object element)
           
 
Methods inherited from class org.eclipse.jface.viewers.ViewerComparator
compare, isSorterProperty, sort
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Constructor Detail

DefaultCarmaViewerComparator

public DefaultCarmaViewerComparator()
Method Detail

category

public int category(java.lang.Object element)
Overrides:
category in class org.eclipse.jface.viewers.ViewerComparator