|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecore.util.Switch<T>
org.eclipse.gmf.tooldef.util.GMFToolSwitch<T>
public class GMFToolSwitch<T>
The Switch for the model's inheritance hierarchy.
It supports the call 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.
GMFToolPackage
Field Summary | |
---|---|
protected static GMFToolPackage |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
GMFToolSwitch()
Creates an instance of the switch. |
Method Summary | |
---|---|
T |
caseAbstractTool(AbstractTool object)
Returns the result of interpreting the object as an instance of 'Abstract Tool'. |
T |
caseBundleImage(BundleImage object)
Returns the result of interpreting the object as an instance of 'Bundle Image'. |
T |
caseContextMenu(ContextMenu object)
Returns the result of interpreting the object as an instance of 'Context Menu'. |
T |
caseContributionItem(ContributionItem object)
Returns the result of interpreting the object as an instance of 'Contribution Item'. |
T |
caseCreationTool(CreationTool object)
Returns the result of interpreting the object as an instance of 'Creation Tool'. |
T |
caseDefaultImage(DefaultImage object)
Returns the result of interpreting the object as an instance of 'Default Image'. |
T |
caseGenericStyleSelector(GenericStyleSelector object)
Returns the result of interpreting the object as an instance of 'Generic Style Selector'. |
T |
caseGenericTool(GenericTool object)
Returns the result of interpreting the object as an instance of 'Generic Tool'. |
T |
caseImage(Image object)
Returns the result of interpreting the object as an instance of 'Image'. |
T |
caseItemBase(ItemBase object)
Returns the result of interpreting the object as an instance of 'Item Base'. |
T |
caseItemRef(ItemRef object)
Returns the result of interpreting the object as an instance of 'Item Ref'. |
T |
caseMainMenu(MainMenu object)
Returns the result of interpreting the object as an instance of 'Main Menu'. |
T |
caseMenu(Menu object)
Returns the result of interpreting the object as an instance of 'Menu'. |
T |
caseMenuAction(MenuAction object)
Returns the result of interpreting the object as an instance of 'Menu Action'. |
T |
casePalette(Palette object)
Returns the result of interpreting the object as an instance of 'Palette'. |
T |
casePaletteSeparator(PaletteSeparator object)
Returns the result of interpreting the object as an instance of 'Palette Separator'. |
T |
casePopupMenu(PopupMenu object)
Returns the result of interpreting the object as an instance of 'Popup Menu'. |
T |
casePredefinedItem(PredefinedItem object)
Returns the result of interpreting the object as an instance of 'Predefined Item'. |
T |
casePredefinedMenu(PredefinedMenu object)
Returns the result of interpreting the object as an instance of 'Predefined Menu'. |
T |
caseSeparator(Separator object)
Returns the result of interpreting the object as an instance of 'Separator'. |
T |
caseStandardTool(StandardTool object)
Returns the result of interpreting the object as an instance of 'Standard Tool'. |
T |
caseStyleSelector(StyleSelector object)
Returns the result of interpreting the object as an instance of 'Style Selector'. |
T |
caseToolbar(Toolbar object)
Returns the result of interpreting the object as an instance of 'Toolbar'. |
T |
caseToolContainer(ToolContainer object)
Returns the result of interpreting the object as an instance of 'Tool Container'. |
T |
caseToolGroup(ToolGroup object)
Returns the result of interpreting the object as an instance of 'Tool Group'. |
T |
caseToolRegistry(ToolRegistry object)
Returns the result of interpreting the object as an instance of 'Tool Registry'. |
T |
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of 'EObject'. |
protected T |
doSwitch(int classifierID,
org.eclipse.emf.ecore.EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result. |
protected boolean |
isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
Checks whether this is a switch for the given package. |
Methods inherited from class org.eclipse.emf.ecore.util.Switch |
---|
doSwitch, doSwitch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static GMFToolPackage modelPackage
Constructor Detail |
---|
public GMFToolSwitch()
Method Detail |
---|
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
isSwitchFor
in class org.eclipse.emf.ecore.util.Switch<T>
protected T doSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
doSwitch
in class org.eclipse.emf.ecore.util.Switch<T>
caseXXX
call.public T caseToolRegistry(ToolRegistry object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAbstractTool(AbstractTool object)
object
- the target of the switch.
doSwitch(EObject)
public T caseToolContainer(ToolContainer object)
object
- the target of the switch.
doSwitch(EObject)
public T casePaletteSeparator(PaletteSeparator object)
object
- the target of the switch.
doSwitch(EObject)
public T caseToolGroup(ToolGroup object)
object
- the target of the switch.
doSwitch(EObject)
public T casePalette(Palette object)
object
- the target of the switch.
doSwitch(EObject)
public T caseStandardTool(StandardTool object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCreationTool(CreationTool object)
object
- the target of the switch.
doSwitch(EObject)
public T caseGenericTool(GenericTool object)
object
- the target of the switch.
doSwitch(EObject)
public T caseItemBase(ItemBase object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMenu(Menu object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSeparator(Separator object)
object
- the target of the switch.
doSwitch(EObject)
public T casePredefinedItem(PredefinedItem object)
object
- the target of the switch.
doSwitch(EObject)
public T casePredefinedMenu(PredefinedMenu object)
object
- the target of the switch.
doSwitch(EObject)
public T caseContributionItem(ContributionItem object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMenuAction(MenuAction object)
object
- the target of the switch.
doSwitch(EObject)
public T caseItemRef(ItemRef object)
object
- the target of the switch.
doSwitch(EObject)
public T caseContextMenu(ContextMenu object)
object
- the target of the switch.
doSwitch(EObject)
public T casePopupMenu(PopupMenu object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMainMenu(MainMenu object)
object
- the target of the switch.
doSwitch(EObject)
public T caseToolbar(Toolbar object)
object
- the target of the switch.
doSwitch(EObject)
public T caseImage(Image object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDefaultImage(DefaultImage object)
object
- the target of the switch.
doSwitch(EObject)
public T caseBundleImage(BundleImage object)
object
- the target of the switch.
doSwitch(EObject)
public T caseStyleSelector(StyleSelector object)
object
- the target of the switch.
doSwitch(EObject)
public T caseGenericStyleSelector(GenericStyleSelector object)
object
- the target of the switch.
doSwitch(EObject)
public T defaultCase(org.eclipse.emf.ecore.EObject object)
defaultCase
in class org.eclipse.emf.ecore.util.Switch<T>
object
- the target of the switch.
Switch.doSwitch(org.eclipse.emf.ecore.EObject)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |