Exemplo n.º 1
0
        public UnifiedDiffDropDownBar(UnifiedDiffLanguage language, VisualGitCodeWindowManager manager)
            : base(language, manager)
        {
            IVsTextView view = EnumTools.GetFirst(manager.GetViews());

            if (ErrorHandler.Succeeded(view.GetBuffer(out _buffer)))
            {
                if (!TryHookConnectionPoint<IVsTextLinesEvents>(_buffer, this, out _linesCookie))
                    _linesCookie = 0;
            }
        }
Exemplo n.º 2
0
 public VisualGitViewFilter(VisualGitCodeWindowManager codeWindowManager, IVsTextView textView)
     : base(codeWindowManager)
 {
 }
Exemplo n.º 3
0
 public override VisualGitLanguageDropDownBar CreateDropDownBar(VisualGitCodeWindowManager manager)
 {
     return new UnifiedDiffDropDownBar(this, manager);
 }
Exemplo n.º 4
0
 public virtual VisualGitLanguageDropDownBar CreateDropDownBar(VisualGitCodeWindowManager manager)
 {
     return null;
 }
Exemplo n.º 5
0
 protected virtual VisualGitViewFilter CreateFilter(VisualGitCodeWindowManager manager, IVsTextView view)
 {
     return new VisualGitViewFilter(manager, view);
 }
Exemplo n.º 6
0
        protected internal virtual void OnNewView(VisualGitCodeWindowManager codeWindowManager, IVsTextView view)
        {
            VisualGitViewFilter filter = CreateFilter(codeWindowManager, view);

            if (filter != null)
            {
                IOleCommandTarget chained;
                view.AddCommandFilter(filter, out chained);

                filter.AddChained(chained);
            }
        }
Exemplo n.º 7
0
 internal void OnCloseView(VisualGitCodeWindowManager visualGitCodeWindowManager, IVsTextView view)
 {
 }