no need to select current visibility second time (first time null => no selection)
authorAnna Kozlova <anna.kozlova@jetbrains.com>
Thu, 12 May 2011 09:31:37 +0000 (13:31 +0400)
committerAnna Kozlova <anna.kozlova@jetbrains.com>
Thu, 12 May 2011 09:31:37 +0000 (13:31 +0400)
(cherry picked from commit cd185298ab590714e319061d7e2d4379b52a8eb5)

java/java-impl/src/com/intellij/refactoring/introduceField/IntroduceFieldPopupPanel.java

index 5ee70e5b413c705f4a2a8f4a24cd744a53db427d..5aa768e45b33bdc800f10aaeffb49c03b2f5b636 100644 (file)
@@ -52,13 +52,6 @@ public class IntroduceFieldPopupPanel extends IntroduceFieldCentralPanel {
           occurrences, allowInitInMethod, allowInitInMethodIfAll, typeSelectorManager);
   }
 
-  protected void initializeControls(PsiExpression initializerExpression, BaseExpressionToFieldHandler.InitializationPlace ourLastInitializerPlace) {
-    super.initializeControls(initializerExpression, ourLastInitializerPlace);
-
-    String ourLastVisibility = JavaRefactoringSettings.getInstance().INTRODUCE_FIELD_VISIBILITY;
-    setVisibility(ourLastVisibility);
-  }
-
   protected void initializeInitializerPlace(PsiExpression initializerExpression,
                                             BaseExpressionToFieldHandler.InitializationPlace ourLastInitializerPlace) {
     if (initializerExpression != null) {