コード例 #1
0
 public static void Register(IVsTextView interopTextView, IWpfTextView textView, Services services)
 {
     var dispatcher = new StandardCommandDispatcher();
     dispatcher._textView = textView;
     dispatcher._services = services;
     interopTextView.AddCommandFilter(dispatcher, out dispatcher._commandChain);
 }
コード例 #2
0
        public static void Register(IVsTextView interopTextView, IWpfTextView textView, Services services)
        {
            var dispatcher = new StandardCommandDispatcher();

            dispatcher._textView = textView;
            dispatcher._services = services;
            interopTextView.AddCommandFilter(dispatcher, out dispatcher._commandChain);
        }
コード例 #3
0
 public void TextViewCreated(IWpfTextView wpfTextView)
 {
     System.Windows.Threading.Dispatcher.CurrentDispatcher.BeginInvoke(new Action(() =>
     {
         var view = _adaptersFactory.GetViewAdapter(wpfTextView);
         if (view != null)
         {
             StandardCommandDispatcher.Register(view, wpfTextView, GetServices());
         }
     }));
 }
コード例 #4
0
        public IMouseProcessor GetAssociatedProcessor(IWpfTextView wpfTextView)
        {
            System.Windows.Threading.Dispatcher.CurrentDispatcher.BeginInvoke(new Action(() =>
            {
                var view = AdaptersFactory.GetViewAdapter(wpfTextView);
                if (view != null)
                {
                    StandardCommandDispatcher.Register(view, wpfTextView, GetServices());
                }
            }));

            return(null);
        }