Search in sources :

Example 1 with ConfigureGerritWizard

use of org.eclipse.egit.ui.internal.gerrit.ConfigureGerritWizard in project egit by eclipse.

the class ConfigureGerritRemoteCommand method execute.

@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
    final RemoteNode node = getSelectedNodes(event).get(0);
    Repository repository = node.getRepository();
    final String remoteName = node.getObject();
    Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
    ConfigureGerritWizard configureGerritWizard = new ConfigureGerritWizard(repository, remoteName);
    WizardDialog dlg = new WizardDialog(shell, configureGerritWizard);
    dlg.setHelpAvailable(false);
    dlg.open();
    return null;
}
Also used : Repository(org.eclipse.jgit.lib.Repository) Shell(org.eclipse.swt.widgets.Shell) RemoteNode(org.eclipse.egit.ui.internal.repository.tree.RemoteNode) WizardDialog(org.eclipse.jface.wizard.WizardDialog) ConfigureGerritWizard(org.eclipse.egit.ui.internal.gerrit.ConfigureGerritWizard)

Aggregations

ConfigureGerritWizard (org.eclipse.egit.ui.internal.gerrit.ConfigureGerritWizard)1 RemoteNode (org.eclipse.egit.ui.internal.repository.tree.RemoteNode)1 WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 Repository (org.eclipse.jgit.lib.Repository)1 Shell (org.eclipse.swt.widgets.Shell)1