blob: d55584860f355cc72543ff74252e89148f6cc16e [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ltk.ui.refactoring;
import org.eclipse.ltk.core.refactoring.Change;
import org.eclipse.ltk.internal.ui.refactoring.Assert;
/**
* Instances of this class represent the input for an {@link IChangePreviewViewer}.
* The input object manages the change object the viewer is associated with.
* <p>
* This class is not intended to be extended outside the refactoring framework.
* </p>
*
* @since 3.0
*/
public class ChangePreviewViewerInput {
private Change fChange;
/**
* Creates a new input object for the given change.
*
* @param change the change object
*/
public ChangePreviewViewerInput(Change change) {
Assert.isNotNull(change);
fChange= change;
}
/**
* Returns the change of this input object.
*
* @return the change of this input object
*/
public Change getChange() {
return fChange;
}
}