コード例 #1
0
 @Nullable
 public final StatusBar getStatusBar(final Project project) {
   if (!myProject2Frame.containsKey(project)) {
     return null;
   }
   final IdeFrameImpl frame = getFrame(project);
   LOG.assertTrue(frame != null);
   return frame.getStatusBar();
 }
コード例 #2
0
  public final void releaseFrame(final IdeFrameImpl frame) {

    myEventDispatcher.getMulticaster().beforeFrameReleased(frame);

    final Project project = frame.getProject();
    LOG.assertTrue(project != null);

    frame.removeWindowListener(myActivationListener);
    proceedDialogDisposalQueue(project);

    frame.setProject(null);
    frame.setTitle(null);
    frame.setFileTitle(null, null);

    myProject2Frame.remove(project);
    Disposer.dispose(frame.getStatusBar());
    frame.dispose();
  }