/*
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/

package com.nokia.sdt.sourcegen.contributions;

import org.eclipse.core.runtime.CoreException;

import java.util.List;

/**
 * Interface encapsulating results of applying patches.
 * This represents the state of a test or real patch application,
 * whose results can be tossed away.
 * 
 * @deprecated for IDomainPatchRefactoringEngine
 *
 */
public interface IDomainPatchEngine {
	/**
	 * Apply patch contributions.
	 * @param context
	 * @param patches 
	 */
	void applyPatches(List<SourceGenPatch> patches);
	
	/** Apply changes to client-visible file buffers */
	void saveChanges() throws CoreException;
}
