Search in sources :

Example 6 with WindowManagerEx

use of com.intellij.openapi.wm.ex.WindowManagerEx in project intellij-community by JetBrains.

the class EditorsSplitters method getFrame.

protected IdeFrame getFrame(Project project) {
    final WindowManagerEx windowManagerEx = WindowManagerEx.getInstanceEx();
    final IdeFrame frame = windowManagerEx.getFrame(project);
    LOG.assertTrue(ApplicationManager.getApplication().isUnitTestMode() || frame != null);
    return frame;
}
Also used : WindowManagerEx(com.intellij.openapi.wm.ex.WindowManagerEx) IdeFrame(com.intellij.openapi.wm.IdeFrame)

Example 7 with WindowManagerEx

use of com.intellij.openapi.wm.ex.WindowManagerEx in project intellij-community by JetBrains.

the class StudyCheckUtils method hasBackgroundProcesses.

public static boolean hasBackgroundProcesses(@NotNull Project project) {
    final IdeFrame frame = ((WindowManagerEx) WindowManager.getInstance()).findFrameFor(project);
    final StatusBarEx statusBar = frame == null ? null : (StatusBarEx) frame.getStatusBar();
    if (statusBar != null) {
        final List<Pair<TaskInfo, ProgressIndicator>> processes = statusBar.getBackgroundProcesses();
        if (!processes.isEmpty())
            return true;
    }
    return false;
}
Also used : WindowManagerEx(com.intellij.openapi.wm.ex.WindowManagerEx) StatusBarEx(com.intellij.openapi.wm.ex.StatusBarEx) Pair(com.intellij.openapi.util.Pair)

Aggregations

WindowManagerEx (com.intellij.openapi.wm.ex.WindowManagerEx)7 IdeFrame (com.intellij.openapi.wm.IdeFrame)2 StatusBarEx (com.intellij.openapi.wm.ex.StatusBarEx)2 GradleTasksExecutor (com.android.tools.idea.gradle.project.build.invoker.GradleTasksExecutor)1 UISettings (com.intellij.ide.ui.UISettings)1 ProgressIndicator (com.intellij.openapi.progress.ProgressIndicator)1 TaskInfo (com.intellij.openapi.progress.TaskInfo)1 Pair (com.intellij.openapi.util.Pair)1 IdeFrameImpl (com.intellij.openapi.wm.impl.IdeFrameImpl)1