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); }
public ComboTextView(AnkhLanguageDropDownBar bar, IVsTextView view) : base(bar) { _view = view; if (!TryHookConnectionPoint <IVsTextViewEvents>(view, this, out _cookie)) { _cookie = 0; } }
public int RemoveAdornments() { AnkhLanguageDropDownBar bar = _bar; _bar = null; if (bar != null) { bar.Close(); } return(VSErr.S_OK); }
public ComboMemberCollection(AnkhLanguageDropDownBar bar, int index) { _bar = bar; _index = index; _current = -1; }
internal void OnDataUpdated(ComboMemberCollection comboMemberCollection, AnkhLanguageDropDownBar _bar, int _index) { _shouldUpdate = true; }