Extension SDK 9.0.5

oracle.jdeveloper.model
Class CategoryFilter.JProjectComparator

java.lang.Object
  extended byoracle.ide.model.DefaultFilter.SortedComparator
      extended byoracle.jdeveloper.model.CategoryFilter.JProjectComparator
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
CategoryFilter

protected static final class CategoryFilter.JProjectComparator
extends DefaultFilter.SortedComparator

Comparator class used to sort children of the CategoryFilter.

The children of this filter are always instances of CategoryFolder. The folders are ordered numerically by category ID, as returned by CategoryFolder.getCategory(). The category ID constants are defined in this class -- see, for example, #JAVA_SOURCE. The Miscellaneous category, which is identified by Category.UNDEFINED, is always placed last in the order.


Field Summary
 
Fields inherited from class oracle.ide.model.DefaultFilter.SortedComparator
collator, SORT_ALPHA, SORT_BY_TYPE
 
Constructor Summary
protected CategoryFilter.JProjectComparator()
           
 
Method Summary
protected  int compareElementToElement(Element e1, Element e2)
          Template method for comparing two like Element objects in locale-sensitive collation order, representing the third level of comparison in the compare() call chain.
 
Methods inherited from class oracle.ide.model.DefaultFilter.SortedComparator
compare, compareElements, compareStrings, compareTNodes, equals, getOptions, setOptions
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategoryFilter.JProjectComparator

protected CategoryFilter.JProjectComparator()
Method Detail

compareElementToElement

protected int compareElementToElement(Element e1,
                                      Element e2)
Description copied from class: DefaultFilter.SortedComparator
Template method for comparing two like Element objects in locale-sensitive collation order, representing the third level of comparison in the compare() call chain.

Most subclasses should not need to override this method. The default implementation first compares the element short labels, followed by the element long labels if the short labels were the same.

Overrides:
compareElementToElement in class DefaultFilter.SortedComparator

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.