changeRefSpec.addSelectionListener(new SelectionAdapter() {
@Override
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();
}
});
final Button deleteRefSpec = new Button(buttonArea, SWT.PUSH);