if (object instanceof ISVNRepositoryLocation) folderArray.add(((ISVNRepositoryLocation)object).getRootFolder()); else folderArray.add(object);
if (object instanceof ISVNRemoteFolder) { if (object instanceof ISVNRepositoryLocation) folderArray.add(((ISVNRepositoryLocation)object).getRootFolder()); else folderArray.add(object); }
	public void createControl(Composite parent) {		Composite outerContainer = new Composite(parent,SWT.NONE);		GridLayout layout = new GridLayout();		layout.numColumns = 1;		outerContainer.setLayout(layout);		outerContainer.setLayoutData(		new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));		treeViewer = new TreeViewer(outerContainer, SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);		RepositoryContentProvider contentProvider = new RepositoryContentProvider();        treeViewer.setContentProvider(contentProvider);        treeViewer.addFilter(RepositoryFilters.FOLDERS_ONLY);        treeViewer.setLabelProvider(new WorkbenchLabelProvider());        treeViewer.setInput(repositoryLocation);		GridData data = new GridData(GridData.FILL_BOTH | GridData.GRAB_VERTICAL);		data.heightHint = LIST_HEIGHT_HINT;		data.widthHint = LIST_WIDTH_HINT;		treeViewer.getControl().setLayoutData(data);		treeViewer.addSelectionChangedListener(new ISelectionChangedListener() {			public void selectionChanged(SelectionChangedEvent event) {				CheckoutWizard wizard = (CheckoutWizard)getWizard();				ArrayList folderArray = new ArrayList();				IStructuredSelection selection = (IStructuredSelection)treeViewer.getSelection();				Iterator iter = selection.iterator();				while (iter.hasNext()) {					Object object = iter.next();					if (object instanceof ISVNRepositoryLocation) folderArray.add(((ISVNRepositoryLocation)object).getRootFolder());					else folderArray.add(object);				}				ISVNRemoteFolder[] remoteFolders = new ISVNRemoteFolder[folderArray.size()];				folderArray.toArray(remoteFolders);				wizard.setRemoteFolders(remoteFolders);				setPageComplete(!treeViewer.getSelection().isEmpty());			}		});		        final Action refreshAction = new Action(Policy.bind("RepositoriesView.refreshPopup"), SVNUIPlugin.getPlugin().getImageDescriptor(ISVNUIConstants.IMG_REFRESH)) { //$NON-NLS-1$            public void run() {            	refreshViewerNode();            }        };        MenuManager menuMgr = new MenuManager();        Tree tree = treeViewer.getTree();        Menu menu = menuMgr.createContextMenu(tree);        menuMgr.addMenuListener(new IMenuListener() {            public void menuAboutToShow(IMenuManager manager) {                manager.add(refreshAction);            }        });        menuMgr.setRemoveAllWhenShown(true);        tree.setMenu(menu);		setMessage(Policy.bind("CheckoutWizardSelectionPage.text")); //$NON-NLS-1$		setControl(outerContainer);	}