public class InplaceIntroduceFieldPopup extends AbstractInplaceIntroduceFieldPopup
myFieldRangeStart, 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 |
---|
InplaceIntroduceFieldPopup(PsiLocalVariable localVariable,
PsiClass parentClass,
boolean aStatic,
boolean currentMethodConstructor,
PsiExpression[] occurrences,
PsiExpression initializerExpression,
TypeSelectorManagerImpl typeSelectorManager,
Editor editor,
boolean allowInitInMethod,
boolean allowInitInMethodIfAll,
PsiElement anchorElement,
PsiElement anchorElementIfAll,
OccurrenceManager occurrenceManager,
Project project) |
Modifier and Type | Method and Description |
---|---|
protected PsiField |
createFieldToStartTemplateOn(java.lang.String[] names,
PsiType defaultType) |
protected java.lang.String |
getActionName()
Returns ID of the action the shortcut of which is used to show the non-in-place refactoring dialog.
|
protected javax.swing.JComponent |
getComponent() |
BaseExpressionToFieldHandler.InitializationPlace |
getInitializerPlace() |
protected java.lang.String |
getRefactoringId() |
protected VariableKind |
getVariableKind() |
boolean |
isReplaceAllOccurrences() |
protected void |
performIntroduce() |
protected void |
saveSettings(PsiVariable psiVariable) |
void |
setReplaceAllOccurrences(boolean replaceAllOccurrences) |
void |
setVisibility(java.lang.String visibility) |
protected boolean |
startsOnTheSameElement(RefactoringActionHandler handler,
PsiElement element) |
static SuggestedNameInfo |
suggestFieldName(PsiType defaultType,
PsiLocalVariable localVariable,
PsiExpression initializer,
boolean forStatic,
PsiClass parentClass) |
protected java.lang.String[] |
suggestNames(PsiType defaultType,
java.lang.String propName) |
protected void |
updateTitle(PsiVariable variable) |
protected void |
updateTitle(PsiVariable variable,
java.lang.String value) |
checkLocalScope, getAnchorElement, getAnchorElementIfAll, getParentClass, getReferencesSearchScope, getVariable
appendUnresolvedExprName, chooseName, correctExpression, createExpression, createFieldToStartTemplateOn, getType, restoreExpression, restoreExpression, restoreState, suggestNames
addHighlights, addReferenceAtCaret, adjustHighlightsStartOffset, collectAdditionalElementsToRename, deleteTemplateField, ensureValid, finish, getActiveIntroducer, getBeforeExpr, getCaretOffset, getExpressionText, getInputName, getLocalVariable, getPreviewComponent, getPreviewEditor, moveOffsetAfter, performPostIntroduceTasks, performRefactoring, releaseResources, restartInplaceIntroduceTemplate, restoreSelection, revalidate, setPreviewText, shouldSelectAll, showBalloon, startInplaceIntroduceTemplate, startRename, startsOnTheSameElement
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
public InplaceIntroduceFieldPopup(PsiLocalVariable localVariable, PsiClass parentClass, boolean aStatic, boolean currentMethodConstructor, PsiExpression[] occurrences, PsiExpression initializerExpression, TypeSelectorManagerImpl typeSelectorManager, Editor editor, boolean allowInitInMethod, boolean allowInitInMethodIfAll, PsiElement anchorElement, PsiElement anchorElementIfAll, OccurrenceManager occurrenceManager, Project project)
protected PsiField createFieldToStartTemplateOn(java.lang.String[] names, PsiType defaultType)
createFieldToStartTemplateOn
in class AbstractJavaInplaceIntroducer
protected java.lang.String[] suggestNames(PsiType defaultType, java.lang.String propName)
suggestNames
in class AbstractJavaInplaceIntroducer
public static SuggestedNameInfo suggestFieldName(PsiType defaultType, PsiLocalVariable localVariable, PsiExpression initializer, boolean forStatic, PsiClass parentClass)
protected VariableKind getVariableKind()
getVariableKind
in class AbstractJavaInplaceIntroducer
public void setReplaceAllOccurrences(boolean replaceAllOccurrences)
setReplaceAllOccurrences
in class AbstractInplaceIntroducer<PsiVariable,PsiExpression>
protected void updateTitle(PsiVariable variable, java.lang.String value)
updateTitle
in class AbstractInplaceIntroducer<PsiVariable,PsiExpression>
protected void updateTitle(PsiVariable variable)
updateTitle
in class AbstractInplaceIntroducer<PsiVariable,PsiExpression>
protected java.lang.String getRefactoringId()
getRefactoringId
in class AbstractInplaceIntroducer<PsiVariable,PsiExpression>
public void setVisibility(java.lang.String visibility)
public boolean isReplaceAllOccurrences()
isReplaceAllOccurrences
in class AbstractInplaceIntroducer<PsiVariable,PsiExpression>
protected void saveSettings(PsiVariable psiVariable)
saveSettings
in class AbstractJavaInplaceIntroducer
protected boolean startsOnTheSameElement(RefactoringActionHandler handler, PsiElement element)
startsOnTheSameElement
in class AbstractInplaceIntroduceFieldPopup
protected javax.swing.JComponent getComponent()
getComponent
in class AbstractInplaceIntroducer<PsiVariable,PsiExpression>
protected java.lang.String getActionName()
AbstractInplaceIntroducer
getActionName
in class AbstractInplaceIntroducer<PsiVariable,PsiExpression>
public BaseExpressionToFieldHandler.InitializationPlace getInitializerPlace()
protected void performIntroduce()
performIntroduce
in class AbstractInplaceIntroducer<PsiVariable,PsiExpression>