@ -110,8 +110,8 @@ namespace ICSharpCode.SharpDevelop.Editor.Search
@@ -110,8 +110,8 @@ namespace ICSharpCode.SharpDevelop.Editor.Search
{
ICSharpCode . AvalonEdit . Search . ISearchResult match ;
public AvalonEditSearchResultMatch ( FileName fileName , Location startLocation , Location endLocation , int offset , int length , HighlightedInlineBuilder builder , HighlightingColor defaultTextColo r, ICSharpCode . AvalonEdit . Search . ISearchResult match )
: base ( fileName , startLocation , endLocation , offset , length , builder , defaultTextColor )
public AvalonEditSearchResultMatch ( FileName fileName , Location startLocation , Location endLocation , int offset , int length , HighlightedInlineBuilder builder , ISyntaxHighlighter highlighte r, ICSharpCode . AvalonEdit . Search . ISearchResult match )
: base ( fileName , startLocation , endLocation , offset , length , builder , GetDefaultHighlightTextColor ( highlighter ) )
{
this . match = match ;
}
@ -120,6 +120,14 @@ namespace ICSharpCode.SharpDevelop.Editor.Search
@@ -120,6 +120,14 @@ namespace ICSharpCode.SharpDevelop.Editor.Search
{
return match . ReplaceWith ( pattern ) ;
}
static HighlightingColor GetDefaultHighlightTextColor ( ISyntaxHighlighter highlighter )
{
if ( highlighter ! = null ) {
return highlighter . DefaultTextColor ;
}
return null ;
}
}
public class SearchedFile