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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(ContentType type) void
cancel()
Called byAutoCompleteService
when the task is canceled.listResult
(ContentDescriptor desc, int limit) boolean
-
Constructor Details
-
ParameterContentProvider
public ParameterContentProvider()
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceIAutoCompleteProvider
- Returns:
true
if provider handles this type of content
-
getPrefix
-
requirePrefix
public boolean requirePrefix() -
listResult
- Specified by:
listResult
in interfaceIAutoCompleteProvider
- Returns:
AutoCompleteResult
matching the providedContentDescriptor
-
cancel
public void cancel()Description copied from interface:IAutoCompleteProvider
Called byAutoCompleteService
when the task is canceled.- Specified by:
cancel
in interfaceIAutoCompleteProvider
-