public IWizardPage getNextPage(IWizardPage page, boolean aboutToShow) { if (page == locationPage) { if (locationPage.createNewLocation()) return createLocationPage; else { if (aboutToShow) selectionPage.setLocation(repositoryLocation); return selectionPage; } } if (page == createLocationPage) { if (aboutToShow) { ISVNRepositoryLocation newLocation = createLocation(); if (newLocation != null) { locationPage.refreshLocations(); selectionPage.setLocation(newLocation); } } return selectionPage; } if (page == selectionPage) { if (aboutToShow) { if (remoteFolders.length == 1) { BusyIndicator.showWhile(Display.getCurrent(), new Runnable() { public void run() { checkForProjectFile(); if (hasProjectFile) { if (checkoutAsWithProjectFilePage != null) { checkoutAsWithProjectFilePage.setText(Policy.bind("CheckoutWizardCheckoutAsPage.single", remoteFolders[0].getName()));    } } else { if (checkoutAsWithoutProjectFilePage != null) { checkoutAsWithoutProjectFilePage.setText(Policy.bind("CheckoutWizardCheckoutAsPage.single", remoteFolders[0].getName())); IProject project = SVNWorkspaceRoot.getProject(remoteFolders[0],null); checkoutAsWithoutProjectFilePage.setProject(project.getName());  } } } }); } else { if (checkoutAsMultiplePage != null) checkoutAsMultiplePage.setText(Policy.bind("CheckoutWizardCheckoutAsPage.multiple", Integer.toString(remoteFolders.length))); } } if (remoteFolders.length > 1) return checkoutAsMultiplePage; else { if (hasProjectFile) return checkoutAsWithProjectFilePage; else return checkoutAsWithoutProjectFilePage; } } if (page == checkoutAsWithoutProjectFilePage) { if (checkoutAsWithoutProjectFilePage.useWizard()) return null; else return projectPage; } if (page == checkoutAsMultiplePage || page == checkoutAsWithProjectFilePage) return projectPage; return super.getNextPage(page);
public IWizardPage getNextPage(IWizardPage page) { return getNextPage(page, true);
public IWizardPage getNextPage(IWizardPage page, boolean aboutToShow) {		if (page == locationPage) {			if (locationPage.createNewLocation()) return createLocationPage;			else {				if (aboutToShow) selectionPage.setLocation(repositoryLocation);				return selectionPage;			}		}		if (page == createLocationPage) {			if (aboutToShow) {				ISVNRepositoryLocation newLocation = createLocation();				if (newLocation != null) {					locationPage.refreshLocations();					selectionPage.setLocation(newLocation);				}			}			return selectionPage;		}		if (page == selectionPage) {			if (aboutToShow) {				if (remoteFolders.length == 1) {					BusyIndicator.showWhile(Display.getCurrent(), new Runnable() {						public void run() {							checkForProjectFile();							if (hasProjectFile) {								if (checkoutAsWithProjectFilePage != null) {									checkoutAsWithProjectFilePage.setText(Policy.bind("CheckoutWizardCheckoutAsPage.single", remoteFolders[0].getName())); //$NON-NLS-1$//									IProject project = SVNWorkspaceRoot.getProject(remoteFolders[0],null);//									checkoutAsWithProjectFilePage.setProject(project.getName());//									checkoutAsWithProjectFilePage.setProject(remoteFolders[0].getName());								}							} else {								if (checkoutAsWithoutProjectFilePage != null) {									checkoutAsWithoutProjectFilePage.setText(Policy.bind("CheckoutWizardCheckoutAsPage.single", remoteFolders[0].getName())); //$NON-NLS-1$									IProject project = SVNWorkspaceRoot.getProject(remoteFolders[0],null);									checkoutAsWithoutProjectFilePage.setProject(project.getName());//									checkoutAsWithoutProjectFilePage.setProject(remoteFolders[0].getName());								}							}						}											});				} else {					if (checkoutAsMultiplePage != null) checkoutAsMultiplePage.setText(Policy.bind("CheckoutWizardCheckoutAsPage.multiple", Integer.toString(remoteFolders.length))); //$NON-NLS-1$				}						}			if (remoteFolders.length > 1) return checkoutAsMultiplePage;			else {				if (hasProjectFile) return checkoutAsWithProjectFilePage;				else return checkoutAsWithoutProjectFilePage;			}		}		if (page == checkoutAsWithoutProjectFilePage) {			if (checkoutAsWithoutProjectFilePage.useWizard()) return null;			else return projectPage;		}		if (page == checkoutAsMultiplePage || page == checkoutAsWithProjectFilePage)			return projectPage;		return super.getNextPage(page);	}