Package org.yamcs.studio.autocomplete.ui
Class AutoCompleteProposalProvider
java.lang.Object
org.yamcs.studio.autocomplete.ui.AutoCompleteProposalProvider
- All Implemented Interfaces:
IAutoCompleteProposalProvider
Implements
IAutoCompleteProposalProvider
and manages the ContentProposalList
with results from
AutoCompleteService
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
Cancel the current request.void
getProposals
(String contents, IContentProposalSearchHandler handler) Requests providers for proposals and notify the handler each time a provider answers.getType()
boolean
-
Constructor Details
-
AutoCompleteProposalProvider
-
-
Method Details
-
getProposals
Description copied from interface:IAutoCompleteProposalProvider
Requests providers for proposals and notify the handler each time a provider answers.- Specified by:
getProposals
in interfaceIAutoCompleteProposalProvider
- Parameters:
contents
- the content to complete.handler
- seeIContentProposalSearchHandler
.
-
hasProviders
public boolean hasProviders()- Specified by:
hasProviders
in interfaceIAutoCompleteProposalProvider
- Returns:
true
if at least one provider is defined.
-
cancel
public void cancel()Description copied from interface:IAutoCompleteProposalProvider
Cancel the current request.- Specified by:
cancel
in interfaceIAutoCompleteProposalProvider
-
getType
- Specified by:
getType
in interfaceIAutoCompleteProposalProvider
- Returns:
- current type, see
AutoCompleteTypes
.
-