blob: d6ece793e3d5a6cac758115e91770be3024b6b3f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
/**
* Copyright (c) 2008, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*/
package org.eclipse.e4.ui.model.application.ui.menu;
import java.util.List;
import org.eclipse.core.commands.ParameterizedCommand;
import org.eclipse.e4.ui.model.application.commands.MCommand;
import org.eclipse.e4.ui.model.application.commands.MParameter;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Handled Item</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* <p>
* This is the base class for menu and tool items associated with Commands.
* </p>
* @since 1.0
* @noimplement This interface is not intended to be implemented by clients.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.e4.ui.model.application.ui.menu.MHandledItem#getCommand <em>Command</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.menu.MHandledItem#getWbCommand <em>Wb Command</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.menu.MHandledItem#getParameters <em>Parameters</em>}</li>
* </ul>
* </p>
*
* @model abstract="true"
* @generated
*/
public interface MHandledItem extends MItem {
/**
* Returns the value of the '<em><b>Command</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* <p>
* A reference to the Command associated with this item.
* </p>
* <!-- end-model-doc -->
* @return the value of the '<em>Command</em>' reference.
* @see #setCommand(MCommand)
* @model
* @generated
*/
MCommand getCommand();
/**
* Sets the value of the '{@link org.eclipse.e4.ui.model.application.ui.menu.MHandledItem#getCommand <em>Command</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Command</em>' reference.
* @see #getCommand()
* @generated
*/
void setCommand(MCommand value);
/**
* Returns the value of the '<em><b>Wb Command</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* <p>
* This is used for low level implementation and is not intended to be used by clients
* </p>
* @noreference
* <!-- end-model-doc -->
* @return the value of the '<em>Wb Command</em>' attribute.
* @see #setWbCommand(ParameterizedCommand)
* @model dataType="org.eclipse.e4.ui.model.application.commands.ParameterizedCommand" transient="true"
* @generated
*/
ParameterizedCommand getWbCommand();
/**
* Sets the value of the '{@link org.eclipse.e4.ui.model.application.ui.menu.MHandledItem#getWbCommand <em>Wb Command</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Wb Command</em>' attribute.
* @see #getWbCommand()
* @generated
*/
void setWbCommand(ParameterizedCommand value);
/**
* Returns the value of the '<em><b>Parameters</b></em>' containment reference list.
* The list contents are of type {@link org.eclipse.e4.ui.model.application.commands.MParameter}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* <p>
* Defines the specific parameters to use when executing the command through this item.
* </p>
* <!-- end-model-doc -->
* @return the value of the '<em>Parameters</em>' containment reference list.
* @model containment="true"
* @generated
*/
List<MParameter> getParameters();
} // MHandledItem
|