예제 #1
0
    private void doExecute(PsiFile file, int offset) {
      final Info info;
      try {
        info = getInfoAt(myEditor, file, offset, myBrowseMode);
      } catch (IndexNotReadyException e) {
        showDumbModeNotification(myProject);
        return;
      }
      if (info == null) return;

      SwingUtilities.invokeLater(
          new Runnable() {
            public void run() {
              if (myDisposed || myEditor.isDisposed() || !myEditor.getComponent().isShowing())
                return;
              showHint(info);
            }
          });
    }
예제 #2
0
  private void updateComplete() {
    synchronized (this) {
      updatePending = false;
    }

    if (dirty) {
      SwingUtilities.invokeLater(
          new Runnable() {
            @Override
            public void run() {
              updateImage();
              dirty = false;
            }
          });
    }

    activeBuffer = nextBuffer;

    repaint();
  }