void IBranchMenuOperations.RenameBranch() { RepositorySpec repSpec = BranchesSelection.GetSelectedRepository(mBranchesListView); BranchInfo branchInfo = BranchesSelection.GetSelectedBranch(mBranchesListView); BranchRenameData branchRenameData = RenameBranchDialog.GetBranchRenameData( repSpec, branchInfo, mParentWindow); mBranchOperations.RenameBranch(branchRenameData); }
internal static BranchRenameData GetBranchRenameData( RepositorySpec repSpec, BranchInfo branchInfo, EditorWindow parentWindow) { RenameBranchDialog dialog = Create( repSpec, branchInfo, new ProgressControlsForDialogs()); ResponseType dialogResult = dialog.RunModal(parentWindow); BranchRenameData result = dialog.BuildRenameData(); result.Result = dialogResult == ResponseType.Ok; return(result); }
void IBranchMenuOperations.RenameBranch() { RepositorySpec repSpec = BranchesSelection.GetSelectedRepository(mBranchesListView); BranchInfo branchInfo = BranchesSelection.GetSelectedBranch(mBranchesListView); BranchRenameData branchRenameData = RenameBranchDialog.GetBranchRenameData( repSpec, branchInfo, mParentWindow); mBranchOperations.RenameBranch(branchRenameData, () => { TrackFeatureUseEvent.For( repSpec, TrackFeatureUseEvent.Features.RenameBranch); }); }