if (descriptor != null) fErrorPage.setTitle(descriptor); fErrorPage.setLastRefactoring(!isNotLastRefactoring());
if (descriptor == null) return; final boolean last= !isNotLastRefactoring(); fErrorPage.setTitle(descriptor); fErrorPage.setLastRefactoring(last); fErrorPage.setPageComplete(last);
	private IWizardPage getRefactoringPage() {		final IWizardPage[] result= { null};		final IRunnableWithProgress runnable= new IRunnableWithProgress() {			public void run(final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {				Assert.isNotNull(monitor);				try {					monitor.beginTask("", 100); //$NON-NLS-1$					result[0]= null;					final RefactoringStatus status= new RefactoringStatus();					final RefactoringDescriptorProxy descriptor= getCurrentDescriptor();					if (descriptor != null)						fErrorPage.setTitle(descriptor);					fErrorPage.setLastRefactoring(!isNotLastRefactoring());					final Refactoring refactoring= getCurrentRefactoring(status, new SubProgressMonitor(monitor, 10));					if (refactoring != null && status.isOK()) {						status.merge(checkConditions(refactoring, new SubProgressMonitor(monitor, 20), CheckConditionsOperation.INITIAL_CONDITONS));						if (!status.isOK()) {							fErrorPage.setRefactoring(refactoring);							fErrorPage.setStatus(status);							result[0]= fErrorPage;							return;						}						status.merge(checkConditions(refactoring, new SubProgressMonitor(monitor, 65), CheckConditionsOperation.FINAL_CONDITIONS));						if (!status.isOK()) {							fErrorPage.setRefactoring(refactoring);							fErrorPage.setStatus(status);							result[0]= fErrorPage;							return;						}						fPreviewPage.setStatus(status);						fPreviewPage.setNextPageEnabled(isNotLastRefactoring());						fPreviewPage.setChange(refactoring.createChange(new SubProgressMonitor(monitor, 5)));						if (descriptor != null)							fPreviewPage.setTitle(descriptor);						result[0]= fPreviewPage;					} else {						fErrorPage.setStatus(status);						result[0]= fErrorPage;						return;					}				} catch (CoreException exception) {					throw new InvocationTargetException(exception);				} catch (OperationCanceledException exception) {					// Do nothing				} finally {					monitor.done();				}			}		};		try {			getContainer().run(false, false, runnable);		} catch (InvocationTargetException exception) {			RefactoringUIPlugin.log(exception);		} catch (InterruptedException exception) {			// Do nothing		}		return result[0];	}