Community
Participate
Working Groups
currently there is no way to programatically create a search using the new desktop search functionality. API should be provided to enable programatic creation/execution of searches.
pushed candidate command-based api to topic branch @task-354430@ This new API would enable integrations to integrate via the Eclipse command framework rather than via Java API, making it possible to create integrations that compiles both with and without search.
61f1dbe75f91f6abe90044f1d6b46d5264cd59b3 merged/pushed to master New command added for command-based invocation of search: bc. <command categoryId="org.eclipse.search.ui.category.search" description="Perform a search" id="org.eclipse.mylyn.sandbox.search.ui.performSearchCommand" name="Perform search"> <commandParameter id="org.eclipse.mylyn.sandbox.search.ui.searchText" name="Search Text" optional="false"/> <commandParameter id="org.eclipse.mylyn.sandbox.search.ui.filenameFilter" name="Filename Filter" optional="true"/> </command> p. New Java API for invoking search programatically in Java, see @org.eclipse.mylyn.sandbox.search.ui.Search@
Created attachment 202646 [details] mylyn/context/zip
Note that with the NewSearchUI there appears to be no easy way to open the search dialog prepopulated with search criteria. It may be possible to do it by adding to the search dialog history prior to opening the dialog, though this seems somewhat incorrect since currently we're only adding to the history if the user actually presses the search button.