blob: d0054865bd18040d7d7f251cf954007270c8cee3 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011 Wind River Systems and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Wind River Systems - initial API and implementation
*******************************************************************************/
package org.eclipse.debug.internal.ui.viewers.model.provisional;
/**
* A validator to be used with a VirtualTreeModelViewer to determine which viewer
* items should be updated by the viewer.
*
* @see VirtualTreeModelViewer
* @since 3.8
*/
public interface IVirtualItemValidator {
/**
* Allows the validator to determine whether the given item is to be deemed
* visible in the virtual tree.
*
* @param item Item to be tested.
* @return returns true if the item should be considered visible.
*/
boolean isItemVisible(VirtualItem item);
/**
* Indicates that the viewer requested to reveal the given item in viewer.
*
* @param item Item to show.
*/
void showItem(VirtualItem item);
}