Package de.sciss.app

Examples of de.sciss.app.AbstractCompoundEdit


    }
  }
 
  public void addMarker( long pos )
  {
    final AbstractCompoundEdit  ce;
 
    pos    = Math.max( 0, Math.min( doc.timeline.getLength(), pos ));
    ce    = new BasicCompoundEdit( getResourceString( "editAddMarker" ));
    doc.markers.editBegin( ce );
    try {
      doc.markers.editAdd( this, new MarkerStake( pos, "Mark" ), ce );
    }
    catch( IOException e1 ) {  // should never happen
      System.err.println( e1 );
      ce.cancel();
      return;
    }
    finally {
      doc.markers.editEnd( ce );
    }
    ce.perform();
    ce.end();
    doc.getUndoManager().addEdit( ce );
  }
View Full Code Here

TOP

Related Classes of de.sciss.app.AbstractCompoundEdit

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.