Beispiel #1
0
        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;
        }
Beispiel #3
0
        private void ShowDifference()
        {
            var document = MarginCore.GetTextDocument();

            if (document != null)
            {
                PerforceCommands.GetInstance().StartExternalDiff(document);
            }
        }
Beispiel #4
0
        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();
 }