Class JavaElementComparator


  • public class JavaElementComparator
    extends ViewerComparator
    Viewer comparator for Java elements. Ordered by element category, then by element name. Package fragment roots are either sorted as ordered on the classpath, or by their name.

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

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

      • JavaElementComparator

        public JavaElementComparator()
        Constructor.
      • JavaElementComparator

        public JavaElementComparator​(boolean sortPFRByName)
        Constructor.
        Parameters:
        sortPFRByName - When true IPackageFragmentRoots are sorted by name and not by their classpath order
        Since:
        3.14