Package de.sciss.app

Examples of de.sciss.app.AbstractCompoundEdit.cancel()


        }
        edit.perform();
        edit.end();
        getUndoManager().addEdit( edit );
      } else {
        edit.cancel();
      }
    }

    // mte will check pt.shouldCancel() itself
    public void processCancel( ProcessingThread context ) { /* ignore */ }
View Full Code Here


        edit.perform();
        edit.end();
        getUndoManager().addEdit( edit );
      } else {
        edit.cancel();
      }

//      if( doneAction != null ) doneAction.processFinished( context, doc );
      if( doneAction != null ) doneAction.processFinished( context );
    }
View Full Code Here

      if( context.getReturnCode() == DONE ) {
        edit.perform();
        edit.end();
        getUndoManager().addEdit( edit );
      } else {
        edit.cancel();
      }
    }

    // mte will check pt.shouldCancel() itself
    public void processCancel( ProcessingThread context ) { /* ignore */ }
View Full Code Here

    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 );
    }
View Full Code Here

    try {
      doc.markers.editRemove( this, mark, ce );
    }
    catch( IOException e1 ) {  // should never happen
      System.err.println( e1 );
      ce.cancel();
      return;
    }
    finally {
      doc.markers.editEnd( ce );
    }
View Full Code Here

      doc.markers.editRemove( this, mark, ce );
      doc.markers.editAdd( this, new MarkerStake( positionSmps, ggMarkName.getText() ), ce );
    }
    catch( IOException e1 ) {  // should never happen
      System.err.println( e1 );
      ce.cancel();
      return;
    }
    finally {
      doc.markers.editEnd( ce );
    }
View Full Code Here

            doc.markers.editRemove( this, dragMark, ce );
            doc.markers.editAdd( this, dragLastMark, ce );
          }
          catch( IOException e1 ) {  // should never happen
            System.err.println( e1 );
            ce.cancel();
            return;
          }
          doc.markers.editEnd( ce );
          ce.perform();
          ce.end();
View Full Code Here

      if( context.getReturnCode() == DONE ) {
        edit.perform();
        edit.end();
        getUndoManager().addEdit( edit );
      } else {
        edit.cancel();
      }
    }

    // mte will check pt.shouldCancel() itself
    public void processCancel( ProcessingThread context ) { /* ignore */ }
View Full Code Here

      if( context.getReturnCode() == ProgressComponent.DONE ) {
        edit.perform();
        edit.end(); // fires doc.tc.modified()
        doc.getUndoManager().addEdit( edit );
      } else {
        edit.cancel();
      }
    }
   
    public void processCancel( ProcessingThread context ) {}
View Full Code Here

        }
        edit.perform();
        edit.end();
        getUndoManager().addEdit( edit );
      } else {
        edit.cancel();
      }
    }

    // mte will check pt.shouldCancel() itself
    public void processCancel( ProcessingThread context ) { /* ignore */ }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.