Class OpsContentProvider
java.lang.Object
org.yamcs.studio.autocomplete.ops.OpsContentProvider
- All Implemented Interfaces:
IAutoCompleteProvider
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)
-
Constructor Details
-
OpsContentProvider
public OpsContentProvider()
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceIAutoCompleteProvider
- Returns:
true
if provider handles this type of content
-
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
-