Interface IContentAssistantExtension2
- All Known Implementing Classes:
ContentAssistant,SubjectControlContentAssistant
public interface IContentAssistantExtension2
Extends
IContentAssistant with the following
functions:
- completion listeners
- repeated invocation mode
- a local status line for the completion popup
- control over the behavior when no proposals are available
- Since:
- 3.2
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCompletionListener(ICompletionListener listener) Adds a completion listener that will be informed before proposals are computed.voidremoveCompletionListener(ICompletionListener listener) Removes a completion listener.voidsetEmptyMessage(String message) Sets the text to be shown if no proposals are available andempty listsare displayed.voidsetRepeatedInvocationMode(boolean cycling) Enables repeated invocation mode, which will trigger re-computation of the proposals when code assist is executed repeatedly.voidsetShowEmptyList(boolean showEmpty) Enables displaying an empty completion proposal pop-up.voidsetStatusLineVisible(boolean show) Enables displaying a status line below the proposal popup.voidsetStatusMessage(String message) Sets the caption message displayed at the bottom of the completion proposal popup.
-
Method Details
-
addCompletionListener
Adds a completion listener that will be informed before proposals are computed.- Parameters:
listener- the listener
-
removeCompletionListener
Removes a completion listener.- Parameters:
listener- the listener to remove
-
setRepeatedInvocationMode
void setRepeatedInvocationMode(boolean cycling) Enables repeated invocation mode, which will trigger re-computation of the proposals when code assist is executed repeatedly. The default is nofalse.- Parameters:
cycling-trueto enable repetition mode,falseto disable
-
setShowEmptyList
void setShowEmptyList(boolean showEmpty) Enables displaying an empty completion proposal pop-up. The default is not to show an empty list.- Parameters:
showEmpty-trueto show empty lists
-
setStatusLineVisible
void setStatusLineVisible(boolean show) Enables displaying a status line below the proposal popup. The default is not to show the status line. The contents of the status line may be set viasetStatusMessage(String).- Parameters:
show-trueto show a message line,falseto not show one.
-
setStatusMessage
Sets the caption message displayed at the bottom of the completion proposal popup.- Parameters:
message- the message
-
setEmptyMessage
Sets the text to be shown if no proposals are available andempty listsare displayed.- Parameters:
message- the text for the empty list
-