/******************************************************************************* * Copyright (c) 2008, 2011 Obeo. * 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: * Obeo - initial API and implementation *******************************************************************************/ package org.eclipse.emf.eef.modelingBot.EEFActions.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.emf.eef.extended.editor.ReferenceableObject; import org.eclipse.emf.eef.modelingBot.Action; import org.eclipse.emf.eef.modelingBot.DocumentedElement; import org.eclipse.emf.eef.modelingBot.EEFActions.*; import org.eclipse.emf.eef.modelingBot.Processing; /** * <!-- 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.emf.eef.modelingBot.EEFActions.EEFActionsPackage * @generated */ public class EEFActionsAdapterFactory extends AdapterFactoryImpl { /** * The cached model package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected static EEFActionsPackage modelPackage; /** * Creates an instance of the adapter factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EEFActionsAdapterFactory() { if (modelPackage == null) { modelPackage = EEFActionsPackage.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 that delegates to the <code>createXXX</code> methods. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected EEFActionsSwitch<Adapter> modelSwitch = new EEFActionsSwitch<Adapter>() { @Override public Adapter caseEEFAction(EEFAction object) { return createEEFActionAdapter(); } @Override public Adapter caseEditAction(EditAction object) { return createEditActionAdapter(); } @Override public Adapter caseAdd(Add object) { return createAddAdapter(); } @Override public Adapter caseRemove(Remove object) { return createRemoveAdapter(); } @Override public Adapter caseSetAttribute(SetAttribute object) { return createSetAttributeAdapter(); } @Override public Adapter caseUnsetAttribute(UnsetAttribute object) { return createUnsetAttributeAdapter(); } @Override public Adapter caseUnset(Unset object) { return createUnsetAdapter(); } @Override public Adapter caseCancel(Cancel object) { return createCancelAdapter(); } @Override public Adapter caseCheck(Check object) { return createCheckAdapter(); } @Override public Adapter caseOpenEEFEditor(OpenEEFEditor object) { return createOpenEEFEditorAdapter(); } @Override public Adapter caseSetReference(SetReference object) { return createSetReferenceAdapter(); } @Override public Adapter caseUnsetReference(UnsetReference object) { return createUnsetReferenceAdapter(); } @Override public Adapter caseMoveUp(MoveUp object) { return createMoveUpAdapter(); } @Override public Adapter caseMoveDown(MoveDown object) { return createMoveDownAdapter(); } @Override public Adapter caseDocumentedElement(DocumentedElement object) { return createDocumentedElementAdapter(); } @Override public Adapter caseProcessing(Processing object) { return createProcessingAdapter(); } @Override public Adapter caseAction(Action object) { return createActionAdapter(); } @Override public Adapter caseReferenceableObject(ReferenceableObject object) { return createReferenceableObjectAdapter(); } @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.emf.eef.modelingBot.EEFActions.EEFAction <em>EEF 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.emf.eef.modelingBot.EEFActions.EEFAction * @generated */ public Adapter createEEFActionAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EEFActions.EditAction <em>Edit 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.emf.eef.modelingBot.EEFActions.EditAction * @generated */ public Adapter createEditActionAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EEFActions.Add <em>Add</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.emf.eef.modelingBot.EEFActions.Add * @generated */ public Adapter createAddAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EEFActions.Remove <em>Remove</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.emf.eef.modelingBot.EEFActions.Remove * @generated */ public Adapter createRemoveAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EEFActions.SetAttribute <em>Set Attribute</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.emf.eef.modelingBot.EEFActions.SetAttribute * @generated */ public Adapter createSetAttributeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EEFActions.UnsetAttribute <em>Unset Attribute</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.emf.eef.modelingBot.EEFActions.UnsetAttribute * @generated */ public Adapter createUnsetAttributeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EEFActions.Unset <em>Unset</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.emf.eef.modelingBot.EEFActions.Unset * @generated */ public Adapter createUnsetAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EEFActions.Cancel <em>Cancel</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.emf.eef.modelingBot.EEFActions.Cancel * @generated */ public Adapter createCancelAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EEFActions.Check <em>Check</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.emf.eef.modelingBot.EEFActions.Check * @generated */ public Adapter createCheckAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EEFActions.OpenEEFEditor <em>Open EEF Editor</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.emf.eef.modelingBot.EEFActions.OpenEEFEditor * @generated */ public Adapter createOpenEEFEditorAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EEFActions.SetReference <em>Set Reference</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.emf.eef.modelingBot.EEFActions.SetReference * @generated */ public Adapter createSetReferenceAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EEFActions.UnsetReference <em>Unset Reference</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.emf.eef.modelingBot.EEFActions.UnsetReference * @generated */ public Adapter createUnsetReferenceAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EEFActions.MoveUp <em>Move Up</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.emf.eef.modelingBot.EEFActions.MoveUp * @generated */ public Adapter createMoveUpAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EEFActions.MoveDown <em>Move Down</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.emf.eef.modelingBot.EEFActions.MoveDown * @generated */ public Adapter createMoveDownAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.DocumentedElement <em>Documented Element</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.emf.eef.modelingBot.DocumentedElement * @generated */ public Adapter createDocumentedElementAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.Processing <em>Processing</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.emf.eef.modelingBot.Processing * @generated */ public Adapter createProcessingAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.Action <em>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.emf.eef.modelingBot.Action * @generated */ public Adapter createActionAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.extended.editor.ReferenceableObject <em>Referenceable Object</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.emf.eef.extended.editor.ReferenceableObject * @generated */ public Adapter createReferenceableObjectAdapter() { 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; } } //EEFActionsAdapterFactory