5
|
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 * Port to the D programming language:
|
|
11 * Frank Benoit <benoit@tionex.de>
|
|
12 *******************************************************************************/
|
|
13
|
|
14 module dwtx.jface.menus.IMenuStateIds;
|
|
15
|
|
16 import dwtx.core.commands.INamedHandleStateIds;
|
|
17 // import dwtx.jface.commands.RadioState;
|
|
18 // import dwtx.jface.commands.ToggleState;
|
|
19
|
|
20 import dwt.dwthelper.utils;
|
|
21
|
|
22 /**
|
|
23 * <p>
|
|
24 * State identifiers that should be understood by items and renderers of items.
|
|
25 * The state is associated with the command, and then interpreted by the menu
|
|
26 * renderer.
|
|
27 * </p>
|
|
28 * <p>
|
|
29 * Clients may implement or extend this class.
|
|
30 * </p>
|
|
31 *
|
|
32 * @since 3.2
|
|
33 */
|
|
34 public interface IMenuStateIds : INamedHandleStateIds {
|
|
35
|
|
36 /**
|
|
37 * The state id used for indicating the widget style of a command presented
|
|
38 * in the menus and tool bars. This state must be an instance of
|
|
39 * {@link ToggleState} or {@link RadioState}.
|
|
40 */
|
|
41 public static String STYLE = "STYLE"; //$NON-NLS-1$
|
|
42 }
|