protected int execute(TypedEvent e) {
   Caret caret = getEditor().getTablature().getCaret();
   TGTrack track = getSongManager().getTrack(caret.getTrack().getNumber() + 1);
   if (track != null) {
     caret.update(track.getNumber());
   }
   return 0;
 }
Exemplo n.º 2
0
  protected int execute(TypedEvent e) {
    // comienza el undoable
    UndoableMeasureGeneric undoable = UndoableMeasureGeneric.startUndo();

    Caret caret = getEditor().getTablature().getCaret();
    getSongManager()
        .getMeasureManager()
        .changeGhostNote(
            caret.getMeasure(), caret.getPosition(), caret.getSelectedString().getNumber());
    TuxGuitar.instance().getFileHistory().setUnsavedFile();
    updateTablature();

    // termia el undoable
    addUndoableEdit(undoable.endUndo());

    return 0;
  }