From 331d5b2dbd6415e930d729ee7062f785c3d20499 Mon Sep 17 00:00:00 2001 From: Daniil Maslov Date: Sun, 12 Oct 2025 11:20:53 +0200 Subject: [PATCH] [go] GOQA-134 move profiler tool window to common components GitOrigin-RevId: 2fe02fdae436e5955b2dc66dced4839433494311 --- .../common/toolwindows/ProfilerToolWindowUi.kt | 14 ++++++++++++++ .../ui/components/python/ProfilerToolWindowUi.kt | 10 ---------- 2 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/common/toolwindows/ProfilerToolWindowUi.kt delete mode 100644 platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/python/ProfilerToolWindowUi.kt diff --git a/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/common/toolwindows/ProfilerToolWindowUi.kt b/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/common/toolwindows/ProfilerToolWindowUi.kt new file mode 100644 index 000000000000..6310a60563dc --- /dev/null +++ b/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/common/toolwindows/ProfilerToolWindowUi.kt @@ -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) \ No newline at end of file diff --git a/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/python/ProfilerToolWindowUi.kt b/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/python/ProfilerToolWindowUi.kt deleted file mode 100644 index 4d5b18dec48d..000000000000 --- a/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/python/ProfilerToolWindowUi.kt +++ /dev/null @@ -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) \ No newline at end of file