@Override
 public void dispose() {
   if (saveSettings()) {
     saveBooleanSetting(RenameRefactoringWizard.UPDATE_TEXTUAL_MATCHES, fUpdateTextualMatches);
     saveBooleanSetting(RenameRefactoringWizard.UPDATE_QUALIFIED_NAMES, fUpdateQualifiedNames);
     //      if (fQualifiedNameComponent != null) {
     //        fQualifiedNameComponent.savePatterns(getRefactoringSettings());
     //      }
     DelegateUIHelper.saveLeaveDelegateSetting(fLeaveDelegateCheckBox);
     //      DelegateUIHelper.saveDeprecateDelegateSetting(fDeprecateDelegateCheckBox);
   }
   super.dispose();
 }
 @Override
 public void setVisible(boolean visible) {
   if (visible) {
     INameUpdating nameUpdating = (INameUpdating) getRefactoring().getAdapter(INameUpdating.class);
     if (nameUpdating != null) {
       String newName = getNewName(nameUpdating);
       if (newName != null && newName.length() > 0 && !newName.equals(getInitialValue())) {
         Text textField = getTextField();
         textField.setText(newName);
         textField.setSelection(0, newName.length());
       }
     }
   }
   super.setVisible(visible);
 }