Package com.iizigo.editor
Class EndNodeTextFilter
java.lang.Object
org.eclipse.jface.viewers.ViewerFilter
com.iizigo.editor.EndNodeTextFilter
- All Implemented Interfaces:
- IFilterListener
An end-node text filter for Viewers used by the search engine.
- Author:
- Christopher Mindus
- Constructor SummaryConstructorsConstructorDescriptionCreates the filter, non-initialized.- EndNodeTextFilter- (StructuredViewer viewer, IFilter filterComponent) Creates the filter for the viewer.
- Method SummaryModifier and TypeMethodDescription- void- addUnfiltered- (DesignerProp... props) Adds a DesignerProp extending class or a class that will never be filtered.- void- addUnfiltered- (GProp<?>... props) Adds a DesignerProp extending class or a class that will never be filtered.- void- addUnfiltered- (Class<?>... clazz) Adds a DesignerProp extending class or a class that will never be filtered.Gets the bold font styler.Gets the filter component.Gets the search text filter for the label provider.- void- initialize- (StructuredViewer viewer, IFilter filterComponent) Initializes after creation from empty constructor.- static boolean- isElementOmitted- (Class<?> clazz) Checks if an element class is omitted- static boolean- isElementOmitted- (Object element) Checks if an element is omitted filtering for performance reasons, i.e.- voidNotification that a new text has been set, null for none, never empty string.- booleanReturns whether the given element makes it through this filter.- void- setFilterColumn- (int column) Sets the filtering column for the text for table viewers or tree table viewers.- Methods inherited from class org.eclipse.jface.viewers.ViewerFilter- filter, filter, isFilterProperty
- Constructor Details- EndNodeTextFilterpublic EndNodeTextFilter()Creates the filter, non-initialized. Call- initialize(viewer,filterComponent)to initialize.
- EndNodeTextFilterCreates the filter for the viewer.- Parameters:
- viewer- The common viewer.
- filterComponent- The filter component.
 
 
- Method Details- isElementOmittedChecks if an element is omitted filtering for performance reasons, i.e. typically Java classpath, etc. null value also returns true.
- isElementOmittedChecks if an element class is omitted
- setFilterColumnpublic void setFilterColumn- (int column) Sets the filtering column for the text for table viewers or tree table viewers.
- initializeInitializes after creation from empty constructor.- Parameters:
- viewer- The common viewer.
- filterComponent- The filter component.
 
- getFilterComponentGets the filter component.- Returns:
- The filter component, or null for none.
 
- addUnfilteredAdds a DesignerProp extending class or a class that will never be filtered.- Parameters:
- clazz- The list of classes that will not be filtered.
 
- addUnfilteredAdds a DesignerProp extending class or a class that will never be filtered.- Parameters:
- props- The list of properties that will not be filtered.
 
- addUnfilteredAdds a DesignerProp extending class or a class that will never be filtered.- Parameters:
- props- The list of properties that will not be filtered.
 
- onFilterNotification that a new text has been set, null for none, never empty string.- Specified by:
- onFilterin interface- IFilterListener
- Parameters:
- text- The filter text to apply, null for none (never empty string).
 
- getFilterTextGets the search text filter for the label provider.- Returns:
- The filter text, or null for none, never empty string.
 
- getBoldFontStylerGets the bold font styler.
- selectReturns whether the given element makes it through this filter.- Specified by:
- selectin class- ViewerFilter
- Parameters:
- viewer- The viewer.
- parentElement- The parent element.
- element- The element.
- Returns:
- trueif element is included in the filtered set, and- falseif excluded.