/** * {@inheritDoc} */ public void setVisible(boolean visible) { if (visible) getRefactoringWizard().internalSetChange(InternalAPI.INSTANCE, null); super.setVisible(visible); }
/* package */ IWizardPage computeUserInputSuccessorPage(IWizardPage caller, IRunnableContext context) { Change change= createChange(new CreateChangeOperation( new CheckConditionsOperation(fRefactoring, CheckConditionsOperation.FINAL_CONDITIONS), RefactoringStatus.FATAL), true, context); // Status has been updated since we have passed true RefactoringStatus status= getConditionCheckingStatus(); // Creating the change has been canceled if (change == null && status == null) { internalSetChange(InternalAPI.INSTANCE, change); return caller; } // Set change if we don't have fatal errors. if (!status.hasFatalError()) internalSetChange(InternalAPI.INSTANCE, change); if (status.isOK()) { return getPage(IPreviewWizardPage.PAGE_NAME); } else { return getPage(IErrorWizardPage.PAGE_NAME); } }
public IWizardPage getNextPage() { RefactoringWizard wizard= getRefactoringWizard(); Change change= wizard.getChange(); if (change == null) { change= wizard.internalCreateChange(InternalAPI.INSTANCE, new CreateChangeOperation(getRefactoring()), false); wizard.internalSetChange(InternalAPI.INSTANCE, change); } if (change == null) return this; return super.getNextPage(); }
wizard.internalSetChange(InternalAPI.INSTANCE, create.getChange()); if (result.isException()) return true;