Package de.sciss.common

Examples of de.sciss.common.ProcessingThread


      }
    }
   
    private void perform( File f )
    {
      final ProcessingThread pt = doc.initiateLoad( f );
      pt.addListener( this );
      pt.start();
    }
View Full Code Here


      return( new File( strDir, strFile ));
    }
   
    public void processStopped( ProcessingThread.Event e )
    {
      final ProcessingThread pt = e.getProcessingThread();
      if( pt.getReturnCode() == ProgressComponent.DONE ) {
        final Map options = (Map) pt.getClientArg( "options" );
        addRecent( (File) options.get( "file" ));
// EEE
//        if( AbstractApplication.getApplication().getUserPrefs().getBoolean(
//          PrefsUtil.KEY_RECALLFRAMES, false )) {
//          BasicFrame.restoreAllFromPrefs();
View Full Code Here

        BasicWindowHandler.showErrorDialog( null, e1, getValue( NAME ).toString() );
      }

      final Main root = (Main) AbstractApplication.getApplication();
//      new ProcessingThread( this, root, root, doc, text, coll, Session.DOOR_TIMETRNSMTE | Session.DOOR_GRP );
      final ProcessingThread pt;
      pt = new ProcessingThread( this, root, text );
      pt.putClientArg( "trns", collNewTrns );
      pt.putClientArg( "span", span );
      pt.putClientArg( "edit", edit );
      pt.start();
    }
View Full Code Here

  public synchronized void quit()
  {
    final Flag        confirmed  = new Flag( false );
//    final ProcessingThread  pt      = getMenuFactory().closeAll( forcedQuit, confirmed );
    final ProcessingThread  pt      = doc.closeDocument( getResourceString( "menuQuit" ), forcedQuit, confirmed );

    if( pt != null ) {
      pt.addListener( quitAfterSaveListener );
      ((Session) pt.getClientArg( "doc" )).start( pt );
    } else if( confirmed.isSet() ) {
//      OSCRoot.getInstance().quit();
//      SuperColliderClient.getInstance().quit();
      super.quit();
    }
View Full Code Here

      ggOutputDir.getPath()
    };
       
    final Main root = (Main) AbstractApplication.getApplication();
//    new ProcessingThread( this, root, root, doc, getTitle(), fileArgs, 0 );
    final ProcessingThread pt;
    pt = new ProcessingThread( this, root, getTitle() );
    pt.putClientArg( "files", fileArgs );
    pt.start();
  }
View Full Code Here

    if( context == null || plugIn == null || renderingRunning ) return;
 
    context.setOption( RenderContext.KEY_PLUGIN, plugIn );
    renderingRunning = true;
//    pt  = new ProcessingThread( this, pc, root, doc, getTitle(), context, Session.DOOR_ALL );
    pt  = new ProcessingThread( this, pc, getTitle() );
    pt.putClientArg( "context", context );

    ggClose.setEnabled( false );
    ggRender.setAction( actionCancel );
    ggRender.requestFocus();
View Full Code Here

    if( !force ) {
      if( !confirmCancel( name )) {
        wasClosed.set( false );
        return null;
      }
      final ProcessingThread pt = confirmUnsaved( name, wasClosed );
      if( pt != null ) {
        pt.addListener( new ProcessingThread.Listener() {
          public void processStarted( ProcessingThread.Event e ) { /* ignored */ }
          public void processStopped( ProcessingThread.Event e )
          {
            if( e.isDone() ) {
              documentClosed();
View Full Code Here

    }
   
    private void perform()
    {
      final Flag        confirmed  = new Flag( false );
      final ProcessingThread  pt      = confirmUnsaved( getValue( NAME ).toString(), confirmed );
     
      if( pt == null ) {
        if( !confirmed.isSet() ) return;
        clear();
      } else {
        pt.addListener( new ProcessingThread.Listener() {
          public void processStarted( ProcessingThread.Event e ) {}
          public void processStopped( ProcessingThread.Event e ) {
            if( e.getProcessingThread().getReturnCode() == ProgressComponent.DONE ) {
              clear();
            }
View Full Code Here

     */
    protected ProcessingThread initiate( File docFile )
    {
      final Main root = (Main) AbstractApplication.getApplication();
      doc.getTransport().stop();
      final ProcessingThread pt;
//      return new ProcessingThread( this, root, root, doc, getValue( NAME ).toString(), docFile, Session.DOOR_ALL );
      pt = new ProcessingThread( this, root, getValue( NAME ).toString() );
      pt.putClientArg( "doc", doc );
      pt.putClientArg( "file", docFile );
//      pt.start();
      return pt;
    }
View Full Code Here

TOP

Related Classes of de.sciss.common.ProcessingThread

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.