1 /*******************************************************************************
2  * Copyright (c) 2002, 2005 IBM Corporation and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM - Initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.core.tools;
15 
16 /**
17  * This interface is implemented by objects that visit trees made of
18  * <code>TreeContentProviderNode</code> objects.
19  *
20  * @see org.eclipse.core.tools.TreeContentProviderNode#accept(ITreeNodeVisitor)
21  */
22 public interface ITreeNodeVisitor {
23 	/**
24 	 * Visits the given node.
25 	 *
26 	 * @param node the node to visit
27 	 * @return <code>true</code> if the node's child nodes  should  be visited;
28 	 * <code>false</code> if they should be skipped
29 	 */
visit(TreeContentProviderNode node)30 	public boolean visit(TreeContentProviderNode node);
31 }
32