Package de.sciss.meloncillo.edit

Examples of de.sciss.meloncillo.edit.BasicCompoundEdit


    final AbstractCompoundEdit  ce;

    positionSmps  = (long) timeTrans.translate( ggMarkPos.getValue(), ParamSpace.spcTimeSmps ).val;
    if( (positionSmps == mark.pos) && (ggMarkName.getText().equals( mark.name ))) return; // no change
   
    ce    = new BasicCompoundEdit( getResourceString( "editEditMarker" ));
    doc.markers.editBegin( ce );
    try {
      doc.markers.editRemove( this, mark, ce );
      doc.markers.editAdd( this, new MarkerStake( positionSmps, ggMarkName.getText() ), ce );
    }
View Full Code Here


//        if( !doc.bird.attemptExclusive( Session.DOOR_TIME, 250 )) return;
//        try {
          // ok this is tricky and totally stupid, have to replace it some day XXX
//          doc.markers.remove( this, dragLastMark );  // remove temporary marker
//          doc.markers.add( this, dragMark );      // restore original marker for undoable edit!
          ce  = new BasicCompoundEdit( getResourceString( "editMoveMarker" ));
          doc.markers.editBegin( ce );
          try {
            doc.markers.editRemove( this, dragMark, ce );
            doc.markers.editAdd( this, dragLastMark, ce );
          }
View Full Code Here

TOP

Related Classes of de.sciss.meloncillo.edit.BasicCompoundEdit

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.