1 /******************************************************************************* 2 * Copyright (c) 2006, 2011 IBM Corporation and others. 3 * 4 * This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License 2.0 6 * which accompanies this distribution, and is available at 7 * https://www.eclipse.org/legal/epl-2.0/ 8 * 9 * SPDX-License-Identifier: EPL-2.0 10 * 11 * Contributors: 12 * IBM Corporation - initial API and implementation 13 *******************************************************************************/ 14 package org.eclipse.debug.internal.ui.viewers.model.provisional; 15 16 17 /** 18 * Context sensitive children update request for a parent and subrange of its 19 * children. 20 * 21 * @noimplement This interface is not intended to be implemented by clients. 22 * @since 3.3 23 */ 24 public interface IChildrenUpdate extends IViewerUpdate { 25 26 /** 27 * Returns the offset at which children have been requested for. This is 28 * the index of the first child being requested. 29 * 30 * @return offset at which children have been requested for 31 */ getOffset()32 int getOffset(); 33 34 /** 35 * Returns the number of children requested. 36 * 37 * @return number of children requested 38 */ getLength()39 int getLength(); 40 41 /** 42 * Sets the child for this request's parent at the given offset. 43 * 44 * @param child child 45 * @param offset child offset 46 */ setChild(Object child, int offset)47 void setChild(Object child, int offset); 48 } 49