1 /*******************************************************************************
2  * Copyright (c) 2011 Wind River Systems 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  *     Wind River Systems - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.debug.internal.ui.viewers.model.provisional;
15 
16 
17 /**
18  * A validator to be used with a VirtualTreeModelViewer to determine which viewer
19  * items should be updated by the viewer.
20  *
21  * @see VirtualTreeModelViewer
22  * @since 3.8
23  */
24 public interface IVirtualItemValidator {
25 
26 	/**
27 	 * Allows the validator to determine whether the given item is to be deemed
28 	 * visible in the virtual tree.
29 	 *
30 	 * @param item Item to be tested.
31 	 * @return returns true if the item should be considered visible.
32 	 */
isItemVisible(VirtualItem item)33 	boolean isItemVisible(VirtualItem item);
34 
35 	/**
36 	 * Indicates that the viewer requested to reveal the given item in viewer.
37 	 *
38 	 * @param item Item to show.
39 	 */
showItem(VirtualItem item)40 	void showItem(VirtualItem item);
41 }
42