1 /******************************************************************************* 2 * Copyright (c) 2006 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 * An objects that visits model deltas. 19 * 20 * @since 3.3 21 */ 22 public interface IModelDeltaVisitor { 23 24 /** 25 * Visits the given model delta. 26 * 27 * @param delta the delta to visit 28 * @param depth depth in the delta where 0 == root node 29 * @return <code>true</code> if the model delta's children should 30 * be visited; <code>false</code> if they should be skipped. 31 */ visit(IModelDelta delta, int depth)32 boolean visit(IModelDelta delta, int depth); 33 34 } 35