KickJava   Java API By Example, From Geeks To Geeks.

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


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 /**
15  * Describes the difference between two trees as a tree of tree diff nodes.
16  *
17  * @since 1.1
18  *
19  */

20 public abstract class TreeDiff extends TreeDiffNode {
21
22     /**
23      * Returns the tree path (possibly empty) of the parent, or
24      * <code>null</code> if the underlying tree is not lazy and never contains
25      * duplicate elements.
26      *
27      * @return the tree path (possibly empty) of the unchanged parent, or
28      * <code>null</code>
29      */

30     public abstract TreePath getParentPath();
31
32     /**
33      * @param visitor
34      */

35     public void accept(TreeDiffVisitor visitor) {
36         doAccept(visitor, getParentPath());
37     }
38
39 }
40
Popular Tags