8328110: Allow simultaneous use of PassFailJFrame with split UI and additional windows

Reviewed-by: aivanov, honkar
This commit is contained in:
Alexander Zvegintsev 2024-03-14 10:41:43 +00:00
parent 1281e18f14
commit 11a3673d42

@ -1333,14 +1333,6 @@ public final class PassFailJFrame {
position = Position.HORIZONTAL;
}
if (panelCreator != null) {
if (splitUI && (testWindows != null || windowListCreator != null)) {
// TODO Is it required? We can support both
throw new IllegalStateException("Split UI is not allowed "
+ "with additional windows");
}
}
if (positionWindows != null) {
if (testWindows == null && windowListCreator == null) {
throw new IllegalStateException("To position windows, "