78
|
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
|
|
12 module org.eclipse.core.internal.databinding.observable.tree.TreeChangeEvent;
|
81
|
13 import org.eclipse.core.internal.databinding.observable.tree.IObservableTree;
|
|
14 import org.eclipse.core.internal.databinding.observable.tree.TreeDiff;
|
78
|
15
|
|
16 import java.lang.all;
|
|
17
|
|
18 import java.util.EventObject;
|
|
19
|
|
20 /**
|
|
21 * @since 3.3
|
|
22 *
|
|
23 */
|
|
24 public class TreeChangeEvent : EventObject {
|
|
25
|
|
26 /**
|
|
27 *
|
|
28 */
|
|
29 private static final long serialVersionUID = -3198503763995528027L;
|
|
30 /**
|
|
31 *
|
|
32 */
|
|
33 public TreeDiff diff;
|
|
34
|
|
35 /**
|
|
36 * @param source
|
|
37 * @param diff
|
|
38 */
|
|
39 public this(IObservableTree source, TreeDiff diff) {
|
|
40 super(source);
|
|
41 this.diff = diff;
|
|
42 }
|
|
43
|
|
44 /**
|
|
45 * @return the observable tree from which this event originated
|
|
46 */
|
|
47 public IObservableTree getObservable() {
|
|
48 return cast(IObservableTree) getSource();
|
|
49 }
|
|
50
|
|
51 }
|