blob: 146ce409d662a2f57019d6c27ac731553aa67b04 (
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) 2012 IBM Corporation 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.debug.internal.ui.viewers.model.provisional;
/**
* Interface for listeners that need to be notified when items
* are disposed or revealed. It should be implemented by the viewer.
*
* @see VirtualTreeModelViewer
* @since 3.8
*/
public interface IVirtualItemListener {
/**
* Called when the item has been shown in the virtual viewer's
* view-port. This indicates to the viewer that it should check
* the item's status and request needed data.
*
* @param item The item that was revealed.
*/
void revealed(VirtualItem item);
/**
* Called when an item is disposed. It tells the viewer to
* clean up any remaining mappings and cached data of this item.
*
* @param item The itam that was disposed.
*/
void disposed(VirtualItem item);
}
|