use of org.eclipse.egit.ui.internal.fetch.FetchGerritChangeWizard in project egit by eclipse.
the class FetchChangeFromGerritCommand method execute.
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
Repository repository = getRepository(event);
if (repository == null) {
Shell shell = getShell(event);
MessageDialog.openInformation(shell, UIText.FetchChangeFromGerritCommand_noRepositorySelectedTitle, UIText.FetchChangeFromGerritCommand_noRepositorySelectedMessage);
return null;
}
FetchGerritChangeWizard wiz = new FetchGerritChangeWizard(repository);
NonBlockingWizardDialog dlg = new NonBlockingWizardDialog(HandlerUtil.getActiveShellChecked(event), wiz);
dlg.setHelpAvailable(false);
dlg.open();
return null;
}
Aggregations