use of com.intellij.openapi.wm.impl.DesktopLayout in project intellij-community by JetBrains.
the class TogglePresentationModeAction method storeToolWindows.
static boolean storeToolWindows(@Nullable Project project) {
if (project == null)
return false;
ToolWindowManagerEx manager = ToolWindowManagerEx.getInstanceEx(project);
DesktopLayout layout = new DesktopLayout();
layout.copyFrom(manager.getLayout());
boolean hasVisible = hideAllToolWindows(manager);
if (hasVisible) {
manager.setLayoutToRestoreLater(layout);
manager.activateEditorComponent();
}
return hasVisible;
}
Aggregations