public abstract class IntroduceParameterSettingsUI
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected StateRestoringCheckBox |
myCbDeleteLocalVariable |
protected javax.swing.JCheckBox |
myCbGenerateDelegate |
protected javax.swing.JCheckBox |
myCbReplaceAllOccurences |
protected StateRestoringCheckBox |
myCbUseInitializer |
protected boolean |
myHasInitializer |
protected boolean |
myIsInvokedOnDeclaration |
protected boolean |
myIsLocalVariable |
protected PsiParameter[] |
myParametersToRemove |
protected boolean[] |
myParametersToRemoveChecked |
protected javax.swing.JRadioButton |
myReplaceFieldsWithGettersAllRadio |
protected javax.swing.ButtonGroup |
myReplaceFieldsWithGettersButtonGroup |
protected javax.swing.JRadioButton |
myReplaceFieldsWithGettersInaccessibleRadio |
protected javax.swing.JRadioButton |
myReplaceFieldsWithGettersNoneRadio |
Constructor and Description |
---|
IntroduceParameterSettingsUI(PsiLocalVariable onLocalVariable,
PsiExpression onExpression,
PsiMethod methodToReplaceIn,
TIntArrayList parametersToRemove) |
Modifier and Type | Method and Description |
---|---|
protected void |
createDelegateCb(java.awt.GridBagConstraints gbConstraints,
javax.swing.JPanel panel) |
protected void |
createLocalVariablePanel(java.awt.GridBagConstraints gbConstraints,
javax.swing.JPanel panel,
JavaRefactoringSettings settings) |
protected void |
createOccurrencesCb(java.awt.GridBagConstraints gbConstraints,
javax.swing.JPanel panel,
int occurenceNumber) |
protected void |
createRemoveParamsPanel(java.awt.GridBagConstraints gbConstraints,
javax.swing.JPanel panel) |
protected javax.swing.JPanel |
createReplaceFieldsWithGettersPanel() |
protected TIntArrayList |
getParametersToRemove() |
protected int |
getReplaceFieldsWithGetters() |
protected abstract TypeSelectorManager |
getTypeSelectionManager() |
protected boolean |
isDeleteLocalVariable() |
boolean |
isGenerateDelegate() |
boolean |
isParamToRemove(PsiParameter param) |
boolean |
isReplaceAllOccurences() |
protected boolean |
isUseInitializer() |
protected void |
saveSettings(JavaRefactoringSettings settings) |
void |
setReplaceAllOccurrences(boolean replaceAll) |
protected void |
updateControls(javax.swing.JCheckBox[] removeParamsCb) |
protected void |
updateTypeSelector() |
protected final boolean myIsInvokedOnDeclaration
protected final boolean myHasInitializer
protected StateRestoringCheckBox myCbDeleteLocalVariable
protected StateRestoringCheckBox myCbUseInitializer
protected javax.swing.JRadioButton myReplaceFieldsWithGettersNoneRadio
protected javax.swing.JRadioButton myReplaceFieldsWithGettersInaccessibleRadio
protected javax.swing.JRadioButton myReplaceFieldsWithGettersAllRadio
protected final javax.swing.ButtonGroup myReplaceFieldsWithGettersButtonGroup
protected final PsiParameter[] myParametersToRemove
protected final boolean[] myParametersToRemoveChecked
protected final boolean myIsLocalVariable
protected javax.swing.JCheckBox myCbReplaceAllOccurences
protected javax.swing.JCheckBox myCbGenerateDelegate
public IntroduceParameterSettingsUI(PsiLocalVariable onLocalVariable, PsiExpression onExpression, PsiMethod methodToReplaceIn, TIntArrayList parametersToRemove)
protected boolean isDeleteLocalVariable()
protected boolean isUseInitializer()
protected int getReplaceFieldsWithGetters()
public boolean isReplaceAllOccurences()
public boolean isGenerateDelegate()
protected javax.swing.JPanel createReplaceFieldsWithGettersPanel()
protected void saveSettings(JavaRefactoringSettings settings)
protected TIntArrayList getParametersToRemove()
protected void updateControls(javax.swing.JCheckBox[] removeParamsCb)
protected void updateTypeSelector()
protected abstract TypeSelectorManager getTypeSelectionManager()
protected void createRemoveParamsPanel(java.awt.GridBagConstraints gbConstraints, javax.swing.JPanel panel)
public boolean isParamToRemove(PsiParameter param)
protected void createLocalVariablePanel(java.awt.GridBagConstraints gbConstraints, javax.swing.JPanel panel, JavaRefactoringSettings settings)
protected void createDelegateCb(java.awt.GridBagConstraints gbConstraints, javax.swing.JPanel panel)
protected void createOccurrencesCb(java.awt.GridBagConstraints gbConstraints, javax.swing.JPanel panel, int occurenceNumber)
public void setReplaceAllOccurrences(boolean replaceAll)