project/com.nokia.carbide.cpp.epoc.engine/src/com/nokia/carbide/internal/cpp/epoc/engine/model/ChangeMultiModification.java
author Ed Swartz <ed.swartz@nokia.com>
Tue, 05 Jan 2010 11:23:50 -0600
changeset 743 78fd666a897a
parent 0 fb279309251b
permissions -rw-r--r--
Fix filesystem caching performance as in bug #10318

/*
* Copyright (c) 2007-2009 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.carbide.internal.cpp.epoc.engine.model;

import com.nokia.carbide.internal.api.cpp.epoc.engine.dom.IASTNode;
import com.nokia.carbide.internal.api.cpp.epoc.engine.dom.IASTStatement;

public class ChangeMultiModification implements
		IViewChangeModification {
	private final IASTStatement stmt;

	private final IASTStatement[] nodes;

	public ChangeMultiModification(IASTStatement stmt,
			IASTStatement[] nodes) {
		this.stmt = stmt;
		this.nodes = nodes;
	}

	public IASTNode[] getNodes() {
		return new IASTNode[] { stmt };
	}

	public IASTNode[] getReplacementNodes() {
		return nodes;
	}

	public IASTNode getParent() {
		return null;
	}
}