Changeset 11874 in josm for trunk/src/org
- Timestamp:
- 2017-04-09T17:24:39+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/SequenceCommand.java
r11747 r11874 28 28 private final String name; 29 29 /** Determines if the sequence execution should continue after one of its commands fails. */ 30 public boolean continueOnError; 30 protected final boolean continueOnError; 31 32 /** 33 * Create the command by specifying the list of commands to execute. 34 * @param name The description text 35 * @param sequenz The sequence that should be executed 36 * @param continueOnError Determines if the sequence execution should continue after one of its commands fails 37 * @since 11874 38 */ 39 public SequenceCommand(String name, Collection<Command> sequenz, boolean continueOnError) { 40 this.name = name; 41 this.sequence = sequenz.toArray(new Command[sequenz.size()]); 42 this.continueOnError = continueOnError; 43 } 31 44 32 45 /** … … 36 49 */ 37 50 public SequenceCommand(String name, Collection<Command> sequenz) { 38 super(); 39 this.name = name; 40 this.sequence = sequenz.toArray(new Command[sequenz.size()]); 51 this(name, sequenz, false); 41 52 } 42 53
Note:
See TracChangeset
for help on using the changeset viewer.