类org.eclipse.jface.text.contentassist.ICompletionListener源码实例Demo

下面列出了怎么用org.eclipse.jface.text.contentassist.ICompletionListener的API类实例代码及写法,或者点击链接到github查看源代码。

protected void setContentAssistProcessor(ContentAssistant assistant, SourceViewerConfiguration configuration, ISourceViewer sourceViewer) {
	if (contentAssistProcessor != null) {
		for(String contentType: configuration.getConfiguredContentTypes(sourceViewer)) {
			assistant.setContentAssistProcessor(contentAssistProcessor, contentType);
		}
		if (contentAssistProcessor instanceof ICompletionListener) {
			assistant.setRepeatedInvocationMode(true);
			assistant.setStatusLineVisible(true);
			assistant.addCompletionListener((ICompletionListener) contentAssistProcessor);
		}
	}
}
 
 类所在包
 同包方法