Index: trunk/src/org/openstreetmap/josm/command/SequenceCommand.java
===================================================================
--- trunk/src/org/openstreetmap/josm/command/SequenceCommand.java	(revision 11873)
+++ trunk/src/org/openstreetmap/josm/command/SequenceCommand.java	(revision 11874)
@@ -28,5 +28,18 @@
     private final String name;
     /** Determines if the sequence execution should continue after one of its commands fails. */
-    public boolean continueOnError;
+    protected final boolean continueOnError;
+
+    /**
+     * Create the command by specifying the list of commands to execute.
+     * @param name The description text
+     * @param sequenz The sequence that should be executed
+     * @param continueOnError Determines if the sequence execution should continue after one of its commands fails
+     * @since 11874
+     */
+    public SequenceCommand(String name, Collection<Command> sequenz, boolean continueOnError) {
+        this.name = name;
+        this.sequence = sequenz.toArray(new Command[sequenz.size()]);
+        this.continueOnError = continueOnError;
+    }
 
     /**
@@ -36,7 +49,5 @@
      */
     public SequenceCommand(String name, Collection<Command> sequenz) {
-        super();
-        this.name = name;
-        this.sequence = sequenz.toArray(new Command[sequenz.size()]);
+        this(name, sequenz, false);
     }
 
Index: trunk/test/unit/org/openstreetmap/josm/command/SequenceCommandTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/command/SequenceCommandTest.java	(revision 11873)
+++ trunk/test/unit/org/openstreetmap/josm/command/SequenceCommandTest.java	(revision 11874)
@@ -122,6 +122,5 @@
         FailingCommand command2 = new FailingCommand();
         TestCommand command3 = new TestCommand(null);
-        SequenceCommand command = new SequenceCommand("seq", Arrays.<Command>asList(command1, command2, command3));
-        command.continueOnError = true;
+        SequenceCommand command = new SequenceCommand("seq", Arrays.<Command>asList(command1, command2, command3), true);
         assertTrue(command.executeCommand());
         assertTrue(command1.executed);
