public final class ContentAssistantFacade
extends java.lang.Object
The offered API access can grow over time.
| Constructor and Description |
|---|
ContentAssistantFacade(IContentAssistant contentAssistant)
Creates a new facade.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCompletionListener(ICompletionListener listener)
Adds a completion listener that will be informed before proposals are
computed.
|
IHandler |
getHandler(java.lang.String commandId)
Returns the handler for the given command identifier.
|
void |
removeCompletionListener(ICompletionListener listener)
Removes a completion listener.
|
public ContentAssistantFacade(IContentAssistant contentAssistant)
contentAssistant - the content assistant which implements IContentAssistantExtension2 and IContentAssistantExtension4public IHandler getHandler(java.lang.String commandId)
The same handler instance will be returned when called a more than once with the same command identifier.
commandId - the command identifierjava.lang.IllegalArgumentException - if the command is not supported by this
content assistantjava.lang.IllegalStateException - if called when the content assistant is
uninstalledpublic void addCompletionListener(ICompletionListener listener)
listener - the listenerjava.lang.IllegalStateException - if called when the content assistant is
uninstalledpublic void removeCompletionListener(ICompletionListener listener)
listener - the listener to removejava.lang.IllegalStateException - if called when the content assistant is
uninstalled
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.