public class IntroduceVariableHandler extends IntroduceVariableBase
IntroduceVariableBase.JavaReplaceChoice, IntroduceVariableBase.ValidatorNEED_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, simplifyVariableInitializerinvoke, invoke, isAvailableForQuickListpublic 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 IntroduceVariableBaseprotected void showErrorMessage(Project project, Editor editor, java.lang.String message)
showErrorMessage in class IntroduceVariableBaseprotected boolean reportConflicts(MultiMap<PsiElement,java.lang.String> conflicts, Project project, IntroduceVariableSettings dialog)
reportConflicts in class IntroduceVariableBaseprotected boolean acceptLocalVariable()
acceptLocalVariable in class IntroduceHandlerBase