Interface ICompletionListener
-
- All Known Implementing Classes:
KeyBindingSupportForAssistant
public interface ICompletionListenerA completion listener is informed before the content assistant computes completion proposals.In order to provide backward compatibility for clients of
ICompletionListener, extension interfaces are used to provide a means of evolution. The following extension interfaces exist:ICompletionListenerExtensionsince version 3.4 introducing the following functions:- additional notification about restarting the current code assist session
ICompletionListenerExtension2since version 3.8 introducing the following functions:- additional notification after applying a proposal
Clients may implement this interface.
- Since:
- 3.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidassistSessionEnded(ContentAssistEvent event)Called when a code assist session ends (for example, the proposal popup is closed).voidassistSessionStarted(ContentAssistEvent event)Called when code assist is invoked when there is no current code assist session.voidselectionChanged(ICompletionProposal proposal, boolean smartToggle)Called when the selection in the proposal popup is changed or if the insert-mode changed.
-
-
-
Method Detail
-
assistSessionStarted
void assistSessionStarted(ContentAssistEvent event)
Called when code assist is invoked when there is no current code assist session.- Parameters:
event- the content assist event
-
assistSessionEnded
void assistSessionEnded(ContentAssistEvent event)
Called when a code assist session ends (for example, the proposal popup is closed).- Parameters:
event- the content assist event
-
selectionChanged
void selectionChanged(ICompletionProposal proposal, boolean smartToggle)
Called when the selection in the proposal popup is changed or if the insert-mode changed.- Parameters:
proposal- the newly selected proposal, possiblynullsmartToggle-trueif the insert-mode toggle is being pressed,falseotherwise
-
-