use of com.reprezen.swagedit.core.assist.JsonContentAssistProcessor in project KaiZen-OpenAPI-Editor by RepreZen.
the class JsonSourceViewerConfiguration method getContentAssistant.
@Override
public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
ContentAssistant ca = new ContentAssistant();
JsonContentAssistProcessor processor = createContentAssistProcessor(ca);
ca.setContentAssistProcessor(processor, IDocument.DEFAULT_CONTENT_TYPE);
ca.setInformationControlCreator(getInformationControlCreator(sourceViewer));
ca.enableAutoInsert(false);
ca.enablePrefixCompletion(false);
ca.enableAutoActivation(true);
ca.setAutoActivationDelay(100);
ca.enableColoredLabels(true);
ca.setShowEmptyList(true);
ca.setRepeatedInvocationMode(true);
ca.addCompletionListener(processor);
ca.setStatusLineVisible(true);
return ca;
}
Aggregations