KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > internal > databinding > observable > tree > TreeChangeEvent


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 package org.eclipse.core.internal.databinding.observable.tree;
13
14 import java.util.EventObject JavaDoc;
15
16 /**
17  * @since 3.3
18  *
19  */

20 public class TreeChangeEvent extends EventObject JavaDoc {
21
22     /**
23      *
24      */

25     private static final long serialVersionUID = -3198503763995528027L;
26     /**
27      *
28      */

29     public TreeDiff diff;
30
31     /**
32      * @param source
33      * @param diff
34      */

35     public TreeChangeEvent(IObservableTree source, TreeDiff diff) {
36         super(source);
37         this.diff = diff;
38     }
39
40     /**
41      * @return the observable tree from which this event originated
42      */

43     public IObservableTree getObservable() {
44         return (IObservableTree) getSource();
45     }
46
47 }
48
Popular Tags