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); }
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) { } } }
public override void OnMouseDown(EditorMouseEventArgs ea) { Method target = Object as Method; if (target != null) { PlugIn1.RunMethod(target); ea.Cancel = true; } }
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) { } } }
public override void OnMouseLeave(EditorMouseEventArgs ea) { base.OnMouseLeave(ea); _ArrowToAssert.Remove(); }