From 4dd51f9d3c4041322de7c1b46c9b588113c56781 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Thu, 20 Sep 2018 15:28:18 +0200 Subject: [PATCH] Fix #1263: Show the file path in tooltip when searching --- ILSpy/Search/AbstractSearchStrategy.cs | 3 ++- ILSpy/Search/SearchPane.cs | 1 + ILSpy/Search/SearchPane.xaml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ILSpy/Search/AbstractSearchStrategy.cs b/ILSpy/Search/AbstractSearchStrategy.cs index c7398b24e..c03d80d3b 100644 --- a/ILSpy/Search/AbstractSearchStrategy.cs +++ b/ILSpy/Search/AbstractSearchStrategy.cs @@ -188,7 +188,8 @@ namespace ICSharpCode.ILSpy.Search Image = GetIcon(item), Name = GetLanguageSpecificName(item), LocationImage = declaringType != null ? TypeTreeNode.GetIcon(declaringType) : Images.Namespace, - Location = declaringType != null ? language.TypeToString(declaringType, includeNamespace: true) : item.Namespace + Location = declaringType != null ? language.TypeToString(declaringType, includeNamespace: true) : item.Namespace, + ToolTip = item.ParentModule.PEFile?.FileName }; } } diff --git a/ILSpy/Search/SearchPane.cs b/ILSpy/Search/SearchPane.cs index 322bb7290..c71e0193e 100644 --- a/ILSpy/Search/SearchPane.cs +++ b/ILSpy/Search/SearchPane.cs @@ -336,6 +336,7 @@ namespace ICSharpCode.ILSpy public string Location { get; set; } public string Name { get; set; } + public object ToolTip { get; set; } public ImageSource Image { get; set; } public ImageSource LocationImage { get; set; } diff --git a/ILSpy/Search/SearchPane.xaml b/ILSpy/Search/SearchPane.xaml index f9fcc0a05..eca5a13a1 100644 --- a/ILSpy/Search/SearchPane.xaml +++ b/ILSpy/Search/SearchPane.xaml @@ -45,7 +45,7 @@ - +