public class IntroduceVariableHandler extends IntroduceVariableBase
IntroduceVariableBase.JavaReplaceChoice, IntroduceVariableBase.Validator
NEED_PARENTHESIS
Constructor and Description |
---|
IntroduceVariableHandler() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptLocalVariable() |
IntroduceVariableSettings |
getSettings(Project project,
Editor editor,
PsiExpression expr,
PsiExpression[] occurrences,
TypeSelectorManagerImpl typeSelectorManager,
boolean declareFinalIfAll,
boolean anyAssignmentLHS,
InputValidator validator,
PsiElement anchor,
IntroduceVariableBase.JavaReplaceChoice replaceChoice) |
void |
invoke(Project project,
Editor editor,
PsiExpression expression) |
protected boolean |
reportConflicts(MultiMap<PsiElement,java.lang.String> conflicts,
Project project,
IntroduceVariableSettings dialog) |
protected void |
showErrorMessage(Project project,
Editor editor,
java.lang.String message) |
canBeExtractedWithoutExplicitType, checkAnchorBeforeThisOrSuper, checkAnchorStatement, checkInLoopCondition, chooseAnchor, collectExpressions, collectExpressions, collectExpressions, createFinals, createVarType, expandDiamondsAndReplaceExplicitTypeWithVar, findStatementsAtOffset, getErrorMessage, getInplaceIntroducer, getOccurrencesChoice, getRefactoringName, getSelectedExpression, getSuggestedName, getSuggestedName, highlightReplacedOccurrences, invoke, invokeImpl, invokeImpl, isChooserNeeded, isInplaceAvailableInTestMode, isPreferStatements, preferredSelection, replace, selectLineAtCaret, simplifyVariableInitializer, simplifyVariableInitializer
invoke, invoke, isAvailableForQuickList
public void invoke(Project project, Editor editor, PsiExpression expression)
public IntroduceVariableSettings getSettings(Project project, Editor editor, PsiExpression expr, PsiExpression[] occurrences, TypeSelectorManagerImpl typeSelectorManager, boolean declareFinalIfAll, boolean anyAssignmentLHS, InputValidator validator, PsiElement anchor, IntroduceVariableBase.JavaReplaceChoice replaceChoice)
getSettings
in class IntroduceVariableBase
protected void showErrorMessage(Project project, Editor editor, java.lang.String message)
showErrorMessage
in class IntroduceVariableBase
protected boolean reportConflicts(MultiMap<PsiElement,java.lang.String> conflicts, Project project, IntroduceVariableSettings dialog)
reportConflicts
in class IntroduceVariableBase
protected boolean acceptLocalVariable()
acceptLocalVariable
in class IntroduceHandlerBase