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;
}
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;
}
Aggregations