SearchPattern pattern = SearchPattern.createPattern("Infer", IJavaSearchConstants.ANNOTATION_TYPE, IJavaSearchConstants.ANNOTATION_TYPE_REFERENCE, SearchPattern.R_EXACT_MATCH | SearchPattern.R_CASE_SENSITIVE);
SearchParticipant[] participants = new SearchParticipant[] {SearchEngine.getDefaultSearchParticipant()};
IJavaSearchScope scope = SearchEngine.createWorkspaceScope();
InferRequestor requestor = new InferRequestor(rels);
engine.search(pattern, participants, scope, requestor, monitor);
inferRules.addAll(requestor.getRules());
}
public void update(Observable o, Object arg) {
Triple<IResource, Document, XMLContext> triple = (Triple<IResource, Document, XMLContext>)arg;