1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-03-06 18:32:51 +01:00

Fix incompatibilities with older version of IJ

This commit is contained in:
Alex Plate 2019-10-17 15:38:14 +03:00
parent 20b8e8db8b
commit 2258ffa5eb
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F

View File

@ -82,7 +82,8 @@ private object StatusBarIcon : StatusBarWidget, StatusBarWidget.IconPresentation
popup.show(component)
}
override fun getPresentation(): StatusBarWidget.WidgetPresentation? = this
// TODO [VERSION UPDATE] After 193 use `getPresentation()`
override fun getPresentation(type: StatusBarWidget.PlatformType): StatusBarWidget.WidgetPresentation? = this
private fun getActions(component: Component): DefaultActionGroup {
val actionGroup = DefaultActionGroup()
@ -220,11 +221,11 @@ private object JoinEap : AnAction() {
"IdeaVim $version EAP", "Yes", "Install without restart", "Cancel", null)
when (res) {
Messages.YES -> updatePlugin(project, downloader) { updated ->
if (updated) {
ApplicationManagerEx.getApplicationEx().restart(true)
} else {
notificator.notifyFailedToDownloadEap()
}
if (updated) {
ApplicationManagerEx.getApplicationEx().restart(true)
} else {
notificator.notifyFailedToDownloadEap()
}
}
Messages.NO -> updatePlugin(project, downloader) { notificator.notifyEapDownloaded() }
else -> notificator.notifySubscribedToEap()