Search in sources :

Example 6 with DesktopLayout

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;
}
Also used : DesktopLayout(com.intellij.openapi.wm.impl.DesktopLayout) ToolWindowManagerEx(com.intellij.openapi.wm.ex.ToolWindowManagerEx)

Aggregations

DesktopLayout (com.intellij.openapi.wm.impl.DesktopLayout)6 ToolWindowManagerEx (com.intellij.openapi.wm.ex.ToolWindowManagerEx)4 Project (com.intellij.openapi.project.Project)3 Presentation (com.intellij.openapi.actionSystem.Presentation)1