use of org.eclipse.egit.ui.internal.dialogs.NewRemoteDialog in project egit by eclipse.
the class ConfigureRemoteCommand method execute.
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
RemotesNode node = getSelectedNodes(event).get(0);
Repository repository = node.getRepository();
NewRemoteDialog nrd = new NewRemoteDialog(getShell(event), repository);
if (nrd.open() != Window.OK)
return null;
if (nrd.getPushMode())
SimpleConfigurePushDialog.getDialog(getShell(event), repository, nrd.getName()).open();
else
SimpleConfigureFetchDialog.getDialog(getShell(event), repository, nrd.getName()).open();
return null;
}
Aggregations