Search in sources :

Example 1 with FileMatch

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

the class AnnotationManagerTest method testBogusAnnotation.

@Test
public void testBogusAnnotation() throws Exception {
    NewSearchUI.runQueryInForeground(null, fQuery1);
    FileSearchResult result = (FileSearchResult) fQuery1.getSearchResult();
    IFile file = (IFile) result.getElements()[0];
    SearchTestPlugin.openTextEditor(SearchTestPlugin.getDefault().getWorkbench().getWorkbenchWindows()[0].getPages()[0], file);
    result.addMatch(new FileMatch(file));
}
Also used : FileSearchResult(org.eclipse.search.internal.ui.text.FileSearchResult) IFile(org.eclipse.core.resources.IFile) FileMatch(org.eclipse.search.internal.ui.text.FileMatch) Test(org.junit.Test)

Aggregations

IFile (org.eclipse.core.resources.IFile)1 FileMatch (org.eclipse.search.internal.ui.text.FileMatch)1 FileSearchResult (org.eclipse.search.internal.ui.text.FileSearchResult)1 Test (org.junit.Test)1