| /** |
| * <copyright> |
| * </copyright> |
| * |
| * $Id$ |
| */ |
| package org.eclipse.gmf.tooldef.util; |
| |
| import org.eclipse.emf.common.notify.Adapter; |
| import org.eclipse.emf.common.notify.Notifier; |
| |
| import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; |
| |
| import org.eclipse.emf.ecore.EObject; |
| |
| import org.eclipse.gmf.tooldef.*; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * The <b>Adapter Factory</b> for the model. |
| * It provides an adapter <code>createXXX</code> method for each class of the model. |
| * <!-- end-user-doc --> |
| * @see org.eclipse.gmf.tooldef.GMFToolPackage |
| * @generated |
| */ |
| public class GMFToolAdapterFactory extends AdapterFactoryImpl { |
| /** |
| * The cached model package. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected static GMFToolPackage modelPackage; |
| |
| /** |
| * Creates an instance of the adapter factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public GMFToolAdapterFactory() { |
| if (modelPackage == null) { |
| modelPackage = GMFToolPackage.eINSTANCE; |
| } |
| } |
| |
| /** |
| * Returns whether this factory is applicable for the type of the object. |
| * <!-- begin-user-doc --> |
| * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. |
| * <!-- end-user-doc --> |
| * @return whether this factory is applicable for the type of the object. |
| * @generated |
| */ |
| @Override |
| public boolean isFactoryForType(Object object) { |
| if (object == modelPackage) { |
| return true; |
| } |
| if (object instanceof EObject) { |
| return ((EObject) object).eClass().getEPackage() == modelPackage; |
| } |
| return false; |
| } |
| |
| /** |
| * The switch the delegates to the <code>createXXX</code> methods. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected GMFToolSwitch<Adapter> modelSwitch = new GMFToolSwitch<Adapter>() { |
| @Override |
| public Adapter caseToolRegistry(ToolRegistry object) { |
| return createToolRegistryAdapter(); |
| } |
| |
| @Override |
| public Adapter caseAbstractTool(AbstractTool object) { |
| return createAbstractToolAdapter(); |
| } |
| |
| @Override |
| public Adapter caseToolContainer(ToolContainer object) { |
| return createToolContainerAdapter(); |
| } |
| |
| @Override |
| public Adapter casePaletteSeparator(PaletteSeparator object) { |
| return createPaletteSeparatorAdapter(); |
| } |
| |
| @Override |
| public Adapter caseToolGroup(ToolGroup object) { |
| return createToolGroupAdapter(); |
| } |
| |
| @Override |
| public Adapter casePalette(Palette object) { |
| return createPaletteAdapter(); |
| } |
| |
| @Override |
| public Adapter caseStandardTool(StandardTool object) { |
| return createStandardToolAdapter(); |
| } |
| |
| @Override |
| public Adapter caseCreationTool(CreationTool object) { |
| return createCreationToolAdapter(); |
| } |
| |
| @Override |
| public Adapter caseGenericTool(GenericTool object) { |
| return createGenericToolAdapter(); |
| } |
| |
| @Override |
| public Adapter caseItemBase(ItemBase object) { |
| return createItemBaseAdapter(); |
| } |
| |
| @Override |
| public Adapter caseMenu(Menu object) { |
| return createMenuAdapter(); |
| } |
| |
| @Override |
| public Adapter caseSeparator(Separator object) { |
| return createSeparatorAdapter(); |
| } |
| |
| @Override |
| public Adapter casePredefinedItem(PredefinedItem object) { |
| return createPredefinedItemAdapter(); |
| } |
| |
| @Override |
| public Adapter casePredefinedMenu(PredefinedMenu object) { |
| return createPredefinedMenuAdapter(); |
| } |
| |
| @Override |
| public Adapter caseContributionItem(ContributionItem object) { |
| return createContributionItemAdapter(); |
| } |
| |
| @Override |
| public Adapter caseMenuAction(MenuAction object) { |
| return createMenuActionAdapter(); |
| } |
| |
| @Override |
| public Adapter caseItemRef(ItemRef object) { |
| return createItemRefAdapter(); |
| } |
| |
| @Override |
| public Adapter caseContextMenu(ContextMenu object) { |
| return createContextMenuAdapter(); |
| } |
| |
| @Override |
| public Adapter casePopupMenu(PopupMenu object) { |
| return createPopupMenuAdapter(); |
| } |
| |
| @Override |
| public Adapter caseMainMenu(MainMenu object) { |
| return createMainMenuAdapter(); |
| } |
| |
| @Override |
| public Adapter caseToolbar(Toolbar object) { |
| return createToolbarAdapter(); |
| } |
| |
| @Override |
| public Adapter caseImage(Image object) { |
| return createImageAdapter(); |
| } |
| |
| @Override |
| public Adapter caseDefaultImage(DefaultImage object) { |
| return createDefaultImageAdapter(); |
| } |
| |
| @Override |
| public Adapter caseBundleImage(BundleImage object) { |
| return createBundleImageAdapter(); |
| } |
| |
| @Override |
| public Adapter caseStyleSelector(StyleSelector object) { |
| return createStyleSelectorAdapter(); |
| } |
| |
| @Override |
| public Adapter caseGenericStyleSelector(GenericStyleSelector object) { |
| return createGenericStyleSelectorAdapter(); |
| } |
| |
| @Override |
| public Adapter defaultCase(EObject object) { |
| return createEObjectAdapter(); |
| } |
| }; |
| |
| /** |
| * Creates an adapter for the <code>target</code>. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param target the object to adapt. |
| * @return the adapter for the <code>target</code>. |
| * @generated |
| */ |
| @Override |
| public Adapter createAdapter(Notifier target) { |
| return modelSwitch.doSwitch((EObject) target); |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.ToolRegistry <em>Tool Registry</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.ToolRegistry |
| * @generated |
| */ |
| public Adapter createToolRegistryAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.AbstractTool <em>Abstract Tool</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.AbstractTool |
| * @generated |
| */ |
| public Adapter createAbstractToolAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.ToolContainer <em>Tool Container</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.ToolContainer |
| * @generated |
| */ |
| public Adapter createToolContainerAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.PaletteSeparator <em>Palette Separator</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.PaletteSeparator |
| * @generated |
| */ |
| public Adapter createPaletteSeparatorAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.ToolGroup <em>Tool Group</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.ToolGroup |
| * @generated |
| */ |
| public Adapter createToolGroupAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.Palette <em>Palette</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.Palette |
| * @generated |
| */ |
| public Adapter createPaletteAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.StandardTool <em>Standard Tool</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.StandardTool |
| * @generated |
| */ |
| public Adapter createStandardToolAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.CreationTool <em>Creation Tool</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.CreationTool |
| * @generated |
| */ |
| public Adapter createCreationToolAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.GenericTool <em>Generic Tool</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.GenericTool |
| * @generated |
| */ |
| public Adapter createGenericToolAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.ItemBase <em>Item Base</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.ItemBase |
| * @generated |
| */ |
| public Adapter createItemBaseAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.Menu <em>Menu</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.Menu |
| * @generated |
| */ |
| public Adapter createMenuAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.Separator <em>Separator</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.Separator |
| * @generated |
| */ |
| public Adapter createSeparatorAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.PredefinedItem <em>Predefined Item</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.PredefinedItem |
| * @generated |
| */ |
| public Adapter createPredefinedItemAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.PredefinedMenu <em>Predefined Menu</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.PredefinedMenu |
| * @generated |
| */ |
| public Adapter createPredefinedMenuAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.ContributionItem <em>Contribution Item</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.ContributionItem |
| * @generated |
| */ |
| public Adapter createContributionItemAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.MenuAction <em>Menu Action</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.MenuAction |
| * @generated |
| */ |
| public Adapter createMenuActionAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.ItemRef <em>Item Ref</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.ItemRef |
| * @generated |
| */ |
| public Adapter createItemRefAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.ContextMenu <em>Context Menu</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.ContextMenu |
| * @generated |
| */ |
| public Adapter createContextMenuAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.PopupMenu <em>Popup Menu</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.PopupMenu |
| * @generated |
| */ |
| public Adapter createPopupMenuAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.MainMenu <em>Main Menu</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.MainMenu |
| * @generated |
| */ |
| public Adapter createMainMenuAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.Toolbar <em>Toolbar</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.Toolbar |
| * @generated |
| */ |
| public Adapter createToolbarAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.Image <em>Image</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.Image |
| * @generated |
| */ |
| public Adapter createImageAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.DefaultImage <em>Default Image</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.DefaultImage |
| * @generated |
| */ |
| public Adapter createDefaultImageAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.BundleImage <em>Bundle Image</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.BundleImage |
| * @generated |
| */ |
| public Adapter createBundleImageAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.StyleSelector <em>Style Selector</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.StyleSelector |
| * @generated |
| */ |
| public Adapter createStyleSelectorAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.gmf.tooldef.GenericStyleSelector <em>Generic Style Selector</em>}'. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null so that we can easily ignore cases; |
| * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @see org.eclipse.gmf.tooldef.GenericStyleSelector |
| * @generated |
| */ |
| public Adapter createGenericStyleSelectorAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for the default case. |
| * <!-- begin-user-doc --> |
| * This default implementation returns null. |
| * <!-- end-user-doc --> |
| * @return the new adapter. |
| * @generated |
| */ |
| public Adapter createEObjectAdapter() { |
| return null; |
| } |
| |
| } //GMFToolAdapterFactory |