Annotator for all languages Follow
I'd like is to register my annotator normally in plugin.xml:
<annotator language="" implementationClass="my.Annotator"/>
Where the empty string indicates my annotator should be invoked for all languages. But this does not work. After inspection of jetbrains code it is clear annotators are accessed explicitly per language; the empty string wildcard is not respected.
Is there a way to programmatically register an annotator?
I read in an earlier post this could be done via:
Language.getRegisteredLanguages() and LanguageAnnotators.INSTANCE.registerExplicitExtension()
However, registerExplicitExtension() is no longer part of the API. Is there an alternative?
Please sign in to leave a comment.
Never mind, I've discovered registerExplicitExtension() is addExplicitExtension()
@Scott McKinney Could you give an example about how to enable annotator for all languages? Thanks.
Already know how to do it, Thanks anyway!