Exemplo n.º 1
0
 private void updateUIStatus() {
   getRefactoringWizard().setForcePreviewReview(false);
   JavaMoveProcessor processor = getJavaMoveProcessor();
   if (fReferenceCheckbox != null) {
     processor.setUpdateReferences(fReferenceCheckbox.getSelection());
   }
   if (fQualifiedNameCheckbox != null) {
     boolean enabled = processor.canEnableQualifiedNameUpdating();
     fQualifiedNameCheckbox.setEnabled(enabled);
     if (enabled) {
       fQualifiedNameComponent.setEnabled(processor.getUpdateQualifiedNames());
       if (processor.getUpdateQualifiedNames())
         getRefactoringWizard().setForcePreviewReview(true);
     } else {
       fQualifiedNameComponent.setEnabled(false);
     }
     processor.setUpdateQualifiedNames(
         fQualifiedNameCheckbox.getEnabled() && fQualifiedNameCheckbox.getSelection());
   }
 }
Exemplo n.º 2
0
 private void updateQualifiedNameUpdating(final JavaMoveProcessor processor, boolean enabled) {
   fQualifiedNameComponent.setEnabled(enabled);
   processor.setUpdateQualifiedNames(enabled);
   updateUIStatus();
 }