public class InlineToAnonymousClassHandler extends JavaInlineActionHandler
EP_NAME
Constructor and Description |
---|
InlineToAnonymousClassHandler() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canBeInvokedOnReference(PsiCall callToInline,
PsiType superType) |
boolean |
canInlineElement(PsiElement element) |
boolean |
canInlineElementInEditor(PsiElement element,
Editor editor) |
static PsiCall |
findCallToInline(Editor editor) |
java.lang.String |
getActionName(PsiElement element) |
static java.lang.String |
getCannotInlineMessage(PsiClass psiClass) |
void |
inlineElement(Project project,
Editor editor,
PsiElement psiElement) |
boolean |
isEnabledOnElement(PsiElement element)
Fast check to see if the handler can possibly inline the element.
|
isEnabledForLanguage, isJavaLanguage
isEnabledOnElement
public boolean isEnabledOnElement(PsiElement element)
InlineActionHandler
isEnabledOnElement
in class InlineActionHandler
element
- the element under caretpublic boolean canInlineElement(PsiElement element)
canInlineElement
in class InlineActionHandler
public boolean canInlineElementInEditor(PsiElement element, Editor editor)
canInlineElementInEditor
in class InlineActionHandler
public void inlineElement(Project project, Editor editor, PsiElement psiElement)
inlineElement
in class InlineActionHandler
public static boolean canBeInvokedOnReference(PsiCall callToInline, PsiType superType)
public static java.lang.String getCannotInlineMessage(PsiClass psiClass)
public java.lang.String getActionName(PsiElement element)
getActionName
in class InlineActionHandler