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.