KickJava   Java API By Example, From Geeks To Geeks.

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


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  * @since 3.3
16  *
17  */

18 public abstract class TreeDiffVisitor {
19
20     /**
21      * Visits the given tree diff.
22      *
23      * @param diff
24      * the diff to visit
25      * @param currentPath
26      * the current path (the diff's element is the last segment of
27      * the path)
28      *
29      * @return <code>true</code> if the tree diff's children should be
30      * visited; <code>false</code> if they should be skipped.
31      */

32     public abstract boolean visit(TreeDiffNode diff, TreePath currentPath);
33 }
34
Popular Tags