|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.ui.dialogs.FilteredItemsSelectionDialog.ItemsFilter
Filters elements using SearchPattern by comparing the names of items with the filter pattern.
| Field Summary | |
|---|---|
protected SearchPattern |
patternMatcher
|
| Constructor Summary | |
|---|---|
FilteredItemsSelectionDialog.ItemsFilter()
Creates new instance of ItemsFilter. |
|
FilteredItemsSelectionDialog.ItemsFilter(SearchPattern searchPattern)
Creates new instance of ItemsFilter. |
|
| Method Summary | |
|---|---|
boolean |
equalsFilter(FilteredItemsSelectionDialog.ItemsFilter filter)
Checks whether the provided filter is equal to the current filter. |
int |
getMatchRule()
Returns the rule to apply for matching keys. |
String |
getPattern()
Returns the pattern string. |
boolean |
isCamelCasePattern()
Checks whether the pattern's match rule is camel case. |
abstract boolean |
isConsistentItem(Object item)
Checks consistency of an item. |
boolean |
isSubFilter(FilteredItemsSelectionDialog.ItemsFilter filter)
Check if the given filter is a sub-filter of current filter. |
protected boolean |
matches(String text)
Matches text with filter. |
boolean |
matchesRawNamePattern(Object item)
General method for matching raw name pattern. |
abstract boolean |
matchItem(Object item)
Matches an item against filter conditions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected SearchPattern patternMatcher
| Constructor Detail |
public FilteredItemsSelectionDialog.ItemsFilter()
public FilteredItemsSelectionDialog.ItemsFilter(SearchPattern searchPattern)
searchPattern - the pattern to be used when filtering| Method Detail |
public boolean isSubFilter(FilteredItemsSelectionDialog.ItemsFilter filter)
SearchPattern
from the current filter is a sub-pattern of the one from the provided
filter.
filter - the filter to be checked, or null
true if the given filter is sub-filter of the
current, false if the given filter isn't a
sub-filter or is nullSearchPattern.isSubPattern(org.eclipse.ui.dialogs.SearchPattern)public boolean equalsFilter(FilteredItemsSelectionDialog.ItemsFilter filter)
SearchPattern
from current filter is equal to the one from provided filter.
filter - filter to be checked, or null
true if the given filter is equal to current
filter, false if given filter isn't equal to
current one or if it is nullSearchPattern.equalsPattern(org.eclipse.ui.dialogs.SearchPattern)public boolean isCamelCasePattern()
true if pattern's match rule is camel case,
false otherwisepublic String getPattern()
SearchPattern.getPattern()public int getMatchRule()
SearchPattern.getMatchRule()protected boolean matches(String text)
text -
true if text matches with filter pattern,
false otherwisepublic boolean matchesRawNamePattern(Object item)
item - item to check
true if current pattern is a prefix of name
provided item, false if item's name is shorter
than prefix or sequences of characters don't match.public abstract boolean matchItem(Object item)
item -
true if item matches against filter conditions, false
otherwisepublic abstract boolean isConsistentItem(Object item)
item -
true if item is consistent, false
if item is inconsistent
|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.