Class JavaElementSorter


  • @Deprecated
    public class JavaElementSorter
    extends ViewerSorter
    Deprecated.
    Sorter for Java elements. Ordered by element category, then by element name. Package fragment roots are sorted as ordered on the classpath.

    This class may be instantiated; it is not intended to be subclassed.

    Since:
    2.0
    Restriction:
    This class is not intended to be subclassed by clients.
    • Constructor Detail

      • JavaElementSorter

        public JavaElementSorter()
        Deprecated.
        Constructor.
    • Method Detail

      • isSorterProperty

        @Deprecated
        public boolean isSorterProperty​(java.lang.Object element,
                                        java.lang.Object property)
        Deprecated.
        Bug 22518. Method never used: does not override ViewerSorter#isSorterProperty(Object, String). Method could be removed, but kept for API compatibility.
        Parameters:
        element - the element
        property - the property
        Returns:
        always true
      • category

        public int category​(java.lang.Object element)
        Deprecated.
        Overrides:
        category in class ViewerComparator
      • compare

        public int compare​(Viewer viewer,
                           java.lang.Object e1,
                           java.lang.Object e2)
        Deprecated.
        Overrides:
        compare in class ViewerComparator