Package de.sciss.app

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


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


        }
        if( !insertSpan.isEmpty() ) {
          edit.addPerform( TimelineVisualEdit.select( this, Session.this, insertSpan ));
          edit.addPerform( TimelineVisualEdit.position( this, Session.this, insertSpan.stop ));
        }
        edit.perform();
        edit.end();
        getUndoManager().addEdit( edit );
      } else {
        edit.cancel();
      }
View Full Code Here

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

//            group  = (SessionGroup) doc.getSelectedGroups().get( i );
//            edit.addPerform( new EditAddSessionObjects( this, group.getReceivers(), coll3 ));
//          }

          edit.addPerform( new EditSetSessionObjects( this, doc.getMutableSelectedReceivers(), coll3 ));
          edit.perform();
          edit.end();
          doc.getUndoManager().addEdit( edit );
        }
       
        success = true;
View Full Code Here

        span  = new Span( Math.max( 0, span.getStart() + 1 - span.getLength() ), span.getStart() + 1 );

        edit  = new BasicCompoundEdit( getValue( NAME ).toString() );
        edit.addPerform( TimelineVisualEdit.select( this, doc, span ));
        edit.addPerform( TimelineVisualEdit.position( this, doc, span.getStart() ));
        edit.perform();
        edit.end();
        doc.getUndoManager().addEdit( edit );
      }
      finally {
        doc.bird.releaseExclusive( Session.DOOR_TIME );
View Full Code Here

      return;
    }
    finally {
      doc.markers.editEnd( ce );
    }
    ce.perform();
    ce.end();
    doc.getUndoManager().addEdit( ce );
  }
 
  private void removeMarkerLeftTo( long pos )
View Full Code Here

      return;
    }
    finally {
      doc.markers.editEnd( ce );
    }
    ce.perform();
    ce.end();
    doc.getUndoManager().addEdit( ce );
  }

  private void editMarkerLeftTo( long pos )
View Full Code Here

      return;
    }
    finally {
      doc.markers.editEnd( ce );
    }
    ce.perform();
    ce.end();
    doc.getUndoManager().addEdit( ce );
  }

  private MarkerStake getMarkerLeftTo( long pos )
View Full Code Here

            System.err.println( e1 );
            ce.cancel();
            return;
          }
          doc.markers.editEnd( ce );
          ce.perform();
          ce.end();
          doc.getUndoManager().addEdit( ce );
//        }
//        catch( IOException e1 ) {  // should never happen
//          System.err.println( e1 );
View Full Code Here

        if( !insertSpan.isEmpty() ) {
          edit.addPerform( TimelineVisualEdit.select( this, Session.this, insertSpan ));
          edit.addPerform( TimelineVisualEdit.position( this, Session.this, insertSpan.stop ));
        }

        edit.perform();
        edit.end();
        getUndoManager().addEdit( edit );
      } else {
        edit.cancel();
      }
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.