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 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());			}