129
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2006, 2008 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 * Port to the D programming language:
|
|
11 * Frank Benoit <benoit@tionex.de>
|
|
12 *******************************************************************************/
|
|
13 module dwtx.jface.text.revisions.RevisionEvent;
|
|
14
|
|
15 import dwt.dwthelper.utils;
|
|
16
|
|
17 import dwtx.core.runtime.Assert;
|
|
18
|
|
19
|
|
20 /**
|
|
21 * Informs about a change of revision information.
|
|
22 * <p>
|
|
23 * Clients may use but not instantiate this class.
|
|
24 * </p>
|
|
25 *
|
|
26 * @since 3.3
|
|
27 * @noinstantiate This class is not intended to be instantiated by clients.
|
|
28 */
|
|
29 public final class RevisionEvent {
|
|
30
|
|
31 private final RevisionInformation fInformation;
|
|
32
|
|
33 /**
|
|
34 * Creates a new event.
|
|
35 *
|
|
36 * @param information the revision info
|
|
37 */
|
|
38 public RevisionEvent(RevisionInformation information) {
|
|
39 Assert.isLegal(information !is null);
|
|
40 fInformation= information;
|
|
41 }
|
|
42
|
|
43 /**
|
|
44 * Returns the revision information that has changed.
|
|
45 *
|
|
46 * @return the revision information that has changed
|
|
47 */
|
|
48 public RevisionInformation getRevisionInformation() {
|
|
49 return fInformation;
|
|
50 }
|
|
51 }
|