Exemplo n.º 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);
        }
Exemplo n.º 2
0
            public ComboTextView(AnkhLanguageDropDownBar bar, IVsTextView view)
                : base(bar)
            {
                _view = view;

                if (!TryHookConnectionPoint <IVsTextViewEvents>(view, this, out _cookie))
                {
                    _cookie = 0;
                }
            }
Exemplo n.º 3
0
        public int RemoveAdornments()
        {
            AnkhLanguageDropDownBar bar = _bar;

            _bar = null;

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