예제 #1
0
        public int AddAdornments()
        {
            IVsTextView primaryView, secondaryView;

            if (VSErr.Succeeded(_window.GetPrimaryView(out primaryView)) && primaryView != null)
            {
                OnNewView(primaryView);
            }

            if (VSErr.Succeeded(_window.GetSecondaryView(out secondaryView)) && secondaryView != null)
            {
                OnNewView(secondaryView);
            }

            if (primaryView != null || secondaryView != null)
            {
                AnkhLanguageDropDownBar bar = Language.CreateDropDownBar(this);

                if (bar != null)
                {
                    _bar = bar;

                    bar.Initialize();
                }
            }

            return(VSErr.S_OK);
        }
예제 #2
0
            public ComboTextView(AnkhLanguageDropDownBar bar, IVsTextView view)
                : base(bar)
            {
                _view = view;

                if (!TryHookConnectionPoint <IVsTextViewEvents>(view, this, out _cookie))
                {
                    _cookie = 0;
                }
            }
예제 #3
0
        public int RemoveAdornments()
        {
            AnkhLanguageDropDownBar bar = _bar;

            _bar = null;

            if (bar != null)
            {
                bar.Close();
            }
            return(VSErr.S_OK);
        }
예제 #4
0
 public ComboMemberCollection(AnkhLanguageDropDownBar bar, int index)
 {
     _bar     = bar;
     _index   = index;
     _current = -1;
 }
예제 #5
0
 internal void OnDataUpdated(ComboMemberCollection comboMemberCollection, AnkhLanguageDropDownBar _bar, int _index)
 {
     _shouldUpdate = true;
 }