public abstract class AbstractJavaInplaceIntroducer extends AbstractInplaceIntroducer<PsiVariable,PsiExpression>
| Modifier and Type | Field and Description |
|---|---|
protected TypeSelectorManagerImpl |
myTypeSelectorManager |
ACTIVE_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 |
|---|
AbstractJavaInplaceIntroducer(Project project,
Editor editor,
PsiExpression expr,
PsiVariable localVariable,
PsiExpression[] occurrences,
TypeSelectorManagerImpl typeSelectorManager,
java.lang.String title) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String[] |
appendUnresolvedExprName(java.lang.String[] names,
PsiExpression expr) |
protected java.lang.String |
chooseName(java.lang.String[] names,
Language language) |
protected void |
correctExpression() |
static Expression |
createExpression(TypeExpression expression,
java.lang.String defaultType) |
protected PsiVariable |
createFieldToStartTemplateOn(boolean replaceAll,
java.lang.String[] names)
Creates an initial version of the declaration for the introduced element.
|
protected abstract PsiVariable |
createFieldToStartTemplateOn(java.lang.String[] names,
PsiType psiType) |
PsiType |
getType() |
protected abstract VariableKind |
getVariableKind() |
static PsiExpression |
restoreExpression(PsiFile containingFile,
PsiVariable psiVariable,
PsiElementFactory elementFactory,
RangeMarker marker,
java.lang.String exprText) |
PsiExpression |
restoreExpression(PsiFile containingFile,
PsiVariable psiVariable,
RangeMarker marker,
java.lang.String exprText) |
protected void |
restoreState(PsiVariable psiField) |
protected void |
saveSettings(PsiVariable psiVariable) |
protected java.lang.String[] |
suggestNames(boolean replaceAll,
PsiVariable variable)
Returns the suggested names for the introduced element.
|
protected abstract java.lang.String[] |
suggestNames(PsiType defaultType,
java.lang.String propName) |
addHighlights, addReferenceAtCaret, adjustHighlightsStartOffset, collectAdditionalElementsToRename, deleteTemplateField, ensureValid, finish, getActionName, getActiveIntroducer, getBeforeExpr, getCaretOffset, getComponent, getExpressionText, getInputName, getLocalVariable, getPreviewComponent, getPreviewEditor, getRefactoringId, getVariable, isReplaceAllOccurrences, moveOffsetAfter, performIntroduce, performPostIntroduceTasks, performRefactoring, releaseResources, restartInplaceIntroduceTemplate, restoreSelection, revalidate, setPreviewText, setReplaceAllOccurrences, shouldSelectAll, showBalloon, startInplaceIntroduceTemplate, startRename, startsOnTheSameElement, startsOnTheSameElement, updateTitle, updateTitlecreateLookupExpression, createMarker, getCommandName, getExpr, getExprMarker, getOccurrenceMarkers, getOccurrences, initOccurrencesMarkers, setExprMarker, setOccurrenceMarkersacceptReference, addAdditionalVariables, adjustBalloon, beforeTemplateStart, buildTemplateAndStart, canStartAnotherRefactoring, checkCleared, checkLocalScope, collectRefs, createPreviewComponent, createTemplateExpression, getActiveInplaceRenamer, getInitialName, getNameIdentifier, getRangeToRename, getRangeToRename, getReferencesSearchScope, getSelectedInEditorElement, getTopLevelVirtualFile, isIdentifier, isReferenceAtCaret, isRestart, isShowBalloonInHeadlessMode, navigateToAlreadyStarted, notSameFile, performCleanup, performInplaceRefactoring, releaseIfNotRestart, restoreCaretOffset, revertState, setAdvertisementText, setElementToRename, setShowBalloonInHeadlessMode, shouldStopAtLookupExpression, showBalloonInEditor, showDialogAdvertisement, startsOnTheSameElements, stopIntroduce, stopIntroduce, unableToStartWarningprotected TypeSelectorManagerImpl myTypeSelectorManager
public AbstractJavaInplaceIntroducer(Project project, Editor editor, PsiExpression expr, PsiVariable localVariable, PsiExpression[] occurrences, TypeSelectorManagerImpl typeSelectorManager, java.lang.String title)
protected abstract PsiVariable createFieldToStartTemplateOn(java.lang.String[] names, PsiType psiType)
protected abstract java.lang.String[] suggestNames(PsiType defaultType, java.lang.String propName)
protected abstract VariableKind getVariableKind()
protected java.lang.String[] suggestNames(boolean replaceAll,
PsiVariable variable)
AbstractInplaceIntroducersuggestNames in class AbstractInplaceIntroducer<PsiVariable,PsiExpression>replaceAll - whether all occurrences are going to be replacedvariable - introduced element declaration, if already created.protected PsiVariable createFieldToStartTemplateOn(boolean replaceAll, java.lang.String[] names)
AbstractInplaceIntroducercreateFieldToStartTemplateOn in class AbstractInplaceIntroducer<PsiVariable,PsiExpression>replaceAll - whether all occurrences are going to be replacednames - the suggested names for the declarationprotected void correctExpression()
correctExpression in class AbstractInplaceIntroducer<PsiVariable,PsiExpression>public PsiExpression restoreExpression(PsiFile containingFile, PsiVariable psiVariable, RangeMarker marker, java.lang.String exprText)
restoreExpression in class AbstractInplaceIntroducer<PsiVariable,PsiExpression>protected void restoreState(PsiVariable psiField)
restoreState in class AbstractInplaceIntroducer<PsiVariable,PsiExpression>protected void saveSettings(PsiVariable psiVariable)
saveSettings in class AbstractInplaceIntroducer<PsiVariable,PsiExpression>public PsiType getType()
public static java.lang.String[] appendUnresolvedExprName(java.lang.String[] names,
PsiExpression expr)
public static PsiExpression restoreExpression(PsiFile containingFile, PsiVariable psiVariable, PsiElementFactory elementFactory, RangeMarker marker, java.lang.String exprText)
public static Expression createExpression(TypeExpression expression, java.lang.String defaultType)
protected java.lang.String chooseName(java.lang.String[] names,
Language language)