KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ltk > ui > refactoring > ChangePreviewViewerInput


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ltk.ui.refactoring;
12
13 import org.eclipse.core.runtime.Assert;
14
15 import org.eclipse.ltk.core.refactoring.Change;
16
17 /**
18  * Instances of this class represent the input for an {@link IChangePreviewViewer}.
19  * The input object manages the change object the viewer is associated with.
20  * <p>
21  * This class is not intended to be extended outside the refactoring framework.
22  * </p>
23  *
24  * @since 3.0
25  */

26 public class ChangePreviewViewerInput {
27     private Change fChange;
28     
29     /**
30      * Creates a new input object for the given change.
31      *
32      * @param change the change object
33      */

34     public ChangePreviewViewerInput(Change change) {
35         Assert.isNotNull(change);
36         fChange= change;
37     }
38     
39     /**
40      * Returns the change of this input object.
41      *
42      * @return the change of this input object
43      */

44     public Change getChange() {
45         return fChange;
46     }
47 }
48
Popular Tags