1 /**
2  * Copyright (c) 2008, 2015 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.e4.ui.model.application.ui.menu;
15 
16 /**
17  * <!-- begin-user-doc -->
18  * A representation of the model object '<em><b>Tool Item</b></em>'.
19  * <!-- end-user-doc -->
20  *
21  * <!-- begin-model-doc -->
22  * <p>
23  * This is the base type for both Direct and Handled tool items.
24  * </p>
25  * @since 1.0
26  * @noimplement This interface is not intended to be implemented by clients.
27  * <!-- end-model-doc -->
28  *
29  * <p>
30  * The following features are supported:
31  * </p>
32  * <ul>
33  *   <li>{@link org.eclipse.e4.ui.model.application.ui.menu.MToolItem#getMenu <em>Menu</em>}</li>
34  * </ul>
35  *
36  * @model abstract="true"
37  * @generated
38  */
39 public interface MToolItem extends MItem, MToolBarElement {
40 	/**
41 	 * Returns the value of the '<em><b>Menu</b></em>' containment reference.
42 	 * <!-- begin-user-doc -->
43 	 * <!-- end-user-doc -->
44 	 * <!-- begin-model-doc -->
45 	 * <p>
46 	 * When set this represents the menu that appears when the 'drop down' arrow is
47 	 * clicked on this tool item.
48 	 * </p>
49 	 * <!-- end-model-doc -->
50 	 * @return the value of the '<em>Menu</em>' containment reference.
51 	 * @see #setMenu(MMenu)
52 	 * @model containment="true"
53 	 * @generated
54 	 */
getMenu()55 	MMenu getMenu();
56 
57 	/**
58 	 * Sets the value of the '{@link org.eclipse.e4.ui.model.application.ui.menu.MToolItem#getMenu <em>Menu</em>}' containment reference.
59 	 * <!-- begin-user-doc -->
60 	 * <!-- end-user-doc -->
61 	 * @param value the new value of the '<em>Menu</em>' containment reference.
62 	 * @see #getMenu()
63 	 * @generated
64 	 */
setMenu(MMenu value)65 	void setMenu(MMenu value);
66 
67 } // MToolItem
68