001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.io;
003
004/**
005 * This determines what to do when the max changeset size was exceeded by a upload.
006 * @since 12687 (moved from {@code gui.io} package)
007 */
008public enum MaxChangesetSizeExceededPolicy {
009    /**
010     * Abort uploading. Send the user back to map editing.
011     */
012    ABORT,
013    /**
014     * Fill one changeset. If it is full send the user back to the
015     * upload dialog where he can choose another changeset or another
016     * upload strategy if he or she wants to.
017     */
018    FILL_ONE_CHANGESET_AND_RETURN_TO_UPLOAD_DIALOG,
019
020    /**
021     * Automatically open as many new changesets as necessary to upload
022     * the data.
023     */
024    AUTOMATICALLY_OPEN_NEW_CHANGESETS
025}