/**
* Deletes the Push
*/
public class DeletePushCommand extends RepositoriesViewCommandHandler<PushNode> {
public Object execute(ExecutionEvent event) throws ExecutionException {
PushNode node = getSelectedNodes(event).get(0);
RemoteNode remote = (RemoteNode) node.getParent();
StoredConfig config = node.getRepository().getConfig();
config.unset("remote", remote.getObject(), "pushurl"); //$NON-NLS-1$ //$NON-NLS-2$
config.unset("remote", remote.getObject(), "push"); //$NON-NLS-1$ //$NON-NLS-2$
try {
config.save();
} catch (IOException e1) {