Package org.eclipse.search.ui.text

Examples of org.eclipse.search.ui.text.TextSearchQueryProvider


     *
     * @param text to search for
     */
    protected void handleSearchPerformed(String text) {
        try {
            TextSearchQueryProvider queryProvider = TextSearchQueryProvider.getPreferred();
            IJavaProject currentJavaProject = theController.getCurrentProject();
            if (currentJavaProject == null) return;
           
            IResource currentProject = currentJavaProject.getResource();
            ISearchQuery query = queryProvider.createQuery(text, asArray(currentProject));
            NewSearchUI.runQueryInBackground(query);
            query.getSearchResult().addListener(resultListener);
        } catch (CoreException e) {
            Log.error(e);
        }
View Full Code Here

TOP

Related Classes of org.eclipse.search.ui.text.TextSearchQueryProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.