Search in sources :

Example 1 with PushToGerritWizard

use of org.eclipse.egit.ui.internal.push.PushToGerritWizard in project egit by eclipse.

the class PushHeadToGerritCommand method execute.

@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
    Repository repository = getRepository(event);
    if (repository == null)
        return null;
    PushToGerritWizard wiz = new PushToGerritWizard(repository);
    WizardDialog dlg = new WizardDialog(HandlerUtil.getActiveShellChecked(event), wiz);
    dlg.setHelpAvailable(false);
    dlg.open();
    return null;
}
Also used : Repository(org.eclipse.jgit.lib.Repository) PushToGerritWizard(org.eclipse.egit.ui.internal.push.PushToGerritWizard) WizardDialog(org.eclipse.jface.wizard.WizardDialog)

Aggregations

PushToGerritWizard (org.eclipse.egit.ui.internal.push.PushToGerritWizard)1 WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 Repository (org.eclipse.jgit.lib.Repository)1