public override void OnMouseEnter(EditorMouseEventArgs ea)
		{
			base.OnMouseEnter(ea);
			ErrorDetailsForRangArrow arrowAnnotation = new ErrorDetailsForRangArrow(ErrorInformation);
			_ArrowToAssert = new EnhancedRangeArrow(ErrorInformation.Start, ErrorInformation.End, arrowAnnotation.Render);
			_ArrowToAssert.Add(TextView.Active);
		}
コード例 #2
0
        private void events_EditorMouseDoubleClick(EditorMouseEventArgs ea)
        {
            if (!PluginOptions.WordDoubleClickEnabled || shutting_down)
            {
                return;
            }

            TextView textView = CodeRush.TextViews.Active;

            if (textView != null)
            {
                try
                {
                    selected_double_click = "";
                    Word word;
                    if (textView.GetWordAt(textView.GetSourcePointUnderMouse(), out word) == GetWordResult.Success)
                    {
                        selected_double_click = word.Text.Trim().ToUpperInvariant();
                    }
                    last_lines = CollectLines(textView, 1);
                    textView.Invalidate();

                    //HighlightSelectedText();
                    RestartTimer();
                    Invalidate();
                }
                catch //(Exception ex)
                {
                }
            }
        }
コード例 #3
0
        public override void OnMouseEnter(EditorMouseEventArgs ea)
        {
            base.OnMouseEnter(ea);
            ErrorDetailsForRangArrow arrowAnnotation = new ErrorDetailsForRangArrow(ErrorInformation);

            _ArrowToAssert = new EnhancedRangeArrow(ErrorInformation.Start, ErrorInformation.End, arrowAnnotation.Render);
            _ArrowToAssert.Add(TextView.Active);
        }
コード例 #4
0
        public override void OnMouseDown(EditorMouseEventArgs ea)
        {
            Method target = Object as Method;

            if (target != null)
            {
                PlugIn1.RunMethod(target);
                ea.Cancel = true;
            }
        }
コード例 #5
0
        private void events_EditorMouseDoubleClick(EditorMouseEventArgs ea)
        {
            if (!PluginOptions.WordDoubleClickEnabled || shutting_down)
                return;

            TextView textView = CodeRush.TextViews.Active;
            if (textView != null)
            {
                try
                {
                    selected_double_click = "";
                    Word word;
                    if (textView.GetWordAt(textView.GetSourcePointUnderMouse(), out word) == GetWordResult.Success)
                    {
                        selected_double_click = word.Text.Trim().ToUpperInvariant();
                    }
                    last_lines = CollectLines(textView, 1);
                    textView.Invalidate();
                    
                    //HighlightSelectedText();
                    RestartTimer();
                    Invalidate();
                }
                catch //(Exception ex)
                {
                }
            }
        }
コード例 #6
0
 public override void OnMouseLeave(EditorMouseEventArgs ea)
 {
     base.OnMouseLeave(ea);
     _ArrowToAssert.Remove();
 }
        public override void OnMouseLeave(EditorMouseEventArgs ea)
        {
            base.OnMouseLeave(ea);
			_ArrowToAssert.Remove();
        }