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));
}
Aggregations