|
Generation Framework | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gmf.tooldef.util.GMFToolSwitch
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 | |
java.lang.Object |
caseAbstractTool(AbstractTool object)
Returns the result of interpretting the object as an instance of 'Abstract Tool' |
java.lang.Object |
caseBundleImage(BundleImage object)
Returns the result of interpretting the object as an instance of 'Bundle Image' |
java.lang.Object |
caseContextMenu(ContextMenu object)
Returns the result of interpretting the object as an instance of 'Context Menu' |
java.lang.Object |
caseContributionItem(ContributionItem object)
Returns the result of interpretting the object as an instance of 'Contribution Item' |
java.lang.Object |
caseCreationTool(CreationTool object)
Returns the result of interpretting the object as an instance of 'Creation Tool' |
java.lang.Object |
caseDefaultImage(DefaultImage object)
Returns the result of interpretting the object as an instance of 'Default Image' |
java.lang.Object |
caseGenericStyleSelector(GenericStyleSelector object)
Returns the result of interpretting the object as an instance of 'Generic Style Selector' |
java.lang.Object |
caseGenericTool(GenericTool object)
Returns the result of interpretting the object as an instance of 'Generic Tool' |
java.lang.Object |
caseImage(Image object)
Returns the result of interpretting the object as an instance of 'Image' |
java.lang.Object |
caseItemBase(ItemBase object)
Returns the result of interpretting the object as an instance of 'Item Base' |
java.lang.Object |
caseItemRef(ItemRef object)
Returns the result of interpretting the object as an instance of 'Item Ref' |
java.lang.Object |
caseMainMenu(MainMenu object)
Returns the result of interpretting the object as an instance of 'Main Menu' |
java.lang.Object |
caseMenu(Menu object)
Returns the result of interpretting the object as an instance of 'Menu' |
java.lang.Object |
caseMenuAction(MenuAction object)
Returns the result of interpretting the object as an instance of 'Menu Action' |
java.lang.Object |
casePalette(Palette object)
Returns the result of interpretting the object as an instance of 'Palette' |
java.lang.Object |
casePaletteSeparator(PaletteSeparator object)
Returns the result of interpretting the object as an instance of 'Palette Separator' |
java.lang.Object |
casePopupMenu(PopupMenu object)
Returns the result of interpretting the object as an instance of 'Popup Menu' |
java.lang.Object |
casePredefinedItem(PredefinedItem object)
Returns the result of interpretting the object as an instance of 'Predefined Item' |
java.lang.Object |
casePredefinedMenu(PredefinedMenu object)
Returns the result of interpretting the object as an instance of 'Predefined Menu' |
java.lang.Object |
caseSeparator(Separator object)
Returns the result of interpretting the object as an instance of 'Separator' |
java.lang.Object |
caseStandardTool(StandardTool object)
Returns the result of interpretting the object as an instance of 'Standard Tool' |
java.lang.Object |
caseStyleSelector(StyleSelector object)
Returns the result of interpretting the object as an instance of 'Style Selector' |
java.lang.Object |
caseToolbar(Toolbar object)
Returns the result of interpretting the object as an instance of 'Toolbar' |
java.lang.Object |
caseToolContainer(ToolContainer object)
Returns the result of interpretting the object as an instance of 'Tool Container' |
java.lang.Object |
caseToolGroup(ToolGroup object)
Returns the result of interpretting the object as an instance of 'Tool Group' |
java.lang.Object |
caseToolRegistry(ToolRegistry object)
Returns the result of interpretting the object as an instance of 'Tool Registry' |
java.lang.Object |
defaultCase(EObject object)
Returns the result of interpretting the object as an instance of 'EObject' |
protected java.lang.Object |
doSwitch(EClass theEClass,
EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result |
java.lang.Object |
doSwitch(EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result |
protected java.lang.Object |
doSwitch(int classifierID,
EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result |
| 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 |
public java.lang.Object doSwitch(EObject theEObject)
caseXXX for each class of the model until one returns a non null result; it yields that result.
caseXXX call.
protected java.lang.Object doSwitch(EClass theEClass,
EObject theEObject)
caseXXX for each class of the model until one returns a non null result; it yields that result.
caseXXX call.
protected java.lang.Object 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 java.lang.Object caseToolRegistry(ToolRegistry object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseAbstractTool(AbstractTool object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseToolContainer(ToolContainer object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object casePaletteSeparator(PaletteSeparator object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseToolGroup(ToolGroup object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object casePalette(Palette object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseStandardTool(StandardTool object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseCreationTool(CreationTool object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseGenericTool(GenericTool object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseItemBase(ItemBase object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseMenu(Menu object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseSeparator(Separator object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object casePredefinedItem(PredefinedItem object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object casePredefinedMenu(PredefinedMenu object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseContributionItem(ContributionItem object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseMenuAction(MenuAction object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseItemRef(ItemRef object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseContextMenu(ContextMenu object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object casePopupMenu(PopupMenu object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseMainMenu(MainMenu object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseToolbar(Toolbar object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseImage(Image object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseDefaultImage(DefaultImage object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseBundleImage(BundleImage object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseStyleSelector(StyleSelector object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseGenericStyleSelector(GenericStyleSelector object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object defaultCase(EObject object)
object - the target of the switch.
GMFToolSwitch.doSwitch(org.eclipse.emf.ecore.EObject)
|
Generation Framework | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.