private void ShowDifference() { var document = MarginCore.GetTextDocument(); if (document != null) { MarginCore.GitCommands.StartExternalDiff(document, MarginCore.OriginalPath); } }
public void MoveToChange(DiffViewModel currentDiffViewModel, int indexModifier) { var diffViewModelIndex = DiffViewModels.IndexOf(currentDiffViewModel) + indexModifier; var diffViewModel = DiffViewModels[diffViewModelIndex]; MarginCore.MoveToChange(diffViewModel.LineNumber); ((EditorDiffViewModel)currentDiffViewModel).ShowPopup = false; }
private void ShowDifference() { var document = MarginCore.GetTextDocument(); if (document != null) { PerforceCommands.GetInstance().StartExternalDiff(document); } }
private void Rollback() { if (!MarginCore.RollBack(HunkRangeInfo)) { return; } // immediately hide the change _reverted = true; ShowPopup = false; IsVisible = false; // Make sure the view is focused afterwards MarginCore.TextView.VisualElement.Focus(); }
public void FocusTextView() { MarginCore.FocusTextView(); }