Class ParameterContentProvider
java.lang.Object
org.yamcs.studio.autocomplete.para.ParameterContentProvider
- All Implemented Interfaces:
IAutoCompleteProvider
- Direct Known Subclasses:
RawContentProvider
PV Name lookup for Yamcs Parameters
AutoCompleteService will re-use one instance of this class for all lookups, calling listResult whenever
the user types a new character, using a new thread for each lookup. Before starting a new lookup, however,
cancel() is invoked. This means there are never multiple concurrent lookups started on purpose, but a
previously started lookup may still continue in its thread in case cancel() has no immediate effect.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(ContentType type) voidcancel()Called byAutoCompleteServicewhen the task is canceled.listResult(ContentDescriptor desc, int limit) boolean
-
Constructor Details
-
ParameterContentProvider
public ParameterContentProvider()
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceIAutoCompleteProvider- Returns:
trueif provider handles this type of content
-
getPrefix
-
requirePrefix
public boolean requirePrefix() -
listResult
- Specified by:
listResultin interfaceIAutoCompleteProvider- Returns:
AutoCompleteResultmatching the providedContentDescriptor
-
cancel
public void cancel()Description copied from interface:IAutoCompleteProviderCalled byAutoCompleteServicewhen the task is canceled.- Specified by:
cancelin interfaceIAutoCompleteProvider
-