Class SelectTypeDialogFilter
- java.lang.Object
-
- org.eclipse.jface.viewers.ViewerFilter
-
- com._1c.g5.v8.dt.md.ui.dialogs.types.SelectTypeDialogFilter
-
public class SelectTypeDialogFilter extends ViewerFilter
Creates filter that is able to filter types list by English and Russian names using symbols '?' and '*' as placeholders. Case insensitive. The pattern is matched as a substring.
-
-
Constructor Summary
Constructors Constructor Description SelectTypeDialogFilter(String searchPatternText)
Creates filter that is able to filter types list by English and Russian names using symbols '?' and '*' as placeholders.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Matcher
createMatchers(TypeInfoTreeItem typeInfoTreeItem)
Returns matcher that can be used for applying regular expression with early specified pattern to caption oftypeInfoTreeItem
.boolean
select(Viewer viewer, Object parentElement, Object element)
-
Methods inherited from class org.eclipse.jface.viewers.ViewerFilter
filter, filter, isFilterProperty
-
-
-
-
Constructor Detail
-
SelectTypeDialogFilter
public SelectTypeDialogFilter(String searchPatternText)
Creates filter that is able to filter types list by English and Russian names using symbols '?' and '*' as placeholders. Case insensitive. The pattern is matched as a substring.- Parameters:
searchPatternText
- Pattern for matching. It can contain a special symbols ('?' or '*').
-
-
Method Detail
-
select
public boolean select(Viewer viewer, Object parentElement, Object element)
- Specified by:
select
in classViewerFilter
-
createMatchers
public Matcher createMatchers(TypeInfoTreeItem typeInfoTreeItem)
Returns matcher that can be used for applying regular expression with early specified pattern to caption oftypeInfoTreeItem
. The pattern to be applied was set through constructor.- Parameters:
typeInfoTreeItem
- The item whose caption should be used to searching for occurrences of pattern.- Returns:
- The matcher prepared to invoking method
find()
or etc.
-
-