Class XViewerPatternFilter

    • Field Detail

      • text

        private java.lang.String text
    • Constructor Detail

      • XViewerPatternFilter

        public XViewerPatternFilter()
    • Method Detail

      • setFilterText

        public void setFilterText​(java.lang.String text)
      • setPattern

        public void setPattern​(java.lang.String patternString)
        Description copied from class: PatternFilter
        The pattern string for which this filter should select elements in the viewer.
        Overrides:
        setPattern in class PatternFilter
      • isLeafMatch

        public boolean isLeafMatch​(org.eclipse.jface.viewers.Viewer viewer,
                                   java.lang.Object element)
        Description copied from class: PatternFilter
        Check if the current (leaf) element is a match with the filter text. The default behavior checks that the label of the element is a match. Subclasses should override this method.
        Overrides:
        isLeafMatch in class PatternFilter
        Parameters:
        viewer - the viewer that contains the element
        element - the tree element to check
        Returns:
        true if the given element's label matches the filter text