use of org.eclipse.egit.ui.internal.fetch.FetchWizard in project egit by eclipse.
the class FetchActionHandler method execute.
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
final Repository repository = getRepository(true, event);
if (repository == null)
return null;
final FetchWizard fetchWizard;
try {
fetchWizard = new FetchWizard(repository);
} catch (URISyntaxException x) {
ErrorDialog.openError(getShell(event), UIText.FetchAction_wrongURITitle, UIText.FetchAction_wrongURIMessage, new Status(IStatus.ERROR, Activator.getPluginId(), x.getMessage(), x));
return null;
}
WizardDialog dlg = new WizardDialog(getShell(event), fetchWizard);
dlg.setHelpAvailable(false);
dlg.open();
return null;
}
use of org.eclipse.egit.ui.internal.fetch.FetchWizard in project egit by eclipse.
the class FetchCommand method execute.
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
RepositoryNode node = getSelectedNodes(event).get(0);
try {
WizardDialog dlg = new WizardDialog(getShell(event), new FetchWizard(node.getRepository()));
dlg.setHelpAvailable(false);
dlg.open();
} catch (URISyntaxException e1) {
Activator.handleError(e1.getMessage(), e1, true);
}
return null;
}
Aggregations