Eclipse Platform
Release 3.2

org.eclipse.jface.text.contentassist
Interface IContentAssistantExtension2

All Known Implementing Classes:
ContentAssistant

public interface IContentAssistantExtension2

Extends IContentAssistant with the following functions:

Since:
3.2

Method Summary
 void addCompletionListener(ICompletionListener listener)
          Adds a completion listener that will be informed before proposals are computed.
 void removeCompletionListener(ICompletionListener listener)
          Removes a completion listener.
 void setEmptyMessage(String message)
          Sets the text to be shown if no proposals are available and empty lists are displayed.
 void setRepeatedInvocationMode(boolean cycling)
          Enables repeated invocation mode, which will trigger re-computation of the proposals when code assist is executed repeatedly.
 void setShowEmptyList(boolean showEmpty)
          Enables displaying an empty completion proposal pop-up.
 void setStatusLineVisible(boolean show)
          Enables displaying a status line below the proposal popup.
 void setStatusMessage(String message)
          Sets the caption message displayed at the bottom of the completion proposal popup.
 

Method Detail

addCompletionListener

public void addCompletionListener(ICompletionListener listener)
Adds a completion listener that will be informed before proposals are computed.

Parameters:
listener - the listener

removeCompletionListener

public void removeCompletionListener(ICompletionListener listener)
Removes a completion listener.

Parameters:
listener - the listener to remove

setRepeatedInvocationMode

public 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 no false.

Parameters:
cycling - true to enable repetition mode, false to disable

setShowEmptyList

public void setShowEmptyList(boolean showEmpty)
Enables displaying an empty completion proposal pop-up. The default is not to show an empty list.

Parameters:
showEmpty - true to show empty lists

setStatusLineVisible

public 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 via setStatusMessage(String).

Parameters:
show - true to show a message line, false to not show one.

setStatusMessage

public void setStatusMessage(String message)
Sets the caption message displayed at the bottom of the completion proposal popup.

Parameters:
message - the message

setEmptyMessage

public void setEmptyMessage(String message)
Sets the text to be shown if no proposals are available and empty lists are displayed.

Parameters:
message - the text for the empty list

Eclipse Platform
Release 3.2

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.