Ejemplo n.º 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; };
                }
            }
        }
Ejemplo n.º 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; };
                }

            }
        }
Ejemplo n.º 3
0
 public void NotifyMouseHover(IEditorView view, RoutedEventArgsEx e)
 {
 }
Ejemplo n.º 4
0
        public void NotifyMouseHover(IEditorView view, RoutedEventArgsEx e)
        {

        }