diff --git a/GoToWindow.Extensibility/Controls/BasicListEntry.xaml b/GoToWindow.Extensibility/Controls/BasicListEntry.xaml
index fdea301..7a157bb 100644
--- a/GoToWindow.Extensibility/Controls/BasicListEntry.xaml
+++ b/GoToWindow.Extensibility/Controls/BasicListEntry.xaml
@@ -14,6 +14,7 @@
-
+
+
diff --git a/GoToWindow.Extensibility/ViewModel/DesignTimeSearchResult.cs b/GoToWindow.Extensibility/ViewModel/DesignTimeSearchResult.cs
index 41df279..bebc728 100644
--- a/GoToWindow.Extensibility/ViewModel/DesignTimeSearchResult.cs
+++ b/GoToWindow.Extensibility/ViewModel/DesignTimeSearchResult.cs
@@ -11,6 +11,7 @@ public class DesignTimeSearchResult : IBasicSearchResult
public BitmapFrame Icon { get; private set; }
public string Title { get; private set; }
public string ProcessName { get; private set; }
+ public string Error { get; set; }
public DesignTimeSearchResult()
: this(null, "process", "Window Title")
diff --git a/GoToWindow.Extensibility/ViewModel/IBasicSearchResult.cs b/GoToWindow.Extensibility/ViewModel/IBasicSearchResult.cs
index f3cf5ca..0fc2374 100644
--- a/GoToWindow.Extensibility/ViewModel/IBasicSearchResult.cs
+++ b/GoToWindow.Extensibility/ViewModel/IBasicSearchResult.cs
@@ -7,5 +7,6 @@ public interface IBasicSearchResult : ISearchResult
BitmapFrame Icon { get; }
string Title { get; }
string ProcessName { get; }
+ string Error { get; }
}
}
diff --git a/GoToWindow.Extensibility/ViewModel/IWindowSearchResult.cs b/GoToWindow.Extensibility/ViewModel/IWindowSearchResult.cs
index 1a079b7..49e55c7 100644
--- a/GoToWindow.Extensibility/ViewModel/IWindowSearchResult.cs
+++ b/GoToWindow.Extensibility/ViewModel/IWindowSearchResult.cs
@@ -2,8 +2,9 @@
namespace GoToWindow.Extensibility.ViewModel
{
- public interface IWindowSearchResult : ISearchResult, IBasicSearchResult
+ public interface IWindowSearchResult : IBasicSearchResult
{
+ new string Error { get; set; }
IntPtr HWnd { get; }
}
}
diff --git a/GoToWindow.Extensibility/ViewModel/SearchResultBase.cs b/GoToWindow.Extensibility/ViewModel/SearchResultBase.cs
index 6fe2565..f052d09 100644
--- a/GoToWindow.Extensibility/ViewModel/SearchResultBase.cs
+++ b/GoToWindow.Extensibility/ViewModel/SearchResultBase.cs
@@ -5,6 +5,7 @@ namespace GoToWindow.Extensibility.ViewModel
{
public abstract class SearchResultBase
{
+ public string Error { get; set; }
private readonly Func _viewCtor;
private UserControl _view;
diff --git a/GoToWindow.Plugins.ExpandBrowsersTabs/ExpandBrowsersTabsPlugin.cs b/GoToWindow.Plugins.ExpandBrowsersTabs/ExpandBrowsersTabsPlugin.cs
index 06f307f..b179744 100644
--- a/GoToWindow.Plugins.ExpandBrowsersTabs/ExpandBrowsersTabsPlugin.cs
+++ b/GoToWindow.Plugins.ExpandBrowsersTabs/ExpandBrowsersTabsPlugin.cs
@@ -67,6 +67,7 @@ public void BuildList(List list)
if (!task.Wait(TimeoutMilliseconds, token))
{
+ item.Error = "* Error: Timeout trying to get tabs";
Log.WarnFormat("Timeout trying to get tabs for '{0}'", browserName);
continue;
}
diff --git a/GoToWindow.Plugins.ExplorerExtensions/ViewModel/ExplorerWindowSearchResult.cs b/GoToWindow.Plugins.ExplorerExtensions/ViewModel/ExplorerWindowSearchResult.cs
index e040642..bfe06de 100644
--- a/GoToWindow.Plugins.ExplorerExtensions/ViewModel/ExplorerWindowSearchResult.cs
+++ b/GoToWindow.Plugins.ExplorerExtensions/ViewModel/ExplorerWindowSearchResult.cs
@@ -14,6 +14,7 @@ public class ExplorerWindowSearchResult : IWindowSearchResult
public BitmapFrame Icon { get { return _window.Icon; } }
public string Title { get { return _path; } }
public string ProcessName { get { return _window.ProcessName; } }
+ public string Error { get { return _window.Error; } set { _window.Error = value; } }
public IntPtr HWnd { get { return _window.HWnd; } }
public bool IsShown(string searchQuery)
diff --git a/GoToWindow/ViewModels/DesignTimeMainViewModel.cs b/GoToWindow/ViewModels/DesignTimeMainViewModel.cs
index 7eede27..631434a 100644
--- a/GoToWindow/ViewModels/DesignTimeMainViewModel.cs
+++ b/GoToWindow/ViewModels/DesignTimeMainViewModel.cs
@@ -23,7 +23,7 @@ public DesignTimeMainViewModel()
{
new DesignTimeSearchResult(icon, "process", "Window Title"),
new DesignTimeSearchResult(icon, "very long process name", "Very very long window title that should end up with ellipsis because it is so very long"),
- new DesignTimeSearchResult(icon, "filler", "Some Window Title"),
+ new DesignTimeSearchResult(icon, "error", "This window has an error") { Error = "This is the error message" },
new DesignTimeSearchResult(icon, "filler", "Some Window Title"),
new DesignTimeSearchResult(icon, "filler", "Some Window Title"),
new DesignTimeSearchResult(icon, "filler", "Some Window Title"),