RutaRule rule = visitor.getResult();
myAnnotations = new HashMap<Annotation, Position>();
if (rule != null) {
Annotation annotation = new Annotation(SearchPlugin.SEARCH_ANNOTATION_TYPE, true, null);
int sourceStart = rule.sourceStart();
int sourceEnd = rule.sourceEnd();
Position position = new Position(sourceStart, sourceEnd - sourceStart);
getSourceViewer().revealRange(sourceStart, sourceEnd - sourceStart);
myAnnotations.put(annotation, position);
}
addAnnotations(myAnnotations);