Как получить суперкласс класса в разработке плагинов IntelliJ? - PullRequest
0 голосов
/ 03 марта 2020
class RightClickAction : AnAction() {
    override fun update(e: AnActionEvent) {
        //TODO Set enable if the class is a subclass of ViewHolder
    }
    override fun actionPerformed(e: AnActionEvent) {
        val element = CommonDataKeys.EDITOR.getData(e.dataContext)
        if (element != null) {

        }
    }
}

Проблема в том, как получить суперкласс или проверить, является ли класс напрямую расширяющим ViewHolder.

...