Closed BOFA1ex closed 2 years ago
Editor editor = event.getDataContext().getData(CommonDataKeys.EDITOR); VirtualFile file = event.getDataContext().getData(CommonDataKeys.VIRTUAL_FILE); // 当选中非java文件, 但未打开编辑器时, yapix正常回显. if (editor != null && file != null && !"java".equals(file.getExtension())) { visible = false; }