[go] GOQA-134 move profiler tool window to common components

GitOrigin-RevId: 2fe02fdae436e5955b2dc66dced4839433494311
This commit is contained in:
Daniil Maslov
2025-10-12 13:07:35 +00:00
committed by intellij-monorepo-bot
parent e6b86f229b
commit 331d5b2dbd
2 changed files with 14 additions and 10 deletions
@@ -0,0 +1,14 @@
package com.intellij.driver.sdk.ui.components.common.toolwindows
import com.intellij.driver.sdk.ui.components.ComponentData
import com.intellij.driver.sdk.ui.components.common.IdeaFrameUI
fun IdeaFrameUI.profilerToolWindow(action: ProfilerToolWindowUi.() -> Unit = {}): ProfilerToolWindowUi =
x(ProfilerToolWindowUi::class.java) {
componentWithChild(
byClass("InternalDecoratorImpl"),
byAccessibleName("Profiler")
)
}.apply(action)
class ProfilerToolWindowUi(data: ComponentData) : ToolWindowUiComponent(data)
@@ -1,10 +0,0 @@
package com.intellij.driver.sdk.ui.components.python
import com.intellij.driver.sdk.ui.components.ComponentData
import com.intellij.driver.sdk.ui.components.common.IdeaFrameUI
import com.intellij.driver.sdk.ui.components.common.toolwindows.ToolWindowUiComponent
fun IdeaFrameUI.profilerToolWindow(func: ProfilerToolWindowUi.() -> Unit = {}) =
x(ProfilerToolWindowUi::class.java) { componentWithChild(byClass("InternalDecoratorImpl"), byAccessibleName("Profiler")) }.apply(func)
class ProfilerToolWindowUi(data: ComponentData) : ToolWindowUiComponent(data)