BasicJavadocParser parser = new BasicJavadocParser(getSemanticTagHandlers());
parser.findJavadocTagsInTextFile(file, this, factory, root, new IJavadocReferenceCreator() {
public JavaElement createReference(String[] lines, int line) {
Template ref = createTemplate(factory, line, lines);
if (ref != null) {
templateFile.getTemplates().add(ref);
}
return ref;
}