public interface ChooseByNameInScopeItemProvider extends ChooseByNameWeightedItemProvider
Modifier and Type | Method and Description |
---|---|
boolean |
filterElements(ChooseByNameBase base,
FindSymbolParameters parameters,
ProgressIndicator indicator,
Processor<java.lang.Object> consumer)
Searches for elements that match specified filters.
|
boolean |
filterElementsWithWeights(ChooseByNameBase base,
FindSymbolParameters parameters,
ProgressIndicator indicator,
Processor<? super FoundItemDescriptor<?>> consumer)
Searches for elements that match specified filters and returns also their weights.
|
filterElementsWithWeights
filterElements, filterNames
boolean filterElements(ChooseByNameBase base, FindSymbolParameters parameters, ProgressIndicator indicator, Processor<java.lang.Object> consumer)
FindSymbolParameters
)parameters
- search parametersindicator
- ProgressIndicator
which could be used to cancel search processconsumer
- consumer for process all found itemstrue
if all found items were processed. If consumer
returns false
for any of them
search will be stopped and method will return false
FindSymbolParameters
boolean filterElementsWithWeights(ChooseByNameBase base, FindSymbolParameters parameters, ProgressIndicator indicator, Processor<? super FoundItemDescriptor<?>> consumer)
FindSymbolParameters
)
Method should be used when receiver wants to sort found items by itself (for example when they should be mixed with results from other providers)parameters
- search parametersindicator
- ProgressIndicator
which could be used to cancel search processconsumer
- consumer for process all found items. Takes instances of FoundItemDescriptor
wrapper, which contains also
item's wightstrue
if all found items were processed. If consumer
returns false
for any of them search will be
stopped and method will return false
FindSymbolParameters
,
FoundItemDescriptor