public abstract class AbstractInplaceIntroduceFieldPopup extends AbstractJavaInplaceIntroducer
Modifier and Type | Field and Description |
---|---|
protected RangeMarker |
myFieldRangeStart |
protected OccurrenceManager |
myOccurrenceManager |
myTypeSelectorManager
ACTIVE_INTRODUCE, myExprText, myFinished, myLocalMarker, myLocalVariable, myWholePanel
myExpr, myExprMarker, myOccurrenceMarkers, myOccurrences
INPLACE_RENAMER, INTRODUCE_RESTART, LOG, myAdvertisementText, myBalloon, myBeforeRevert, myCaretRangeMarker, myEditor, myElementToRename, myInitialName, myInsertedName, myMarkAction, myNameSuggestions, myOldName, myProject, myRenameOffset, myScope, myTarget, myTitle, OTHER_VARIABLE_NAME, ourRenamersStack, PRIMARY_VARIABLE_NAME
Constructor and Description |
---|
AbstractInplaceIntroduceFieldPopup(Project project,
Editor editor,
PsiExpression expr,
PsiVariable localVariable,
PsiExpression[] occurrences,
TypeSelectorManagerImpl typeSelectorManager,
java.lang.String title,
PsiClass parentClass,
PsiElement anchorElement,
OccurrenceManager occurrenceManager,
PsiElement anchorElementIfAll) |
Modifier and Type | Method and Description |
---|---|
protected PsiElement |
checkLocalScope() |
protected PsiElement |
getAnchorElement() |
protected PsiElement |
getAnchorElementIfAll() |
protected PsiClass |
getParentClass() |
protected SearchScope |
getReferencesSearchScope(VirtualFile file) |
protected PsiVariable |
getVariable() |
protected boolean |
startsOnTheSameElement(RefactoringActionHandler handler,
PsiElement element) |
appendUnresolvedExprName, chooseName, correctExpression, createExpression, createFieldToStartTemplateOn, createFieldToStartTemplateOn, getType, getVariableKind, restoreExpression, restoreExpression, restoreState, saveSettings, suggestNames, suggestNames
addHighlights, addReferenceAtCaret, adjustHighlightsStartOffset, collectAdditionalElementsToRename, deleteTemplateField, ensureValid, finish, getActionName, getActiveIntroducer, getBeforeExpr, getCaretOffset, getComponent, getExpressionText, getInputName, getLocalVariable, getPreviewComponent, getPreviewEditor, getRefactoringId, isReplaceAllOccurrences, moveOffsetAfter, performIntroduce, performPostIntroduceTasks, performRefactoring, releaseResources, restartInplaceIntroduceTemplate, restoreSelection, revalidate, setPreviewText, setReplaceAllOccurrences, shouldSelectAll, showBalloon, startInplaceIntroduceTemplate, startRename, startsOnTheSameElement, updateTitle, updateTitle
createLookupExpression, createMarker, getCommandName, getExpr, getExprMarker, getOccurrenceMarkers, getOccurrences, initOccurrencesMarkers, setExprMarker, setOccurrenceMarkers
acceptReference, addAdditionalVariables, adjustBalloon, beforeTemplateStart, buildTemplateAndStart, canStartAnotherRefactoring, checkCleared, collectRefs, createPreviewComponent, createTemplateExpression, getActiveInplaceRenamer, getInitialName, getNameIdentifier, getRangeToRename, getRangeToRename, getSelectedInEditorElement, getTopLevelVirtualFile, isIdentifier, isReferenceAtCaret, isRestart, isShowBalloonInHeadlessMode, navigateToAlreadyStarted, notSameFile, performCleanup, performInplaceRefactoring, releaseIfNotRestart, restoreCaretOffset, revertState, setAdvertisementText, setElementToRename, setShowBalloonInHeadlessMode, shouldStopAtLookupExpression, showBalloonInEditor, showDialogAdvertisement, startsOnTheSameElements, stopIntroduce, stopIntroduce, unableToStartWarning
protected final OccurrenceManager myOccurrenceManager
protected RangeMarker myFieldRangeStart
public AbstractInplaceIntroduceFieldPopup(Project project, Editor editor, PsiExpression expr, PsiVariable localVariable, PsiExpression[] occurrences, TypeSelectorManagerImpl typeSelectorManager, java.lang.String title, PsiClass parentClass, PsiElement anchorElement, OccurrenceManager occurrenceManager, PsiElement anchorElementIfAll)
protected PsiElement checkLocalScope()
checkLocalScope
in class InplaceRefactoring
protected SearchScope getReferencesSearchScope(VirtualFile file)
getReferencesSearchScope
in class InplaceRefactoring
protected boolean startsOnTheSameElement(RefactoringActionHandler handler, PsiElement element)
startsOnTheSameElement
in class AbstractInplaceIntroducer<PsiVariable,PsiExpression>
protected PsiElement getAnchorElement()
protected PsiElement getAnchorElementIfAll()
protected PsiVariable getVariable()
getVariable
in class AbstractInplaceIntroducer<PsiVariable,PsiExpression>
protected PsiClass getParentClass()