Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: faf3f89b9294cb3e82ddc847a50430eddfc0823e (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
39
40
41
42
43
44
45
46
47
48
/*******************************************************************************
 * Copyright (c) 2005, 2006 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.provisional;

import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext;

/**
 * Provides content for elements in an asynchronous viewer. Note that implementations
 * must provide content asynchronously. 
 * <p>
 * Clients may implement this interface.
 * </p>
 * @since 3.2
 */
public interface IAsynchronousContentAdapter {

    /**
     * Asynchronously retrieves the children of the given parent reporting to the
     * given monitor. If unable to retrieve children, an exception should be reported
     * to the monitor with an appropriate status.
     * 
     * @param parent the element to retrieve children for
     * @param context the context in which children have been requested
     * @param monitor request monitor to report children to
     */
    public void retrieveChildren(Object parent, IPresentationContext context, IChildrenRequestMonitor result);
    
    /**
     * Asynchronously determines whether the given element contains children in the specified
     * context reporting the result to the given monitor. If unable to determine
     * whether the element has children, an exception should be reported to the monitor
     * with an appropriate status.
     * 
     * @param element the element on which children may exist 
     * @param context the context in which children may exist
     * @param monitor request monitor to report the result to
     */
    public void isContainer(Object element, IPresentationContext context, IContainerRequestMonitor result);

}

Back to the top