org.eclipse.jface.text.contentassist.ICompletionListener Java Examples
The following examples show how to use
org.eclipse.jface.text.contentassist.ICompletionListener.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DefaultContentAssistantFactory.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
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); } } }