[rd debugger] IDEA-377734 Move customize data views action to frontend

GitOrigin-RevId: c95a0691eeb4477dfc87eb621da36f108e0ce8e8
This commit is contained in:
Maksim Zuev
2025-08-21 16:32:34 +00:00
committed by intellij-monorepo-bot
parent 46e3e76039
commit 2c590397df
10 changed files with 62 additions and 29 deletions
+1
View File
@@ -35,6 +35,7 @@ jvm_library(
"//platform/xdebugger-impl/rpc",
"//platform/projectModel-api:projectModel",
"//platform/util/jdom",
"//platform/project/shared:project",
],
runtime_deps = [":backend_resources"]
)
@@ -55,5 +55,6 @@
<orderEntry type="module" module-name="intellij.platform.debugger.impl.rpc" />
<orderEntry type="module" module-name="intellij.platform.projectModel" />
<orderEntry type="module" module-name="intellij.platform.util.jdom" />
<orderEntry type="module" module-name="intellij.platform.project" />
</component>
</module>
@@ -2,6 +2,7 @@
package com.intellij.java.debugger.impl.backend
import com.intellij.debugger.actions.CreateRendererActionUtils
import com.intellij.debugger.actions.CustomizeContextViewActionUtils
import com.intellij.debugger.engine.JavaDebugProcess
import com.intellij.debugger.engine.JavaValue
import com.intellij.debugger.memory.action.CalculateRetainedSizeActionUtil
@@ -10,6 +11,8 @@ import com.intellij.debugger.memory.filtering.ClassInstancesProvider
import com.intellij.debugger.memory.ui.InstancesWindow
import com.intellij.java.debugger.impl.shared.rpc.JavaDebuggerLuxActionsApi
import com.intellij.openapi.application.EDT
import com.intellij.platform.project.ProjectId
import com.intellij.platform.project.findProject
import com.intellij.xdebugger.impl.rpc.XValueId
import com.intellij.xdebugger.impl.rpc.models.BackendXValueModel
import com.sun.jdi.ReferenceType
@@ -45,4 +48,11 @@ internal class BackendJavaDebuggerLuxActionsApi : JavaDebuggerLuxActionsApi {
CreateRendererActionUtils.showCreateRendererDialog(javaValue)
}
}
override suspend fun showCustomizeDataViewsDialog(projectId: ProjectId) {
val project = projectId.findProject()
withContext(Dispatchers.EDT) {
CustomizeContextViewActionUtils.showDialog(project)
}
}
}