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

项目:bts    文件:DefaultContentAssistantFactory.java   
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);
        }
    }
}
项目:eclipse-batch-editor    文件:BatchEditorSimpleWordContentAssistProcessor.java   
public ICompletionListener getCompletionListener() {
    return this;
}
项目:eclipse-bash-editor    文件:BashEditorSimpleWordContentAssistProcessor.java   
public ICompletionListener getCompletionListener() {
    return this;
}
项目:egradle    文件:GradleContentAssistProcessor.java   
public ICompletionListener getCompletionListener() {
    return completionListener;
}