2014-12-26 22:51:04 +08:00
|
|
|
|
using System.Collections.Generic;
|
2014-01-03 18:16:05 +08:00
|
|
|
|
using System.Linq;
|
2014-01-03 23:52:36 +08:00
|
|
|
|
using System.Threading;
|
2015-01-16 23:42:12 +08:00
|
|
|
|
using Wox.Core.Exception;
|
2015-01-05 22:41:17 +08:00
|
|
|
|
using Wox.Core.UserSettings;
|
2015-01-16 23:42:12 +08:00
|
|
|
|
using Wox.Infrastructure.Logger;
|
2014-01-29 18:33:24 +08:00
|
|
|
|
using Wox.Plugin;
|
2014-01-03 18:16:05 +08:00
|
|
|
|
|
2014-12-26 22:51:04 +08:00
|
|
|
|
namespace Wox.Core.Plugin.QueryDispatcher
|
2014-01-03 18:16:05 +08:00
|
|
|
|
{
|
2015-02-05 22:20:42 +08:00
|
|
|
|
public class GenericQueryDispatcher : BaseQueryDispatcher
|
2014-01-03 18:16:05 +08:00
|
|
|
|
{
|
2015-02-04 23:16:41 +08:00
|
|
|
|
protected override List<PluginPair> GetPlugins(Query query)
|
2014-01-03 18:16:05 +08:00
|
|
|
|
{
|
2015-02-05 22:20:42 +08:00
|
|
|
|
return PluginManager.AllPlugins.Where(o => PluginManager.IsGenericPlugin(o.Metadata)).ToList();
|
2014-01-03 18:16:05 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2015-01-04 23:08:26 +08:00
|
|
|
|
}
|