mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-242936 [new run config UI] when switching to the new UI before launch tasks, non-empty logs and coverage sections are closed by default
logs fragment fixed GitOrigin-RevId: 1b29bb90d0efb4f50f7f513a68a7b8ffc9b4758f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
76cc5b0ba9
commit
b357c53573
@@ -41,7 +41,7 @@ public class LogsFragment<T extends RunConfigurationBase<?>> extends NestedGroup
|
||||
private final ListTableModel<LogFileOptions> myModel;
|
||||
|
||||
public LogsFragment() {
|
||||
super("log.monitor", DiagnosticBundle.message("log.monitor.fragment.name"), DiagnosticBundle.message("log.monitor.fragment.group"), t -> false);
|
||||
super("log.monitor", DiagnosticBundle.message("log.monitor.fragment.name"), DiagnosticBundle.message("log.monitor.fragment.group"), t -> !t.getLogFiles().isEmpty());
|
||||
|
||||
ColumnInfo<LogFileOptions, String> TAB_NAME = new TabNameColumnInfo();
|
||||
ColumnInfo<LogFileOptions, String> FILE = new FileColumnInfo();
|
||||
|
||||
@@ -5,6 +5,7 @@ import com.intellij.openapi.options.ConfigurationException;
|
||||
import com.intellij.openapi.options.SettingsEditorListener;
|
||||
import com.intellij.openapi.util.Disposer;
|
||||
import com.intellij.openapi.util.NotNullLazyValue;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
import org.jetbrains.annotations.Nls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -49,6 +50,11 @@ public abstract class NestedGroupFragment<S extends FragmentedSettings> extends
|
||||
updateVisibility();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInitiallyVisible(S s) {
|
||||
return super.isInitiallyVisible(s) || ContainerUtil.exists(getChildren(), fragment -> fragment.isInitiallyVisible(s));
|
||||
}
|
||||
|
||||
private void updateVisibility() {
|
||||
myGroupComponent.setVisible(isSelected());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user