Package org.eclipse.ui.texteditor
Class KeyBindingSupportForAssistant
java.lang.Object
org.eclipse.ui.texteditor.KeyBindingSupportForAssistant
- All Implemented Interfaces:
ICompletionListener
Helper class to make navigation key bindings work for the content assistant
and the quick assist assistant while the editor has focus.
Clients normally don't need to use that class as the setup is done by the framework.
- Since:
- 3.4
-
Constructor Summary
ConstructorsConstructorDescriptionKeyBindingSupportForAssistant(ContentAssistant contentAssistant) Deprecated.As of 3.5, this is a NOP since the framework installs this nowKeyBindingSupportForAssistant(IQuickAssistAssistant quickAssistAssistant) Creates the support for a quick assist assistant.KeyBindingSupportForAssistant(ContentAssistantFacade contentAssistFacade) Deprecated.As of 3.5, this is a NOP since the framework installs this nowKeyBindingSupportForAssistant(ISourceViewerExtension4 sourceViewerExtension) Creates the support for a content assistant facade. -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when a code assist session ends (for example, the proposal popup is closed).voidCalled when code assist is invoked when there is no current code assist session.voiddispose()voidselectionChanged(ICompletionProposal proposal, boolean smartToggle) Called when the selection in the proposal popup is changed or if the insert-mode changed.
-
Constructor Details
-
KeyBindingSupportForAssistant
Deprecated.As of 3.5, this is a NOP since the framework installs this nowCreates the support for a content assistant facade.- Parameters:
contentAssistFacade- the content assist facade
-
KeyBindingSupportForAssistant
Creates the support for a content assistant facade.- Parameters:
sourceViewerExtension- the source viewer extension- Since:
- 3.5
-
KeyBindingSupportForAssistant
Deprecated.As of 3.5, this is a NOP since the framework installs this nowCreates the support for a content assistant facade.- Parameters:
contentAssistant- the content assist facade
-
KeyBindingSupportForAssistant
Creates the support for a quick assist assistant.- Parameters:
quickAssistAssistant- the quick assist assistant.
-
-
Method Details
-
assistSessionStarted
Description copied from interface:ICompletionListenerCalled when code assist is invoked when there is no current code assist session.- Specified by:
assistSessionStartedin interfaceICompletionListener- Parameters:
event- the content assist event
-
assistSessionEnded
Description copied from interface:ICompletionListenerCalled when a code assist session ends (for example, the proposal popup is closed).- Specified by:
assistSessionEndedin interfaceICompletionListener- Parameters:
event- the content assist event
-
selectionChanged
Description copied from interface:ICompletionListenerCalled when the selection in the proposal popup is changed or if the insert-mode changed.- Specified by:
selectionChangedin interfaceICompletionListener- Parameters:
proposal- the newly selected proposal, possiblynullsmartToggle-trueif the insert-mode toggle is being pressed,falseotherwise
-
dispose
public void dispose()
-