mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
misc jdk: make jdk download action DumbAware
IJ-CR-209711 (cherry picked from commit a2aae37dc37cbee5d5c9a0eda8e60a84345b2949) IJ-CR-209711 GitOrigin-RevId: 3749249930e5270af43a055831484ce6eb5548ee
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2149c59d8f
commit
340b136501
+2
-1
@@ -9,6 +9,7 @@ import com.intellij.openapi.actionSystem.AnActionEvent
|
||||
import com.intellij.openapi.application.EDT
|
||||
import com.intellij.openapi.application.writeAction
|
||||
import com.intellij.openapi.components.service
|
||||
import com.intellij.openapi.project.DumbAwareAction
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.projectRoots.JavaSdk
|
||||
import com.intellij.openapi.projectRoots.impl.jdkDownloader.JdkDownloadUtil
|
||||
@@ -37,7 +38,7 @@ public class ExternalJavaConfigurationJdkDownloaderAction : ExternalJavaConfigur
|
||||
}
|
||||
|
||||
private class MyAction<T: JdkReleaseData>(val downloadExtension: SdkDownload, val provider: ExternalJavaConfigurationProvider<T>, val releaseData: T) :
|
||||
AnAction(JavaBundle.message("external.java.configuration.download.in.ide"),
|
||||
DumbAwareAction(JavaBundle.message("external.java.configuration.download.in.ide"),
|
||||
null, AllIcons.Actions.Download) {
|
||||
override fun getActionUpdateThread(): ActionUpdateThread = ActionUpdateThread.BGT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user