protected override void OnViewMouseHover(EditorViewMouseEventArgs e) { if (e.get_HitTestResult().get_Target() == 10) { if ((((e.get_HitTestResult().get_DisplayLine() != null) && (e.get_HitTestResult().get_DisplayLine().get_DocumentLine() != null)) && (e.get_HitTestResult().get_DisplayLine().get_DocumentLine().get_LineIndicators() != null)) && (e.get_HitTestResult().get_DisplayLine().get_DocumentLine().get_LineIndicators().get_Count() > 0)) { string s = e.get_HitTestResult().get_DisplayLine().get_DocumentLine().get_LineIndicators().get_Item(0).get_Tag() as string; if (s != null) { e.set_ToolTipText(this.BulletizeAndEscape(s)); } } } else if ((e.get_HitTestResult().get_Token() != null) && (e.get_HitTestResult().get_Token().get_Key() == "CommentURLToken")) { e.set_ToolTipText(base.get_Document().GetTokenText(e.get_HitTestResult().get_Token()) + "<br/><b>CTRL + click to follow link</b>"); } else if ((e.get_HitTestResult().get_Token() != null) && ((e.get_HitTestResult().get_Token().get_Key() == "SingleLineComment") || (e.get_HitTestResult().get_Token().get_Key() == "MultiLineComment"))) { string tokenText = base.get_Document().GetTokenText(e.get_HitTestResult().get_Token()); Match match = UriMatcher.Match(tokenText); if (match.Success) { e.set_ToolTipText(match.Value + "<br/><b>CTRL + click to follow link</b>"); } } else { SpanIndicator[] indicatorsForTextRange = this.MainErrorLayer.GetIndicatorsForTextRange(new TextRange(e.get_HitTestResult().get_Offset(), e.get_HitTestResult().get_Offset() + 1)); if (indicatorsForTextRange.Length == 0) { indicatorsForTextRange = this.WarningsLayer.GetIndicatorsForTextRange(new TextRange(e.get_HitTestResult().get_Offset(), e.get_HitTestResult().get_Offset() + 1)); } if (indicatorsForTextRange.Length > 0) { } if ((CS$ < > 9__CachedAnonymousMethodDelegate22 == null) && indicatorsForTextRange.OfType <CompilerErrorSpanIndicator>().Any <CompilerErrorSpanIndicator>(CS$ < > 9__CachedAnonymousMethodDelegate22)) { e.set_ToolTipText(this.BulletizeAndEscape(indicatorsForTextRange.OfType <CompilerErrorSpanIndicator>().First <CompilerErrorSpanIndicator>(i => (i.get_Tag() is string)).get_Tag().ToString())); } } base.OnViewMouseHover(e); }
protected override void OnViewMouseHover(EditorViewMouseEventArgs e) { if (e.get_HitTestResult().get_Target() == 10) { if ((((e.get_HitTestResult().get_DisplayLine() != null) && (e.get_HitTestResult().get_DisplayLine().get_DocumentLine() != null)) && (e.get_HitTestResult().get_DisplayLine().get_DocumentLine().get_LineIndicators() != null)) && (e.get_HitTestResult().get_DisplayLine().get_DocumentLine().get_LineIndicators().get_Count() > 0)) { string s = e.get_HitTestResult().get_DisplayLine().get_DocumentLine().get_LineIndicators().get_Item(0).get_Tag() as string; if (s != null) { e.set_ToolTipText(this.BulletizeAndEscape(s)); } } } else if ((e.get_HitTestResult().get_Token() != null) && (e.get_HitTestResult().get_Token().get_Key() == "CommentURLToken")) { e.set_ToolTipText(base.get_Document().GetTokenText(e.get_HitTestResult().get_Token()) + "<br/><b>CTRL + click to follow link</b>"); } else if ((e.get_HitTestResult().get_Token() != null) && ((e.get_HitTestResult().get_Token().get_Key() == "SingleLineComment") || (e.get_HitTestResult().get_Token().get_Key() == "MultiLineComment"))) { string tokenText = base.get_Document().GetTokenText(e.get_HitTestResult().get_Token()); Match match = UriMatcher.Match(tokenText); if (match.Success) { e.set_ToolTipText(match.Value + "<br/><b>CTRL + click to follow link</b>"); } } else { SpanIndicator[] indicatorsForTextRange = this.MainErrorLayer.GetIndicatorsForTextRange(new TextRange(e.get_HitTestResult().get_Offset(), e.get_HitTestResult().get_Offset() + 1)); if (indicatorsForTextRange.Length == 0) { indicatorsForTextRange = this.WarningsLayer.GetIndicatorsForTextRange(new TextRange(e.get_HitTestResult().get_Offset(), e.get_HitTestResult().get_Offset() + 1)); } if (indicatorsForTextRange.Length > 0) { } if ((CS$<>9__CachedAnonymousMethodDelegate22 == null) && indicatorsForTextRange.OfType<CompilerErrorSpanIndicator>().Any<CompilerErrorSpanIndicator>(CS$<>9__CachedAnonymousMethodDelegate22)) { e.set_ToolTipText(this.BulletizeAndEscape(indicatorsForTextRange.OfType<CompilerErrorSpanIndicator>().First<CompilerErrorSpanIndicator>(i => (i.get_Tag() is string)).get_Tag().ToString())); } } base.OnViewMouseHover(e); }