mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[gui-test] get contents of tool window from EDT only (GUI-143)
This commit is contained in:
+3
-1
@@ -23,6 +23,7 @@ import com.intellij.openapi.wm.ToolWindow;
|
||||
import com.intellij.openapi.wm.ToolWindowManager;
|
||||
import com.intellij.openapi.wm.impl.StripeButton;
|
||||
import com.intellij.testGuiFramework.framework.Timeouts;
|
||||
import com.intellij.testGuiFramework.impl.GuiTestUtilKt;
|
||||
import com.intellij.ui.content.Content;
|
||||
import org.fest.swing.core.GenericTypeMatcher;
|
||||
import org.fest.swing.core.Robot;
|
||||
@@ -165,7 +166,8 @@ public abstract class ToolWindowFixture {
|
||||
|
||||
@NotNull
|
||||
public Content[] getContents() {
|
||||
return myToolWindow.getContentManager().getContents();
|
||||
//noinspection ConstantConditions
|
||||
return GuiTestUtilKt.INSTANCE.computeOnEdt(() -> myToolWindow.getContentManager().getContents());
|
||||
}
|
||||
|
||||
protected boolean isActive() {
|
||||
|
||||
Reference in New Issue
Block a user