public class MenuSwitch<T1>
extends <any>
doSwitch(object)
to invoke the caseXXX method for each class of the model,
starting with the actual class of the object
and proceeding up the inheritance hierarchy
until a non-null result is returned,
which is the result of the switch.
MenuPackageImpl| Modifier and Type | Field and Description |
|---|---|
protected static MenuPackageImpl |
modelPackage
The cached model package
|
| Constructor and Description |
|---|
MenuSwitch()
Creates an instance of the switch
|
| Modifier and Type | Method and Description |
|---|---|
T1 |
caseApplicationElement(MApplicationElement object)
Returns the result of interpreting the object as an instance of 'Element'
|
T1 |
caseContext(MContext object)
Returns the result of interpreting the object as an instance of 'Context'
|
T1 |
caseContribution(MContribution object)
Returns the result of interpreting the object as an instance of 'Contribution'
|
T1 |
caseDirectMenuItem(MDirectMenuItem object)
Returns the result of interpreting the object as an instance of 'Direct Menu Item'
|
T1 |
caseDirectToolItem(MDirectToolItem object)
Returns the result of interpreting the object as an instance of 'Direct Tool Item'
|
T1 |
caseDynamicMenuContribution(MDynamicMenuContribution object)
Returns the result of interpreting the object as an instance of 'Dynamic Menu Contribution'
|
<T extends MUIElement> |
caseElementContainer(MElementContainer<T> object)
Returns the result of interpreting the object as an instance of 'Element Container'
|
T1 |
caseHandledItem(MHandledItem object)
Returns the result of interpreting the object as an instance of 'Handled Item'
|
T1 |
caseHandledMenuItem(MHandledMenuItem object)
Returns the result of interpreting the object as an instance of 'Handled Menu Item'
|
T1 |
caseHandledToolItem(MHandledToolItem object)
Returns the result of interpreting the object as an instance of 'Handled Tool Item'
|
T1 |
caseItem(MItem object)
Returns the result of interpreting the object as an instance of 'Item'
|
T1 |
caseLocalizable(MLocalizable object)
Returns the result of interpreting the object as an instance of 'Localizable'
|
T1 |
caseMenu(MMenu object)
Returns the result of interpreting the object as an instance of 'Menu'
|
T1 |
caseMenuContribution(MMenuContribution object)
Returns the result of interpreting the object as an instance of 'Contribution'
|
T1 |
caseMenuContributions(MMenuContributions object)
Returns the result of interpreting the object as an instance of 'Contributions'
|
T1 |
caseMenuElement(MMenuElement object)
Returns the result of interpreting the object as an instance of 'Element'
|
T1 |
caseMenuItem(MMenuItem object)
Returns the result of interpreting the object as an instance of 'Item'
|
T1 |
caseMenuSeparator(MMenuSeparator object)
Returns the result of interpreting the object as an instance of 'Separator'
|
T1 |
casePopupMenu(MPopupMenu object)
Returns the result of interpreting the object as an instance of 'Popup Menu'
|
T1 |
caseToolBar(MToolBar object)
Returns the result of interpreting the object as an instance of 'Tool Bar'
|
T1 |
caseToolBarContribution(MToolBarContribution object)
Returns the result of interpreting the object as an instance of 'Tool Bar Contribution'
|
T1 |
caseToolBarContributions(MToolBarContributions object)
Returns the result of interpreting the object as an instance of 'Tool Bar Contributions'
|
T1 |
caseToolBarElement(MToolBarElement object)
Returns the result of interpreting the object as an instance of 'Tool Bar Element'
|
T1 |
caseToolBarSeparator(MToolBarSeparator object)
Returns the result of interpreting the object as an instance of 'Tool Bar Separator'
|
T1 |
caseToolControl(MToolControl object)
Returns the result of interpreting the object as an instance of 'Tool Control'
|
T1 |
caseToolItem(MToolItem object)
Returns the result of interpreting the object as an instance of 'Tool Item'
|
T1 |
caseTrimContribution(MTrimContribution object)
Returns the result of interpreting the object as an instance of 'Trim Contribution'
|
T1 |
caseTrimContributions(MTrimContributions object)
Returns the result of interpreting the object as an instance of 'Trim Contributions'
|
T1 |
caseTrimElement(MTrimElement object)
Returns the result of interpreting the object as an instance of 'Trim Element'
|
T1 |
caseUIElement(MUIElement object)
Returns the result of interpreting the object as an instance of 'UI Element'
|
T1 |
caseUILabel(MUILabel object)
Returns the result of interpreting the object as an instance of 'UI Label'
|
T1 |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'
|
protected T1 |
doSwitch(int classifierID,
EObject theEObject)
Calls
caseXXX for each class of the model until one returns a non null result; it yields that result |
protected boolean |
isSwitchFor(EPackage ePackage)
Checks whether this is a switch for the given package
|
protected static MenuPackageImpl modelPackage
protected boolean isSwitchFor(EPackage ePackage)
ePackage - the package in question.protected T1 doSwitch(int classifierID, EObject theEObject)
caseXXX for each class of the model until one returns a non null result; it yields that result.
caseXXX call.public T1 caseItem(MItem object)
object - the target of the switch.doSwitch(EObject)public T1 caseHandledItem(MHandledItem object)
object - the target of the switch.doSwitch(EObject)public T1 caseMenuElement(MMenuElement object)
object - the target of the switch.doSwitch(EObject)public T1 caseMenuItem(MMenuItem object)
object - the target of the switch.doSwitch(EObject)public T1 caseMenuSeparator(MMenuSeparator object)
object - the target of the switch.doSwitch(EObject)public T1 caseMenu(MMenu object)
object - the target of the switch.doSwitch(EObject)public T1 caseMenuContribution(MMenuContribution object)
object - the target of the switch.doSwitch(EObject)public T1 casePopupMenu(MPopupMenu object)
object - the target of the switch.doSwitch(EObject)public T1 caseDirectMenuItem(MDirectMenuItem object)
object - the target of the switch.doSwitch(EObject)public T1 caseHandledMenuItem(MHandledMenuItem object)
object - the target of the switch.doSwitch(EObject)public T1 caseToolItem(MToolItem object)
object - the target of the switch.doSwitch(EObject)public T1 caseToolBar(MToolBar object)
object - the target of the switch.doSwitch(EObject)public T1 caseToolBarElement(MToolBarElement object)
object - the target of the switch.doSwitch(EObject)public T1 caseToolControl(MToolControl object)
object - the target of the switch.doSwitch(EObject)public T1 caseHandledToolItem(MHandledToolItem object)
object - the target of the switch.doSwitch(EObject)public T1 caseDirectToolItem(MDirectToolItem object)
object - the target of the switch.doSwitch(EObject)public T1 caseToolBarSeparator(MToolBarSeparator object)
object - the target of the switch.doSwitch(EObject)public T1 caseMenuContributions(MMenuContributions object)
object - the target of the switch.doSwitch(EObject)public T1 caseToolBarContribution(MToolBarContribution object)
object - the target of the switch.doSwitch(EObject)public T1 caseToolBarContributions(MToolBarContributions object)
object - the target of the switch.doSwitch(EObject)public T1 caseTrimContribution(MTrimContribution object)
object - the target of the switch.doSwitch(EObject)public T1 caseTrimContributions(MTrimContributions object)
object - the target of the switch.doSwitch(EObject)public T1 caseDynamicMenuContribution(MDynamicMenuContribution object)
object - the target of the switch.doSwitch(EObject)public T1 caseApplicationElement(MApplicationElement object)
object - the target of the switch.doSwitch(EObject)public T1 caseUIElement(MUIElement object)
object - the target of the switch.doSwitch(EObject)public T1 caseLocalizable(MLocalizable object)
object - the target of the switch.doSwitch(EObject)public T1 caseUILabel(MUILabel object)
object - the target of the switch.doSwitch(EObject)public <T extends MUIElement> T1 caseElementContainer(MElementContainer<T> object)
object - the target of the switch.doSwitch(EObject)public T1 caseContext(MContext object)
object - the target of the switch.doSwitch(EObject)public T1 caseContribution(MContribution object)
object - the target of the switch.doSwitch(EObject)public T1 caseTrimElement(MTrimElement object)
object - the target of the switch.doSwitch(EObject)public T1 defaultCase(EObject object)
object - the target of the switch.#doSwitch(org.eclipse.emf.ecore.EObject)