/** * Note: This method is for internal use only. Clients are not allowed to call this method. * * @param api internal instance to avoid access from external clients * @param operation the create change operation * @param updateStatus flag indicating if status updating is requested * * @return the created change */ public final Change internalCreateChange(InternalAPI api, CreateChangeOperation operation, boolean updateStatus) { Assert.isNotNull(api); return createChange(operation, updateStatus, getContainer()); }
/** * Note: This method is for internal use only. Clients are not allowed to call this method. * * @param api internal instance to avoid access from external clients * @param shown a boolean indicating if the preview page has been shown or not */ public final void internalSetPreviewShown(InternalAPI api, boolean shown) { Assert.isNotNull(api); fPreviewShown= shown; getContainer().updateButtons(); }
/** * If set to <code>true</code> the Finish or OK button, respectively will * be disabled until the user has visited the preview page. If set to * <code>false</code> the refactoring can be performed before the preview * page has been visited. * * @param forcePreviewReview if <code>true</code> to user must confirm the * preview */ public final void setForcePreviewReview(boolean forcePreviewReview) { fForcePreviewReview= forcePreviewReview; IWizardContainer container= getContainer(); if (container != null) container.updateButtons(); }
public boolean performFinish() { Assert.isNotNull(fRefactoring); RefactoringWizardPage page= (RefactoringWizardPage)getContainer().getCurrentPage(); return page.performFinish(); }
Shell parent= getContainer().getShell(); try{ getContainer().run(true, true, new WorkbenchRunnableAdapter(op, ResourcesPlugin.getWorkspace().getRoot())); } catch (InvocationTargetException e) { Throwable inner= e.getTargetException();
} else { if (exception != null) ExceptionHandler.handle(exception, getContainer().getShell(), RefactoringUIMessages.RefactoringWizard_refactoring, RefactoringUIMessages.RefactoringWizard_unexpected_exception);
wizard.setConditionCheckingStatus(status); IWizardPage nextPage= wizard.getPage(IErrorWizardPage.PAGE_NAME); wizard.getContainer().showPage(nextPage); return false;