In my java project in Android Studio I have an enum which member are used as indexes in string arrays for localization. I don't use standard Android localization tools because project is portable. I've found that it would be convenient when you move mouse over the enum value to see hint with first 50 symbols of corresponding string. Psevdocode is pretty trivial:
if classOf({word-under-mouse}) is MyStrIndEnum
then Hint(StringsArray[MyStrIndEnum.{word-under-mouse}.ordinal()]).
But is it possible to write a script, plugin or something so that Android Studio do this? I never wrote addons for IDE, so please advise which way to go and is it worth to mess up with it just for convenience.
To do this one must write plugin using IntelliJ Idea and subclass JavaDocumentationProvider.
Just in case someone interested:
In plugin.xml:
The rest - by default.
TranslationDocumentationProvider.java: (though isTextEnum and getTextForEnum methods specific to my case)