public class InplaceIntroduceFieldPopup extends AbstractInplaceIntroduceFieldPopup
myFieldRangeStart, myOccurrenceManagermyTypeSelectorManagerACTIVE_INTRODUCE, myExprText, myFinished, myLocalMarker, myLocalVariable, myWholePanelmyExpr, myExprMarker, myOccurrenceMarkers, myOccurrencesINPLACE_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, getVariableappendUnresolvedExprName, chooseName, correctExpression, createExpression, createFieldToStartTemplateOn, getType, restoreExpression, restoreExpression, restoreState, suggestNamesaddHighlights, 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, startsOnTheSameElementcreateLookupExpression, createMarker, getCommandName, getExpr, getExprMarker, getOccurrenceMarkers, getOccurrences, initOccurrencesMarkers, setExprMarker, setOccurrenceMarkersacceptReference, 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, unableToStartWarningpublic 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 AbstractJavaInplaceIntroducerprotected java.lang.String[] suggestNames(PsiType defaultType, java.lang.String propName)
suggestNames in class AbstractJavaInplaceIntroducerpublic static SuggestedNameInfo suggestFieldName(PsiType defaultType, PsiLocalVariable localVariable, PsiExpression initializer, boolean forStatic, PsiClass parentClass)
protected VariableKind getVariableKind()
getVariableKind in class AbstractJavaInplaceIntroducerpublic 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 AbstractJavaInplaceIntroducerprotected boolean startsOnTheSameElement(RefactoringActionHandler handler, PsiElement element)
startsOnTheSameElement in class AbstractInplaceIntroduceFieldPopupprotected javax.swing.JComponent getComponent()
getComponent in class AbstractInplaceIntroducer<PsiVariable,PsiExpression>protected java.lang.String getActionName()
AbstractInplaceIntroducergetActionName in class AbstractInplaceIntroducer<PsiVariable,PsiExpression>public BaseExpressionToFieldHandler.InitializationPlace getInitializerPlace()
protected void performIntroduce()
performIntroduce in class AbstractInplaceIntroducer<PsiVariable,PsiExpression>