Beispiel #1
0
        /// <summary>
        ///     Get a pointer to the tip text for the list item. If you want tiptext to be same as TTO_DISPLAYTEXT, you can
        ///     E_NOTIMPL this call.
        /// </summary>
        /// <param name="index"></param>
        /// <param name="eTipType"></param>
        /// <param name="pbstrText"></param>
        /// <returns></returns>
        public int GetTipText(uint index, VSTREETOOLTIPTYPE eTipType, out string ppszText)
        {
            ArgumentValidation.CheckForOutOfRangeException(index, 0, _changeList.Count - 1);

            ppszText = _changeList[(int)index].TooltipText;
            return(VSConstants.S_OK);
        }
 int IVsSimpleObjectList2.GetTipTextWithOwnership(uint index, VSTREETOOLTIPTYPE eTipType, out string pbstrText)
 {
     // TODO: Make use of the tooltip type.
     if (index >= (uint)children.Count)
     {
         throw new ArgumentOutOfRangeException("index");
     }
     pbstrText = children[(int)index].TooltipText;
     return(VSConstants.S_OK);
 }
Beispiel #3
0
 int IVsObjectList2.GetTipText(uint index, VSTREETOOLTIPTYPE eTipType, out string ppszText)
 {
     if (index == NullIndex)
     {
         ppszText = this.UniqueName;
     }
     else
     {
         ppszText = children[(int)index].UniqueName;
     }
     return(VSConstants.S_OK);
 }
        int IVsSimpleObjectList2.GetTipTextWithOwnership(uint index, VSTREETOOLTIPTYPE eTipType, out string pbstrText)
        {
            if (index >= GetItemCount())
            {
                pbstrText = null;
                return(VSConstants.E_INVALIDARG);
            }

            pbstrText = GetTipText(index, eTipType);

            return(pbstrText != null
                ? VSConstants.S_OK
                : VSConstants.E_NOTIMPL);
        }
        int IVsSimpleObjectList2.GetTipTextWithOwnership(uint index, VSTREETOOLTIPTYPE eTipType, out string pbstrText)
        {
            SQObjectLibraryNode node;

            if (GetChild(index, out node) && node._declaration != null)
            {
                pbstrText = node.Name;
                return(VSConstants.S_OK);
            }
            else
            {
                pbstrText = Name;
                return(VSConstants.S_OK);;
            }
        }
Beispiel #6
0
 int IVsLiteTreeList.GetTipText(uint index, VSTREETOOLTIPTYPE eTipType, out string ppszText)
 {
     throw new NotImplementedException();
 }
Beispiel #7
0
 public int GetTipText(uint index, VSTREETOOLTIPTYPE eTipType, out string ppszText)
 {
     return Changes[index].GetTipText(out eTipType, out ppszText);
 }
Beispiel #8
0
 protected override string GetTipText(uint index, VSTREETOOLTIPTYPE eTipType)
 {
     return(null);
 }
Beispiel #9
0
 public int GetTipText(uint index, VSTREETOOLTIPTYPE eTipType, out string ppszText)
 {
     return(Changes[index].GetTipText(out eTipType, out ppszText));
 }
Beispiel #10
0
 protected override string GetTipText(uint index, VSTREETOOLTIPTYPE eTipType)
 => null;
Beispiel #11
0
 public override int GetTipText(out VSTREETOOLTIPTYPE eTipType, out string pbstrText)
 {
     eTipType = VSTREETOOLTIPTYPE.TIPTYPE_DEFAULT;
     pbstrText = "";
     return VSConstants.S_OK;
 }
Beispiel #12
0
 public int GetTipText(uint index, VSTREETOOLTIPTYPE eTipType, out string ppszText) {
     ppszText = null;
     return VSConstants.E_NOTIMPL;
 }
 protected abstract string GetTipText(uint index, VSTREETOOLTIPTYPE eTipType);
Beispiel #14
0
 public abstract int GetTipText(out VSTREETOOLTIPTYPE eTipType, out string ppszText);
 public abstract int GetTipText(out VSTREETOOLTIPTYPE eTipType, out string ppszText);
Beispiel #16
0
 int IVsLiteTreeList.GetTipText(uint index, VSTREETOOLTIPTYPE eTipType, out string ppszText)
 {
     throw new NotImplementedException();
 }
 int IVsSimpleObjectList2.GetTipTextWithOwnership(uint index, VSTREETOOLTIPTYPE eTipType, out string pbstrText)
 {
     // TODO: Make use of the tooltip type.
     if (index >= (uint)children.Count) {
         throw new ArgumentOutOfRangeException("index");
     }
     pbstrText = children[(int)index].TooltipText;
     return VSConstants.S_OK;
 }
Beispiel #18
0
 int IVsObjectList2.GetTipText(uint index, VSTREETOOLTIPTYPE eTipType, out string ppszText)
 {
     if (index == NullIndex)
         ppszText = this.UniqueName;
     else
         ppszText = children[(int)index].UniqueName;
     return VSConstants.S_OK;
 }
Beispiel #19
0
 public int GetTipText(uint index, VSTREETOOLTIPTYPE eTipType, out string ppszText)
 {
     ppszText = null;
     return(VSConstants.E_NOTIMPL);
 }
Beispiel #20
0
        protected override string GetTipText(uint index, VSTREETOOLTIPTYPE eTipType)
        {
            var item = _items[(int)index];

            return(item.DisplayText);
        }
Beispiel #21
0
 /// <summary>
 /// Returns the tool tip text for the requested tree list item.
 /// </summary>
 /// <param name="index"></param>
 /// <param name="eTipType"></param>
 /// <param name="pbstrText"></param>
 /// <returns></returns>
 public int GetTipTextWithOwnership(uint index, VSTREETOOLTIPTYPE eTipType, out string pbstrText)
 {
     pbstrText = children[(int)index].symbolText;
     return(VSConstants.S_OK);
 }
Beispiel #22
0
 public override int GetTipText(out VSTREETOOLTIPTYPE eTipType, out string pbstrText)
 {
     throw new NotImplementedException();
 }
Beispiel #23
0
 public sealed override int GetTipText(out VSTREETOOLTIPTYPE eTipType, out string pbstrText)
 {
     eTipType = VSTREETOOLTIPTYPE.TIPTYPE_DEFAULT;
     pbstrText = null;
     return VSConstants.E_FAIL;
 }
Beispiel #24
0
 public override int GetTipText(out VSTREETOOLTIPTYPE eTipType, out string pbstrText)
 => throw new NotImplementedException();
Beispiel #25
0
 /// <summary>
 /// Returns the tool tip text for the requested tree list item.
 /// </summary>
 /// <param name="index"></param>
 /// <param name="eTipType"></param>
 /// <param name="pbstrText"></param>
 /// <returns></returns>
 public int GetTipTextWithOwnership(uint index, VSTREETOOLTIPTYPE eTipType, out string pbstrText)
 {
     //Logger.Log("ResultList GetTipTextWithOwnership");
     pbstrText = children[(int)index].symbolText;
     return VSConstants.S_OK;
 }
Beispiel #26
0
 int IVsSimplePreviewChangesList.GetTipTextWithOwnership(uint index, VSTREETOOLTIPTYPE eTipType, out string pbstrText)
 {
     throw new NotImplementedException();
 }
Beispiel #27
0
 public override int GetTipText(out VSTREETOOLTIPTYPE eTipType, out string pbstrText)
 {
     eTipType  = VSTREETOOLTIPTYPE.TIPTYPE_DEFAULT;
     pbstrText = null;
     return(VSConstants.E_FAIL);
 }
        /// <summary>
        ///     Get a pointer to the tip text for the list item. If you want tiptext to be same as TTO_DISPLAYTEXT, you can
        ///     E_NOTIMPL this call.
        /// </summary>
        /// <param name="index"></param>
        /// <param name="eTipType"></param>
        /// <param name="pbstrText"></param>
        /// <returns></returns>
        public int GetTipText(uint index, VSTREETOOLTIPTYPE eTipType, out string ppszText)
        {
            ArgumentValidation.CheckForOutOfRangeException(index, 0, _changeList.Count - 1);

            ppszText = _changeList[(int)index].TooltipText;
            return VSConstants.S_OK;
        }