mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
introduce: fix lost types on second press
This commit is contained in:
+1
@@ -100,6 +100,7 @@ public class IntroduceParameterDialog extends RefactoringDialog {
|
||||
myTypeSelectorManager = typeSelectorManager;
|
||||
setTitle(REFACTORING_NAME);
|
||||
init();
|
||||
myPanel.updateTypeSelector();
|
||||
}
|
||||
|
||||
protected void dispose() {
|
||||
|
||||
+9
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user