public interface InlineHandler
Modifier and Type | Interface and Description |
---|---|
static interface |
InlineHandler.Inliner |
static interface |
InlineHandler.Settings |
Modifier and Type | Method and Description |
---|---|
default boolean |
canInlineElement(PsiElement element) |
InlineHandler.Inliner |
createInliner(PsiElement element,
InlineHandler.Settings settings) |
InlineHandler.Settings |
prepareInlineElement(PsiElement element,
Editor editor,
boolean invokedOnReference) |
void |
removeDefinition(PsiElement element,
InlineHandler.Settings settings) |
default boolean canInlineElement(PsiElement element)
InlineHandler.Settings prepareInlineElement(PsiElement element, Editor editor, boolean invokedOnReference)
element
- element to be inlinedinvokedOnReference
- true
if the user invoked the refactoring on an element referenceeditor
- in case refactoring has been called in the editorSettings
object in case refactoring should be performed or null
otherwisevoid removeDefinition(PsiElement element, InlineHandler.Settings settings)
element
- inlined elementInlineHandler.Inliner createInliner(PsiElement element, InlineHandler.Settings settings)
element
- inlined elementsettings
- inlining settings