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.TreeDiffVisitor;
|
81
|
13 import org.eclipse.core.internal.databinding.observable.tree.TreePath;
|
|
14 import org.eclipse.core.internal.databinding.observable.tree.TreeDiffNode;
|
78
|
15
|
|
16 import java.lang.all;
|
|
17
|
|
18 /**
|
|
19 * @since 3.3
|
|
20 *
|
|
21 */
|
|
22 public abstract class TreeDiffVisitor {
|
|
23
|
|
24 /**
|
|
25 * Visits the given tree diff.
|
|
26 *
|
|
27 * @param diff
|
|
28 * the diff to visit
|
|
29 * @param currentPath
|
|
30 * the current path (the diff's element is the last segment of
|
|
31 * the path)
|
|
32 *
|
|
33 * @return <code>true</code> if the tree diff's children should be
|
|
34 * visited; <code>false</code> if they should be skipped.
|
|
35 */
|
|
36 public abstract bool visit(TreeDiffNode diff, TreePath currentPath);
|
|
37 }
|