use of org.csstudio.autocomplete.ui.content.ContentProposalAdapter in project yamcs-studio by yamcs.
the class AutoCompleteWidget method enableContentProposal.
private void enableContentProposal() {
if (control instanceof Combo) {
Combo combo = (Combo) control;
provider = new AutoCompleteProposalProvider(type);
adapter = new ContentProposalAdapter(combo, new ComboContentAdapter(), provider, getActivationKeystroke(), getAutoactivationChars());
} else if (control instanceof Text) {
Text text = (Text) control;
provider = new AutoCompleteProposalProvider(type);
adapter = new ContentProposalAdapter(text, new TextContentAdapter(), provider, getActivationKeystroke(), getAutoactivationChars());
}
}
Aggregations