Arrays.sort(locations, new RepositoryComparator());
	public void createControl(Composite parent) {		Composite composite = createComposite(parent, 1);		// set F1 help		WorkbenchHelp.setHelp(composite, IHelpContextIds.SHARING_SELECT_REPOSITORY_PAGE);				createWrappingLabel(composite, Policy.bind("RepositorySelectionPage.description"), 0 /* indent */, 1 /* columns */); //$NON-NLS-1$				useNewRepo = createRadioButton(composite, Policy.bind("RepositorySelectionPage.useNew"), 1); //$NON-NLS-1$				useExistingRepo = createRadioButton(composite, Policy.bind("RepositorySelectionPage.useExisting"), 1); //$NON-NLS-1$		table = createTable(composite, 1);		table.setContentProvider(new WorkbenchContentProvider());		table.setLabelProvider(new WorkbenchLabelProvider());		table.addSelectionChangedListener(new ISelectionChangedListener() {			public void selectionChanged(SelectionChangedEvent event) {				result = (ISVNRepositoryLocation)((IStructuredSelection)table.getSelection()).getFirstElement();				setPageComplete(true);			}		});		useExistingRepo.addListener(SWT.Selection, new Listener() {			public void handleEvent(Event event) {				if (useNewRepo.getSelection()) {					table.getTable().setEnabled(false);					result = null;				} else {					table.getTable().setEnabled(true);					result = (ISVNRepositoryLocation)((IStructuredSelection)table.getSelection()).getFirstElement();				}				setPageComplete(true);			}		});		setControl(composite);        ISVNRepositoryLocation[] locations = SVNUIPlugin.getPlugin().getRepositoryManager().getKnownRepositoryLocations();        AdaptableList input = new AdaptableList(locations);        table.setInput(input);        if (locations.length == 0) {            useNewRepo.setSelection(true);          } else {            useExistingRepo.setSelection(true);             table.setSelection(new StructuredSelection(locations[0]));        }	}