KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > viewers > model > provisional > IChildrenUpdate


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.debug.internal.ui.viewers.model.provisional;
12
13
14 /**
15  * Context sensitive children update request for a parent and subrange of its
16  * children.
17  * <p>
18  * Clients are not intended to implement this interface.
19  * </p>
20  * @since 3.3
21  */

22 public interface IChildrenUpdate extends IViewerUpdate {
23
24     /**
25      * Returns the offset at which children have been requested for. This is
26      * the index of the first child being requested.
27      *
28      * @return offset at which children have been requested for
29      */

30     public int getOffset();
31     
32     /**
33      * Returns the number of children requested.
34      *
35      * @return number of children requested
36      */

37     public int getLength();
38     
39     /**
40      * Sets the child for this request's parent at the given offset.
41      *
42      * @param child child
43      * @param index child offset
44      *
45      * TODO: what to do with <code>null</code>
46      */

47     public void setChild(Object JavaDoc child, int offset);
48 }
49
Popular Tags