void autoClosingClipOpened(AutoClosingClip clip){
  if (Printer.debug)   Printer.debug("> EventDispatcher.autoClosingClipOpened ");
  int index=0;
synchronized (autoClosingClips) {
    index=getAutoClosingClipIndex(clip);
    if (index == -1) {
      if (Printer.debug)       Printer.debug("EventDispatcher: adding auto-closing clip " + clip);
      autoClosingClips.add(new ClipInfo(clip));
    }
  }
  if (index == -1) {
synchronized (this) {
      notifyAll();
    }
  }
  if (Printer.debug)   Printer.debug("< EventDispatcher.autoClosingClipOpened finished(" + autoClosingClips.size() + " clips)");
}

void autoClosingClipOpened ( AutoClosingClip clip ) { if ( Printer . debug ) Printer . debug ( "> EventDispatcher.autoClosingClipOpened " ) ; int index = 0 ; synchronized ( autoClosingClips ) { index = getAutoClosingClipIndex ( clip ) ; if ( index == - 1 ) { if ( Printer . debug ) Printer . debug ( "EventDispatcher: adding auto-closing clip " + clip ) ; autoClosingClips . add ( new ClipInfo ( clip ) ) ; } } if ( index == - 1 ) { synchronized ( this ) { notifyAll ( ) ; } } if ( Printer . debug ) Printer . debug ( "< EventDispatcher.autoClosingClipOpened finished(" + autoClosingClips . size ( ) + " clips)" ) ; }
called from auto - closing clips when one of their open ( ) method is called
