Package de.sciss.app

Examples of de.sciss.app.DocumentHandler


  // @synchronization  must be in event thread
  private void registerTaskSyncs()
  {
    if( !EventQueue.isDispatchThread() ) throw new IllegalMonitorStateException();
   
    final DocumentHandler  dh      = AbstractApplication.getApplication().getDocumentHandler();
    Document        doc;
    SuperColliderPlayer    p;
   
    lmm.clearTaskSyncs();
   
    for( int i = 0; i < dh.getDocumentCount(); i++ ) {
      doc = dh.getDocument( i );
      if( doc instanceof Session ) {
        p  = superCollider.getPlayerForDocument( (Session) doc );
        if( p != null ) {
          lmm.addTaskSync( p.getOutputSync() );
          mapPlayers.put( doc, p );
View Full Code Here


    return root;
  }
 
  public ProcessingThread closeAll( boolean force, Flag confirmed )
  {
    final DocumentHandler  dh  = root.getDocumentHandler();
    BasicDocument      doc;
    ProcessingThread    pt;

    while( dh.getDocumentCount() > 0 ) {
      doc  = (BasicDocument) dh.getDocument( 0 );
//if( doc.getFrame() == null ) {
//  System.err.println( "Yukk, no doc frame for "+doc.getDisplayDescr().file );
//  try {
//    Thread.sleep( 4000 );
//  } catch( InterruptedException e1 ) {}
View Full Code Here

    };
  }
 
  protected DocumentHandler createDocumentHandler()
  {
    return new DocumentHandler() {
      public void addDocument( Object source, Document doc ) { /* nothing */ }
      public void removeDocument( Object source, Document doc ) { /* nothing */ }
      public void setActiveDocument( Object source, Document doc ) { /* nothing */ }
      public void addDocumentListener( DocumentListener l ) { /* nothing */ }
      public void removeDocumentListener( DocumentListener l ) { /* nothing */ }
View Full Code Here

TOP

Related Classes of de.sciss.app.DocumentHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.