Eclipse Platform
Release 3.3

org.eclipse.jface.text.contentassist
Interface ICompletionListener


public interface ICompletionListener

A completion listener is informed before the content assistant computes completion proposals.

Clients may implement this interface.

Since:
3.2

Method Summary
 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 selectionChanged(ICompletionProposal proposal, boolean smartToggle)
          Called when the selection in the proposal popup is changed or if the insert-mode changed.
 

Method Detail

assistSessionStarted

public 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

public 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

public 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, possibly null
smartToggle - true if the insert-mode toggle is being pressed, false otherwise

Eclipse Platform
Release 3.3

Guidelines for using Eclipse APIs.

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