本文整理汇总了Java中org.eclipse.jface.text.contentassist.ICompletionListener类的典型用法代码示例。如果您正苦于以下问题:Java ICompletionListener类的具体用法?Java ICompletionListener怎么用?Java ICompletionListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ICompletionListener类属于org.eclipse.jface.text.contentassist包,在下文中一共展示了ICompletionListener类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setContentAssistProcessor
import org.eclipse.jface.text.contentassist.ICompletionListener; //导入依赖的package包/类
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);
}
}
}
示例2: getCompletionListener
import org.eclipse.jface.text.contentassist.ICompletionListener; //导入依赖的package包/类
public ICompletionListener getCompletionListener() {
return this;
}
开发者ID:de-jcup,项目名称:eclipse-batch-editor,代码行数:4,代码来源:BatchEditorSimpleWordContentAssistProcessor.java
示例3: getCompletionListener
import org.eclipse.jface.text.contentassist.ICompletionListener; //导入依赖的package包/类
public ICompletionListener getCompletionListener() {
return completionListener;
}