1 /***************************************************************** 2 * Copyright (c) 2009, 2011 Texas Instruments 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 * Patrick Chuong (Texas Instruments) - Initial API and implementation (Bug 286310) 13 *****************************************************************/ 14 package org.eclipse.debug.internal.ui.viewers.model.provisional; 15 16 /** 17 * Label update which allows the label provider to set the checked element state. 18 * The label provider can use the presentation context to determine whether the 19 * viewer is showing item check boxes. 20 * 21 * @since 3.6 22 */ 23 public interface ICheckUpdate extends ILabelUpdate { 24 25 /** 26 * Property of the presentation context which indicates that the viewer 27 * has the check box style. 28 */ 29 String PROP_CHECK = "org.eclipse.debug.ui.check"; //$NON-NLS-1$ 30 31 /** 32 * Sets the check state of the tree node. 33 * 34 * @param checked Whether element should be checked. 35 * @param grayed Whether element should be grayed out. 36 */ setChecked(boolean checked, boolean grayed)37 void setChecked(boolean checked, boolean grayed); 38 39 } 40