introduce: fix lost types on second press

This commit is contained in:
Anna Kozlova
2014-11-21 17:36:41 +01:00
parent 3b4e77dd5e
commit ad1ba7a37e
2 changed files with 10 additions and 0 deletions
@@ -100,6 +100,7 @@ public class IntroduceParameterDialog extends RefactoringDialog {
myTypeSelectorManager = typeSelectorManager;
setTitle(REFACTORING_NAME);
init();
myPanel.updateTypeSelector();
}
protected void dispose() {
@@ -198,6 +198,15 @@ public abstract class IntroduceParameterSettingsUI {
}
}
protected void updateTypeSelector() {
if (myCbReplaceAllOccurences != null) {
getTypeSelectionManager().setAllOccurrences(myCbReplaceAllOccurences.isSelected());
}
else {
getTypeSelectionManager().setAllOccurrences(myIsInvokedOnDeclaration);
}
}
protected abstract TypeSelectorManager getTypeSelectionManager();
protected void createRemoveParamsPanel(GridBagConstraints gbConstraints, JPanel panel) {