public class IntroduceFunctionalVariableHandler extends IntroduceVariableHandler
IntroduceVariableBase.JavaReplaceChoice, IntroduceVariableBase.ValidatorNEED_PARENTHESIS| Constructor and Description |
|---|
IntroduceFunctionalVariableHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
invoke(Project project,
Editor editor,
PsiFile file,
DataContext dataContext)
Invokes refactoring action from editor.
|
protected void |
setupProcessorWithoutDialog(ExtractMethodProcessor processor,
InputVariables inputVariables) |
protected void |
showErrorMessage(Project project,
Editor editor,
java.lang.String message) |
acceptLocalVariable, getSettings, invoke, reportConflictscanBeExtractedWithoutExplicitType, checkAnchorBeforeThisOrSuper, checkAnchorStatement, checkInLoopCondition, chooseAnchor, collectExpressions, collectExpressions, collectExpressions, createFinals, createVarType, expandDiamondsAndReplaceExplicitTypeWithVar, findStatementsAtOffset, getErrorMessage, getInplaceIntroducer, getOccurrencesChoice, getRefactoringName, getSelectedExpression, getSuggestedName, getSuggestedName, highlightReplacedOccurrences, invokeImpl, invokeImpl, isChooserNeeded, isInplaceAvailableInTestMode, isPreferStatements, preferredSelection, replace, selectLineAtCaret, simplifyVariableInitializer, simplifyVariableInitializerinvoke, invoke, isAvailableForQuickListpublic void invoke(Project project, Editor editor, PsiFile file, DataContext dataContext)
RefactoringActionHandlerinvoke in interface RefactoringActionHandlerinvoke in class IntroduceVariableBaseproject - the project in which the refactoring is invoked.editor - editor that refactoring is invoked infile - file should correspond to editordataContext - can be null for some but not all of refactoring action handlers
(it is recommended to pass DataManager.getDataContext() instead of null)protected void showErrorMessage(Project project, Editor editor, java.lang.String message)
showErrorMessage in class IntroduceVariableHandlerprotected void setupProcessorWithoutDialog(ExtractMethodProcessor processor, InputVariables inputVariables)