All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.vectorpublish.desktop.vp.io.NewDocumentHS Maven / Gradle / Ivy

/*
 * Copyright (c) 2016, Peter Rader. All rights reserved.
 *  ___ ___               __                 ______         __     __  __         __
 * |   |   |.-----..----.|  |_ .-----..----.|   __ \.--.--.|  |--.|  ||__|.-----.|  |--.
 * |   |   ||  -__||  __||   _||  _  ||   _||    __/|  |  ||  _  ||  ||  ||__ --||     |
 *  \_____/ |_____||____||____||_____||__|  |___|   |_____||_____||__||__||_____||__|__|
 *
 * http://www.gnu.org/licenses/gpl-3.0.html
 */
package net.vectorpublish.desktop.vp.io;

import net.vectorpublish.desktop.vp.History;
import net.vectorpublish.desktop.vp.History.HistoryStep;
import net.vectorpublish.desktop.vp.api.vpd.ModificationContext;

/**
 *
 */
public final class NewDocumentHS extends HistoryStep {
	public NewDocumentHS(History history, VPDocumentROHSDB data) {
		history.super(data);
	}

	@Override
	public void execute(ModificationContext ctx) {
	}

	@Override
	public void rollback(ModificationContext ctx) {
		throw new RuntimeException("The creation of a document can not be undone!");
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy