Exemplo n.º 1
0
 void RemoveToolTipInfo()
 {
     if (toolTipInfoCollection != null)
     {
         hexToolTipService.RemoveActiveToolTip(toolTipInfoCollection);
         toolTipInfoCollection = null;
     }
 }
Exemplo n.º 2
0
        void RemoveCurrentToolTip()
        {
            var oldCollection = activeToolTipInfoCollection;

            if (oldCollection == null)
            {
                return;
            }
            activeToolTipInfoCollection = null;
            tagger?.RaiseTagsChanged(oldCollection.FullBufferSpan);
        }
Exemplo n.º 3
0
 public override void SetActiveToolTip(HexToolTipInfoCollection collection)
 {
     if (collection == null)
     {
         throw new ArgumentNullException(nameof(collection));
     }
     if (hexView.IsClosed)
     {
         return;
     }
     RemoveCurrentToolTip();
     activeToolTipInfoCollection = collection;
     tagger?.RaiseTagsChanged(activeToolTipInfoCollection.FullBufferSpan);
 }
Exemplo n.º 4
0
 public override void RemoveActiveToolTip(HexToolTipInfoCollection collection)
 {
     if (collection == null)
     {
         throw new ArgumentNullException(nameof(collection));
     }
     if (hexView.IsClosed)
     {
         return;
     }
     if (activeToolTipInfoCollection != collection)
     {
         return;
     }
     RemoveCurrentToolTip();
 }
Exemplo n.º 5
0
        public override void AugmentQuickInfoSession(HexQuickInfoSession session, IList <object> quickInfoContent, out HexBufferSpanSelection applicableToSpan)
        {
            applicableToSpan = default(HexBufferSpanSelection);

            RemoveToolTipInfo();

            toolTipInfoCollection = hexToolTipService.GetToolTipInfo(session.TriggerPoint.BufferPosition);
            if (toolTipInfoCollection == null)
            {
                return;
            }

            applicableToSpan = new HexBufferSpanSelection(toolTipInfoCollection.BufferSpan, HexSpanSelectionFlags.Selection);
            hexToolTipService.SetActiveToolTip(toolTipInfoCollection);
            session.Dismissed += Session_Dismissed;
            foreach (var info in toolTipInfoCollection)
            {
                if (info.ToolTip != null)
                {
                    quickInfoContent.Add(info.ToolTip);
                }
            }
        }
Exemplo n.º 6
0
 public abstract void RemoveActiveToolTip(HexToolTipInfoCollection collection);
Exemplo n.º 7
0
 public abstract void SetActiveToolTip(HexToolTipInfoCollection collection);