Search in sources :

Example 1 with BranchConfigurationDialog

use of org.eclipse.egit.ui.internal.dialogs.BranchConfigurationDialog in project egit by eclipse.

the class ConfigureBranchCommand method execute.

@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
    final List<RefNode> nodes = getSelectedNodes(event);
    if (nodes.size() == 1) {
        RefNode node = nodes.get(0);
        String branchName = Repository.shortenRefName(node.getObject().getName());
        BranchConfigurationDialog dlg = new BranchConfigurationDialog(getShell(event), branchName, node.getRepository());
        dlg.open();
    }
    return null;
}
Also used : BranchConfigurationDialog(org.eclipse.egit.ui.internal.dialogs.BranchConfigurationDialog) RefNode(org.eclipse.egit.ui.internal.repository.tree.RefNode)

Aggregations

BranchConfigurationDialog (org.eclipse.egit.ui.internal.dialogs.BranchConfigurationDialog)1 RefNode (org.eclipse.egit.ui.internal.repository.tree.RefNode)1