mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
[debugger] IDEA-361201 Hot swap button should be available in dumb mode
(cherry picked from commit 9cde27aaf8337c8ac886023fb8e887ae6a95bcd4) IJ-CR-147541 GitOrigin-RevId: 7f97a25a99b28f67d6d5baaae83dce0ac6385414
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6e3f9c776d
commit
7ca824ef6b
@@ -15,6 +15,7 @@ import com.intellij.openapi.editor.toolbar.floating.AbstractFloatingToolbarCompo
|
||||
import com.intellij.openapi.editor.toolbar.floating.FloatingToolbarComponent
|
||||
import com.intellij.openapi.editor.toolbar.floating.FloatingToolbarProvider
|
||||
import com.intellij.openapi.editor.toolbar.floating.isInsideMainEditor
|
||||
import com.intellij.openapi.project.DumbAware
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.util.registry.Registry
|
||||
import com.intellij.ui.AnimatedIcon
|
||||
@@ -50,7 +51,7 @@ private fun showFloatingToolbar(): Boolean = HotSwapUiExtension.computeSafeIfAva
|
||||
|
||||
private fun collectPopupMenuActions(): DefaultActionGroup? = HotSwapUiExtension.computeSafeIfAvailable { it.popupMenuActions() }
|
||||
|
||||
internal class HotSwapModifiedFilesAction : AnAction() {
|
||||
internal class HotSwapModifiedFilesAction : AnAction(), DumbAware {
|
||||
override fun actionPerformed(e: AnActionEvent) {
|
||||
val project = e.project ?: return
|
||||
val session = findSession(project) ?: return
|
||||
@@ -81,7 +82,7 @@ private enum class HotSwapButtonStatus {
|
||||
READY, IN_PROGRESS, SUCCESS
|
||||
}
|
||||
|
||||
private class HotSwapWithRebuildAction : AnAction(), CustomComponentAction {
|
||||
private class HotSwapWithRebuildAction : AnAction(), CustomComponentAction, DumbAware {
|
||||
var status = HotSwapButtonStatus.READY
|
||||
|
||||
override fun actionPerformed(e: AnActionEvent) {
|
||||
|
||||
Reference in New Issue
Block a user