Search in sources :

Example 6 with FileSearchQuery

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

the class ResultUpdaterTest method setUp.

@Before
public void setUp() throws Exception {
    // create a own project to make modifications
    fProject = ResourceHelper.createJUnitSourceProject(PROJECT_TO_MODIFY);
    String[] fileNamePatterns = { "*.java" };
    FileTextSearchScope scope = FileTextSearchScope.newSearchScope(new IResource[] { fProject }, 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)

Example 7 with FileSearchQuery

use of org.eclipse.search.internal.ui.text.FileSearchQuery 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

FileSearchQuery (org.eclipse.search.internal.ui.text.FileSearchQuery)7 FileTextSearchScope (org.eclipse.search.ui.text.FileTextSearchScope)7 Before (org.junit.Before)5 FileSearchResult (org.eclipse.search.internal.ui.text.FileSearchResult)1