1 /******************************************************************************* 2 * Copyright (c) 2005, 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 12 package org.eclipse.jface.menus; 13 14 import org.eclipse.core.commands.INamedHandleStateIds; 15 import org.eclipse.jface.commands.RadioState; 16 import org.eclipse.jface.commands.ToggleState; 17 18 /** 19 * <p> 20 * State identifiers that should be understood by items and renderers of items. 21 * The state is associated with the command, and then interpreted by the menu 22 * renderer. 23 * </p> 24 * <p> 25 * Clients may implement or extend this class. 26 * </p> 27 * 28 * @since 3.2 29 */ 30 public interface IMenuStateIds extends INamedHandleStateIds { 31 32 /** 33 * The state id used for indicating the widget style of a command presented 34 * in the menus and tool bars. This state must be an instance of 35 * {@link ToggleState} or {@link RadioState}. 36 */ 37 public static String STYLE = "STYLE"; //$NON-NLS-1$ 38 } 39