public final class KeyBindingSupportForAssistant extends Object implements ICompletionListener
Clients normally don't need to use that class as the setup is done by the framework.
Constructor and Description |
---|
KeyBindingSupportForAssistant(ContentAssistant contentAssistant)
Deprecated.
As of 3.5, this is a NOP since the framework installs this now
|
KeyBindingSupportForAssistant(ContentAssistantFacade contentAssistFacade)
Deprecated.
As of 3.5, this is a NOP since the framework installs this now
|
KeyBindingSupportForAssistant(IQuickAssistAssistant quickAssistAssistant)
Creates the support for a quick assist assistant.
|
KeyBindingSupportForAssistant(ISourceViewerExtension4 sourceViewerExtension)
Creates the support for a content assistant facade.
|
Modifier and Type | Method and Description |
---|---|
void |
assistSessionEnded(ContentAssistEvent event)
Called when a code assist session ends (for example, the proposal popup is closed).
|
void |
assistSessionStarted(ContentAssistEvent event)
Called when code assist is invoked when there is no current code assist session.
|
void |
dispose() |
void |
selectionChanged(ICompletionProposal proposal,
boolean smartToggle)
Called when the selection in the proposal popup is changed or if the insert-mode changed.
|
public KeyBindingSupportForAssistant(ContentAssistantFacade contentAssistFacade)
contentAssistFacade
- the content assist facadepublic KeyBindingSupportForAssistant(ISourceViewerExtension4 sourceViewerExtension)
sourceViewerExtension
- the source viewer extensionpublic KeyBindingSupportForAssistant(ContentAssistant contentAssistant)
contentAssistant
- the content assist facadepublic KeyBindingSupportForAssistant(IQuickAssistAssistant quickAssistAssistant)
quickAssistAssistant
- the quick assist assistant.public void assistSessionStarted(ContentAssistEvent event)
ICompletionListener
assistSessionStarted
in interface ICompletionListener
event
- the content assist eventpublic void assistSessionEnded(ContentAssistEvent event)
ICompletionListener
assistSessionEnded
in interface ICompletionListener
event
- the content assist eventpublic void selectionChanged(ICompletionProposal proposal, boolean smartToggle)
ICompletionListener
selectionChanged
in interface ICompletionListener
proposal
- the newly selected proposal, possibly null
smartToggle
- true
if the insert-mode toggle is being pressed,
false
otherwisepublic void dispose()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.