public final class ContentAssistantFacade extends 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(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(String commandId)
The same handler instance will be returned when called a more than once with the same command identifier.
commandId - the command identifierIllegalArgumentException - if the command is not supported by this
content assistantIllegalStateException - if called when the content assistant is
uninstalledpublic void addCompletionListener(ICompletionListener listener)
listener - the listenerIllegalStateException - if called when the content assistant is
uninstalledpublic void removeCompletionListener(ICompletionListener listener)
listener - the listener to removeIllegalStateException - if called when the content assistant is
uninstalled
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.