return;
}
SearchPattern pattern = SearchPattern.createPattern(string, IJavaSearchConstants.FIELD, IJavaSearchConstants.ALL_OCCURRENCES,
SearchPattern.R_EXACT_MATCH);
SearchRequestor requestor = new SearchRequestor() {
@Override
public void acceptSearchMatch(final SearchMatch match) {
IAnnotationModel model = textEditor.getDocumentProvider().getAnnotationModel(textEditor.getEditorInput());
Annotation annotation = new Annotation("org.eclipse.jdt.ui.occurrences", false, "wicket id constant");
model.addAnnotation(annotation, new Position(match.getOffset(), match.getLength()));