public class ConstructorInsertHandler extends java.lang.Object implements InsertHandler<LookupElementDecorator<LookupElement>>
Modifier and Type | Field and Description |
---|---|
static ConstructorInsertHandler |
BASIC_INSTANCE |
static ConstructorInsertHandler |
SMART_INSTANCE |
Modifier and Type | Method and Description |
---|---|
static java.lang.Runnable |
genAnonymousBodyFor(PsiAnonymousClass parent,
Editor editor,
PsiFile file,
Project project) |
void |
handleInsert(InsertionContext context,
LookupElementDecorator<LookupElement> item)
Invoked inside atomic action.
|
static boolean |
insertParentheses(InsertionContext context,
LookupElement delegate,
PsiClass psiClass,
boolean forAnonymous) |
public static final ConstructorInsertHandler SMART_INSTANCE
public static final ConstructorInsertHandler BASIC_INSTANCE
public void handleInsert(InsertionContext context, LookupElementDecorator<LookupElement> item)
InsertHandler
handleInsert
in interface InsertHandler<LookupElementDecorator<LookupElement>>
public static boolean insertParentheses(InsertionContext context, LookupElement delegate, PsiClass psiClass, boolean forAnonymous)
public static java.lang.Runnable genAnonymousBodyFor(PsiAnonymousClass parent, Editor editor, PsiFile file, Project project)