Example #1
0
        public void NotifyMouseHover(IEditorView view, RoutedEventArgsEx e)
        {
            var state = GetState(view);

            var result  = view.SyntaxEditor.HitTest(state.LastMousePosition);
            var context = tagInfoProvider.GetContext(result) as LinkTagContext;

            if (state.Session == null && context != null)
            {
                tagInfoProvider.RequestSession(view, context, canTrackMouse: false);

                state.Session =
                    view.SyntaxEditor.IntelliPrompt.Sessions.OfType <IQuickInfoSession>()
                    .FirstOrDefault(s => s.Context == context);

                if (state.Session != null)
                {
                    state.Session.Closed += delegate { state.Session = null; };
                }
            }
        }
Example #2
0
        public void NotifyMouseHover(IEditorView view, RoutedEventArgsEx e)
        {
            var state = GetState(view);

            var result = view.SyntaxEditor.HitTest(state.LastMousePosition);
            var context = tagInfoProvider.GetContext(result) as LinkTagContext;

            if (state.Session == null && context != null)
            {
                tagInfoProvider.RequestSession(view, context, canTrackMouse: false);

                state.Session =
                    view.SyntaxEditor.IntelliPrompt.Sessions.OfType<IQuickInfoSession>()
                        .FirstOrDefault(s => s.Context == context);

                if (state.Session != null)
                {
                    state.Session.Closed += delegate { state.Session = null; };
                }

            }
        }
Example #3
0
 public void NotifyMouseHover(IEditorView view, RoutedEventArgsEx e)
 {
 }
Example #4
0
        public void NotifyMouseHover(IEditorView view, RoutedEventArgsEx e)
        {

        }