public class AddSpaceInsertHandler extends java.lang.Object implements InsertHandler<LookupElement>
Modifier and Type | Field and Description |
---|---|
static InsertHandler<LookupElement> |
INSTANCE |
static InsertHandler<LookupElement> |
INSTANCE_WITH_AUTO_POPUP |
Constructor and Description |
---|
AddSpaceInsertHandler(boolean triggerAutoPopup) |
AddSpaceInsertHandler(java.lang.String ignoreOnChars,
boolean triggerAutoPopup) |
Modifier and Type | Method and Description |
---|---|
void |
handleInsert(InsertionContext context,
LookupElement item)
Invoked inside atomic action.
|
protected boolean |
shouldOverwriteExistingSpace(Editor editor) |
public static final InsertHandler<LookupElement> INSTANCE
public static final InsertHandler<LookupElement> INSTANCE_WITH_AUTO_POPUP
public AddSpaceInsertHandler(boolean triggerAutoPopup)
public AddSpaceInsertHandler(java.lang.String ignoreOnChars, boolean triggerAutoPopup)
public void handleInsert(InsertionContext context, LookupElement item)
InsertHandler
handleInsert
in interface InsertHandler<LookupElement>
protected boolean shouldOverwriteExistingSpace(Editor editor)