blob: 2ed6682e7103965e2f8261ea6e60888eafb4bf7e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/*******************************************************************************
* Copyright (c) 2011 Wind River Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* 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.
*/
public boolean isItemVisible(VirtualItem item);
/**
* Indicates that the viewer requested to reveal the given item in viewer.
*
* @param item Item to show.
*/
public void showItem(VirtualItem item);
}
|