public void widgetSelected(SelectionEvent e) {
RefSpec oldSpec = (RefSpec) ((IStructuredSelection) specViewer
.getSelection()).getFirstElement();
RefSpecDialog dlg = new RefSpecDialog(getShell(), repository,
config, oldSpec, false);
if (dlg.open() == Window.OK) {
config.removeFetchRefSpec(oldSpec);
config.addFetchRefSpec(dlg.getSpec());
}
updateControls();
}