Search in sources :

Example 16 with FileTextSearchScope

use of org.eclipse.search.ui.text.FileTextSearchScope in project eclipse.platform.text by eclipse.

the class SearchResultPageTest method setUp.

@Before
public void setUp() throws Exception {
    SearchTestPlugin.ensureWelcomePageClosed();
    String[] fileNamePatterns = { "*.java" };
    FileTextSearchScope scope = FileTextSearchScope.newWorkspaceScope(fileNamePatterns, false);
    fQuery1 = new FileSearchQuery("Test", false, true, scope);
}
Also used : FileSearchQuery(org.eclipse.search.internal.ui.text.FileSearchQuery) FileTextSearchScope(org.eclipse.search.ui.text.FileTextSearchScope) Before(org.junit.Before)

Aggregations

FileTextSearchScope (org.eclipse.search.ui.text.FileTextSearchScope)16 Pattern (java.util.regex.Pattern)7 FileSearchQuery (org.eclipse.search.internal.ui.text.FileSearchQuery)7 Before (org.junit.Before)6 IFolder (org.eclipse.core.resources.IFolder)5 IFile (org.eclipse.core.resources.IFile)3 IProject (org.eclipse.core.resources.IProject)1 TextSearchEngine (org.eclipse.search.core.text.TextSearchEngine)1 FileSearchResult (org.eclipse.search.internal.ui.text.FileSearchResult)1 IWorkbenchPage (org.eclipse.ui.IWorkbenchPage)1