public VsSearchTask(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback, ISearchHandler handler, CancellationTokenSource cts) { if (pSearchQuery == null) { throw new ArgumentNullException(nameof(pSearchQuery)); } if (pSearchCallback == null) { throw new ArgumentNullException(nameof(pSearchCallback)); } if (dwCookie == VSConstants.VSCOOKIE_NIL) { throw new ArgumentException(nameof(dwCookie)); } if (string.IsNullOrEmpty(pSearchQuery.SearchString)) { throw new ArgumentException(nameof(pSearchQuery)); } Id = dwCookie; SearchQuery = pSearchQuery; ErrorCode = 0; _searchCallback = pSearchCallback; _handler = handler; _cts = cts; _taskStatus = (long)Created; }
public NuGetSearchTask(NuGetSearchProvider provider, uint cookie, IVsSearchQuery searchQuery, IVsSearchProviderCallback searchCallback, OleMenuCommand managePackageDialogCommand, OleMenuCommand managePackageForSolutionDialogCommand) { if (provider == null) { throw new ArgumentNullException("provider"); } if (searchQuery == null) { throw new ArgumentNullException("searchQuery"); } if (searchCallback == null) { throw new ArgumentNullException("searchCallback"); } if (managePackageDialogCommand == null) { throw new ArgumentNullException("managePackageDialogCommand"); } if (managePackageForSolutionDialogCommand == null) { throw new ArgumentNullException("managePackageForSolutionDialogCommand"); } _provider = provider; _searchCallback = searchCallback; _managePackageDialogCommand = managePackageDialogCommand; _managePackageForSolutionDialogCommand = managePackageForSolutionDialogCommand; SearchQuery = searchQuery; Id = cookie; ErrorCode = 0; SetStatus(VsSearchTaskStatus.Created); }
public override IVsSearchTask CreateSearch(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback) { if (SearchEnabled) { var grid = Content as VariableView; return new VariableSearchTask(grid.RootTreeGrid, dwCookie, pSearchQuery, pSearchCallback); } return null; }
public override IVsSearchTask CreateSearch(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback) { if(pSearchQuery == null || pSearchCallback == null) { return null; } return new XPathSearchTask(dwCookie, pSearchQuery, pSearchCallback, this); }
public IVsSearchTask CreateSearch(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchProviderCallback pSearchCallback) { if (dwCookie == 0) { return null; } return new NuGetSearchTask(this, dwCookie, pSearchQuery, pSearchCallback, _managePackageDialogCommand, _managePackageForSolutionDialogCommand); }
// Main Search method that calls MSDNSearchTask to create and execute search query public IVsSearchTask CreateSearch(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchProviderCallback pSearchCallback) { if (dwCookie == VSConstants.VSCOOKIE_NIL) { return null; } return new MSDNSearchTask(this, dwCookie, pSearchQuery, pSearchCallback); }
public SearchTask(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback, JiraToolWindow toolwindow) : base(dwCookie, pSearchQuery, pSearchCallback) { m_toolWindow = toolwindow; }
public HistorySearchTask(uint dwCookie, IRHistoryFiltering historyFiltering, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback) : base(dwCookie, pSearchQuery, pSearchCallback) { _historyFiltering = historyFiltering; }
public IVsSearchTask CreateSearch(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback) { SearchPackagesAndRefreshUpdateCount(pSearchQuery.SearchString, useCache: true); return(null); }
public override IVsSearchTask CreateSearch(uint cookie, IVsSearchQuery searchQuery, IVsSearchCallback searchCallback) { if (searchQuery == null || searchCallback == null) return null; return new SearchTask(cookie, searchQuery, searchCallback, this); }
public override IVsSearchTask CreateSearch(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback) { return new MemberSearchTask(dwCookie, pSearchQuery, pSearchCallback, this); }
public NuGetPackageManagerControlSearchTask(PackageManagerControl packageManagerControl, uint id, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback) { _packageManagerControl = packageManagerControl; _searchCallback = pSearchCallback; _searchQuery = pSearchQuery; Id = id; ErrorCode = 0; SetStatus(VsSearchTaskStatus.Created); }
public VariableSearchTask(TreeGrid grid, uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback) : base(dwCookie, pSearchQuery, pSearchCallback) { _grid = grid; _callback = pSearchCallback; }
public XPathSearchTask(uint taskIdCookie, IVsSearchQuery searchQuery, IVsSearchCallback searchCallback, XPathWorkbenchWindow workbenchWindow) : base(taskIdCookie, searchQuery, searchCallback) { _workbenchWindow = workbenchWindow; }
public TableSearchTask(uint cookie, IVsSearchQuery searchQuery, IVsSearchCallback searchCallback, IWpfTableControl control) : base(cookie, searchQuery, searchCallback) { this.control = control; }
public StackOverflowSearchTask(StackOverflowSearchProvider provider, uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchProviderCallback pSearchCallback) : base(dwCookie, pSearchQuery, pSearchCallback) { this.searchProvider = provider; }
public IVsSearchTask CreateSearch(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchProviderCallback pSearchCallback) { return(new WorkItemSearchTask(Get <TfsContext>().WorkItemStore, this, dwCookie, pSearchQuery, pSearchCallback)); }
public SearchTask(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback, AppVeyorWindow toolwindow) : base(dwCookie, pSearchQuery, pSearchCallback) { ; }
public IVsSearchTask CreateSearch(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback) { throw new NotImplementedException(); }
public IVsSearchTask CreateSearch(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback) { SearchPackageInActivePackageSource(pSearchQuery.SearchString); return null; }
public SearchTask(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback, ISearchTaskTarget searchTarget) : base(dwCookie, pSearchQuery, pSearchCallback) { _searchTarget = searchTarget; }
public HelpSearchTask(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback, IServiceContainer services) : base(dwCookie, pSearchQuery, pSearchCallback) { _callback = pSearchCallback; _workflowProvider = services.GetService <IRInteractiveWorkflowProvider>(); }
public TableSearchTask(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback, IWpfTableControl control) : base(dwCookie, pSearchQuery, pSearchCallback) { _control = control; }
/// <summary> /// Initializes a new instance of the <see cref="MemberSearchTask" /> class. /// </summary> public MemberSearchTask(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback, Action<string> callback) : base(dwCookie, pSearchQuery, pSearchCallback) { _callback = callback; }
public TestSearchTask2(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback, MyToolWindow toolwindow) : base(dwCookie, pSearchQuery, pSearchCallback) { m_toolWindow = toolwindow; }
public VariableSearchTask(TreeGrid grid, uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback) : base(dwCookie, pSearchQuery, pSearchCallback) { _grid = grid; _callback = pSearchCallback; }
public TestSearchTask(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback, SqlExplorer toolwindow) : base(dwCookie, pSearchQuery, pSearchCallback) { _toolWindow = toolwindow; }
public SearchTask(uint cookie, IVsSearchQuery searchQuery, IVsSearchCallback searchCallback, MacrosToolWindow toolwindow) : base(cookie, searchQuery, searchCallback) { this.toolWindow = toolwindow; }
public void SearchAsync(IVsSearchQuery pSearchQuery) { _control.CreateSearch(0, pSearchQuery, null); }
public IVsSearchTask CreateSearch(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback) { var cts = new CancellationTokenSource(); var oldCts = Interlocked.Exchange(ref _cts, cts); oldCts?.Cancel(); return new VsSearchTask(dwCookie, pSearchQuery, pSearchCallback, _handler, cts); }
public void SearchAsync(IVsSearchQuery pSearchQuery) { _control.CreateSearch(0, pSearchQuery, null); }
public override IVsSearchTask CreateSearch(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback) { return(new HistorySearchTask(dwCookie, _historyFiltering, pSearchQuery, pSearchCallback)); }
public CovidWindowTask(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback, CovidWindow toolwindow) : base(dwCookie, pSearchQuery, pSearchCallback) { CovidToolWindow = toolwindow; }
public override IVsSearchTask CreateSearch([ComAliasName("VsShell.VSCOOKIE")] uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback) { if (TableControl == null) { System.Diagnostics.Debug.Fail("Attempting to search before initializing Error or Task ListWindow"); throw new InvalidOperationException("Attempting to search before initializing Error or Task ListWindow"); } return(new TableSearchTask(dwCookie, pSearchQuery, pSearchCallback, TableControl)); }
public WorkItemSearchTask(WorkItemStore store, IVsSearchProvider provider, uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback) : base(dwCookie, pSearchQuery, pSearchCallback) { this.store = store; searchProvider = provider; }
public HelpSearchTask(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback) : base(dwCookie, pSearchQuery, pSearchCallback) { _callback = pSearchCallback; _workflowProvider = VsAppShell.Current.ExportProvider.GetExportedValue <IRInteractiveWorkflowProvider>(); }
public IVsSearchTask CreateSearch(uint cookie, IVsSearchQuery searchQuery, IVsSearchCallback searchCallback) { return(new TableSearchTask(cookie, searchQuery, searchCallback, this.TableControl)); }
/// <summary>Creates a new search task object. The task is cold-started - Start() needs to be called on the task object to begin the search.</summary> /// <param name="dwCookie">The search cookie.</param> /// <param name="pSearchQuery">The search query.</param> /// <param name="pSearchCallback">The search callback.</param> /// <returns>The search task.</returns> public IVsSearchTask CreateSearch(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback) { return(new ModelExplorerSearchTask(this, dwCookie, pSearchQuery, pSearchCallback)); }
//Main Search method that calls MSDNSearchTask to create and execute search query public IVsSearchTask CreateSearch(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchProviderCallback pSearchCallback) { return new VSSearchTask(this.SearchableItems, this, dwCookie, pSearchQuery, pSearchCallback); }
public override IVsSearchTask CreateSearch(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback) { return(new HelpSearchTask(dwCookie, pSearchQuery, pSearchCallback, Services)); }
public HistorySearchTask(uint dwCookie, IRHistoryFiltering historyFiltering, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback, IServiceContainer services) : base(dwCookie, pSearchQuery, pSearchCallback) { _historyFiltering = historyFiltering; _services = services; }
public StackOverflowSearchTask(StackOverflowSearchProvider provider, uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchProviderCallback pSearchCallback) : base(dwCookie, pSearchQuery, pSearchCallback) { this.searchProvider = provider; }
public MSDNSearchTask(MSDNSearchProvider provider, uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchProviderCallback pSearchCallback) : base(dwCookie, pSearchQuery, pSearchCallback) { this.provider = provider; }
public VSSearchTask(VSSearchProvider provider, uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchProviderCallback pSearchCallback) : base(dwCookie, pSearchQuery, pSearchCallback) { this.provider = provider; }
public XPathSearchTask(uint taskIdCookie, IVsSearchQuery searchQuery, IVsSearchCallback searchCallback, XPathWorkbenchWindow workbenchWindow) : base(taskIdCookie, searchQuery, searchCallback) { _workbenchWindow = workbenchWindow; }
/// <summary> /// Initializes a new instance of the <see cref="MemberSearchTask" /> class. /// </summary> public MemberSearchTask(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback, SpadeToolWindow toolWindow) : base(dwCookie, pSearchQuery, pSearchCallback) { _toolWindow = toolWindow; }
public string GetWebQuery(IVsSearchQuery pSearchQuery) { return(string.Format( "http://visualstudiogallery.msdn.microsoft.com/site/feeds/searchRss?f%5B0%5D.Type=SearchText&f%5B0%5D.Value={0}&f%5B1%5D.Type=RootCategory&f%5B1%5D.Value=tools&f%5B1%5D.Text=Tools&sortBy=Relevance", HttpUtility.UrlEncode(pSearchQuery.SearchString))); }
public static string GetWebQuery(IVsSearchQuery searchQuery) { return string.Format( "http://visualstudiogallery.msdn.microsoft.com/site/feeds/searchRss?f%5B0%5D.Type=SearchText&f%5B0%5D.Value={0}&f%5B1%5D.Type=RootCategory&f%5B1%5D.Value=tools&f%5B1%5D.Text=Tools&sortBy=Relevance", HttpUtility.UrlEncode(searchQuery.SearchString)); }
public IVsSearchTask CreateSearch(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback) { SearchPackageInActivePackageSource(pSearchQuery.SearchString, useCache: true); return(null); }
public VSSearchTask(IList<VSSearchableItem> searchableItems, VSSearchProvider provider, uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchProviderCallback pSearchCallback) : base(dwCookie, pSearchQuery, pSearchCallback) { this.provider = provider; this.searchableItems = searchableItems; }
public override IVsSearchTask CreateSearch(uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback) => new MemberSearchTask(dwCookie, pSearchQuery, pSearchCallback, x => NameFilter = x);
public ProjectSearchTask(ProjectExplorerViewModel viewModel, uint dwCookie, IVsSearchQuery pSearchQuery, IVsSearchCallback pSearchCallback) : base(dwCookie, pSearchQuery, pSearchCallback) { _viewModel = viewModel; }
public string GetWebQuery(IVsSearchQuery pSearchQuery) { //"http://nuget.org/api/v2/Packages()?$orderby=DownloadCount%20desc,Id,LastUpdated%20desc&$filter=((((Id%20ne%20null)%20and%20substringof('{0}',tolower(Id)))%20or%20((Description%20ne%20null)%20and%20substringof('{0}',tolower(Description))))%20or%20((Tags%20ne%20null)%20and%20substringof('%20{0}%20',tolower(Tags))))%20and%20IsAbsoluteLatestVersion&$select=Id,Version,Authors,DownloadCount,VersionDownloadCount,PackageHash,PackageSize&$top=15", return string.Format( "http://nuget.org/api/v2/Packages()?$orderby=DownloadCount%20desc,Id,LastUpdated%20desc&$filter=((((Id%20ne%20null)%20and%20substringof('{0}',tolower(Id)))%20or%20((Description%20ne%20null)%20and%20substringof('{0}',tolower(Description))))%20or%20((Tags%20ne%20null)%20and%20substringof('%20{0}%20',tolower(Tags))))%20and%20IsAbsoluteLatestVersion&$select=Id&$top=10", HttpUtility.UrlEncode(pSearchQuery.SearchString)); }