public class CodeCompletionHandlerBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Key<java.lang.Boolean> |
DIRECT_INSERTION
If this key is set for a lookup element, the framework will only call handleInsert() on the lookup element when it is selected,
and will not perform any additional processing such as multi-caret handling or insertion of completion character.
|
Constructor and Description |
---|
CodeCompletionHandlerBase(CompletionType completionType) |
CodeCompletionHandlerBase(CompletionType completionType,
boolean invokedExplicitly,
boolean autopopup,
boolean synchronous) |
Modifier and Type | Method and Description |
---|---|
static void |
addCompletionChar(InsertionContext context,
LookupElement item) |
void |
afterItemInsertion(CompletionProgressIndicator indicator,
java.lang.Runnable laterRunnable) |
protected void |
completionFinished(CompletionProgressIndicator indicator,
boolean hasModifiers) |
static CodeCompletionHandlerBase |
createHandler(CompletionType completionType) |
static CodeCompletionHandlerBase |
createHandler(CompletionType completionType,
boolean invokedExplicitly,
boolean autopopup,
boolean synchronous) |
void |
invokeCompletion(Project project,
Editor editor) |
void |
invokeCompletion(Project project,
Editor editor,
int time) |
void |
invokeCompletion(Project project,
Editor editor,
int time,
boolean hasModifiers) |
protected boolean |
isTestingCompletionQualityMode() |
protected boolean |
isTestingMode() |
protected void |
lookupItemSelected(CompletionProgressIndicator indicator,
LookupElement item,
char completionChar,
java.util.List<LookupElement> items) |
static void |
setAutoInsertTimeout(int timeout) |
public static final Key<java.lang.Boolean> DIRECT_INSERTION
public CodeCompletionHandlerBase(CompletionType completionType)
public CodeCompletionHandlerBase(CompletionType completionType, boolean invokedExplicitly, boolean autopopup, boolean synchronous)
public static CodeCompletionHandlerBase createHandler(CompletionType completionType)
public static CodeCompletionHandlerBase createHandler(CompletionType completionType, boolean invokedExplicitly, boolean autopopup, boolean synchronous)
public final void invokeCompletion(Project project, Editor editor, int time, boolean hasModifiers)
protected void completionFinished(CompletionProgressIndicator indicator, boolean hasModifiers)
protected void lookupItemSelected(CompletionProgressIndicator indicator, LookupElement item, char completionChar, java.util.List<LookupElement> items)
public void afterItemInsertion(CompletionProgressIndicator indicator, java.lang.Runnable laterRunnable)
public static void addCompletionChar(InsertionContext context, LookupElement item)
public static void setAutoInsertTimeout(int timeout)
protected boolean isTestingCompletionQualityMode()
protected boolean isTestingMode()