Changeset 6397 in josm for trunk/src


Ignore:
Timestamp:
2013-11-20T21:49:59+01:00 (11 years ago)
Author:
Don-vip
Message:

see #8942 - more changes to SequenceCommand

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/SequenceCommand.java

    r6396 r6397  
    5252            boolean result = sequence[i].executeCommand();
    5353            if (!result && !continueOnError) {
    54                 this.undoCommands(i-1);
     54                undoCommands(i-1);
    5555                return false;
    5656            }
     
    7070    }
    7171   
    72     private void undoCommands(int start) {
     72    protected final void undoCommands(int start) {
    7373        // We probably aborted this halfway though the
    7474        // execution sequence because of a sub-command
     
    8282
    8383    @Override public void undoCommand() {
    84         this.undoCommands(sequence.length-1);
     84        undoCommands(sequence.length-1);
    8585    }
    8686
     
    118118        this.sequence = sequence;
    119119    }
     120   
     121    protected final void setSequenceComplete(boolean sequenceComplete) {
     122        this.sequenceComplete = sequenceComplete;
     123    }
    120124}
Note: See TracChangeset for help on using the changeset viewer.