KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > text > revisions > RevisionEvent


1 /*******************************************************************************
2  * Copyright (c) 2006, 2007 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.jface.text.revisions;
12
13 import org.eclipse.core.runtime.Assert;
14
15
16 /**
17  * Informs about a change of revision information.
18  * <p>
19  * Clients may use but not instantiate this class.
20  * </p>
21  *
22  * @since 3.3
23  */

24 public final class RevisionEvent {
25     
26     private final RevisionInformation fInformation;
27
28     /**
29      * Creates a new event.
30      *
31      * @param information the revision info
32      */

33     public RevisionEvent(RevisionInformation information) {
34         Assert.isLegal(information != null);
35         fInformation= information;
36     }
37
38     /**
39      * Returns the revision information that has changed.
40      *
41      * @return the revision information that has changed
42      */

43     public RevisionInformation getRevisionInformation() {
44         return fInformation;
45     }
46 }
47
Popular Tags