Salut a tous,
Alors voila j'ai besoin de trouver des fichiers contenants certaines annotations, pour cela j'utilise le parckage org.eclipse.jdt.core.search et SearchPattern seulement pour les annotations j'obtiens pas le résultat que j'attend voici l'appel :

SearchPattern pattern = SearchPattern.createPattern("SomeAnnotation", IJavaSearchConstants.ANNOTATION_TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_FULL_MATCH | SearchPattern.R_CASE_SENSITIVE);

le contenu que je cherche est
@SomeAnnotation
public interface SomeInterface
{...}

Lorsque je change le 1er en @SomeAnnotation j'ai plus aucun résultat et lorsque je change le 2ème paramètre en JavaSearchConstants.ALL_OCCURRENCES j'obtient 2 fois chaque fichier qui comporte SomeAnnotation mais pas forcément après un @

Une idée ?