Search in sources :

Example 1 with FetchGerritChangeWizard

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;
}
Also used : Repository(org.eclipse.jgit.lib.Repository) Shell(org.eclipse.swt.widgets.Shell) NonBlockingWizardDialog(org.eclipse.egit.ui.internal.dialogs.NonBlockingWizardDialog) FetchGerritChangeWizard(org.eclipse.egit.ui.internal.fetch.FetchGerritChangeWizard)

Aggregations

NonBlockingWizardDialog (org.eclipse.egit.ui.internal.dialogs.NonBlockingWizardDialog)1 FetchGerritChangeWizard (org.eclipse.egit.ui.internal.fetch.FetchGerritChangeWizard)1 Repository (org.eclipse.jgit.lib.Repository)1 Shell (org.eclipse.swt.widgets.Shell)1