Exemplo n.º 1
0
 @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();
 }
Exemplo n.º 2
0
 private void addOptionalLeaveDelegateCheckbox(Composite result, RowLayouter layouter) {
   final IDelegateUpdating refactoring =
       (IDelegateUpdating) getRefactoring().getAdapter(IDelegateUpdating.class);
   if (refactoring == null || !refactoring.canEnableDelegateUpdating()) {
     return;
   }
   fLeaveDelegateCheckBox =
       createCheckbox(
           result,
           refactoring.getDelegateUpdatingTitle(false),
           DelegateUIHelper.loadLeaveDelegateSetting(refactoring),
           layouter);
   refactoring.setDelegateUpdating(fLeaveDelegateCheckBox.getSelection());
   fLeaveDelegateCheckBox.addSelectionListener(
       new SelectionAdapter() {
         @Override
         public void widgetSelected(SelectionEvent e) {
           refactoring.setDelegateUpdating(fLeaveDelegateCheckBox.getSelection());
         }
       });
 }