is_trigger


Description:

public virtual bool is_trigger (TextIter iter, unichar ch)

This function is used to determine if a character inserted into the text editor should cause a new completion request to be triggered.

An example would be period '.' which might indicate that the user wants to complete method or field names of an object.

This method will only trigger when text is inserted into the TextBuffer while the completion list is visible and a proposal is selected. Incremental key-presses (like shift, control, or alt) are not triggerable.

Parameters:

this

a CompletionProvider

iter

a TextIter

ch

a unichar of the character inserted