/******************************************************************************* * 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.EclipseActions.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.EclipseActions.*; 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.EclipseActions.EclipseActionsPackage * @generated */ public class EclipseActionsAdapterFactory extends AdapterFactoryImpl { /** * The cached model package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected static EclipseActionsPackage modelPackage; /** * Creates an instance of the adapter factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EclipseActionsAdapterFactory() { if (modelPackage == null) { modelPackage = EclipseActionsPackage.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 EclipseActionsSwitch<Adapter> modelSwitch = new EclipseActionsSwitch<Adapter>() { @Override public Adapter caseEclipseAction(EclipseAction object) { return createEclipseActionAdapter(); } @Override public Adapter caseCreateProject(CreateProject object) { return createCreateProjectAdapter(); } @Override public Adapter caseOpenPerspective(OpenPerspective object) { return createOpenPerspectiveAdapter(); } @Override public Adapter caseCloseProject(CloseProject object) { return createCloseProjectAdapter(); } @Override public Adapter caseSave(Save object) { return createSaveAdapter(); } @Override public Adapter caseUndo(Undo object) { return createUndoAdapter(); } @Override public Adapter caseRedo(Redo object) { return createRedoAdapter(); } @Override public Adapter caseOpenProject(OpenProject object) { return createOpenProjectAdapter(); } @Override public Adapter caseRemoveProject(RemoveProject object) { return createRemoveProjectAdapter(); } @Override public Adapter caseCloseEditor(CloseEditor object) { return createCloseEditorAdapter(); } @Override public Adapter caseOpenEditor(OpenEditor object) { return createOpenEditorAdapter(); } @Override public Adapter caseCreateModel(CreateModel object) { return createCreateModelAdapter(); } @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.EclipseActions.EclipseAction <em>Eclipse 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.EclipseActions.EclipseAction * @generated */ public Adapter createEclipseActionAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EclipseActions.CreateProject <em>Create Project</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.EclipseActions.CreateProject * @generated */ public Adapter createCreateProjectAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EclipseActions.OpenPerspective <em>Open Perspective</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.EclipseActions.OpenPerspective * @generated */ public Adapter createOpenPerspectiveAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EclipseActions.CloseProject <em>Close Project</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.EclipseActions.CloseProject * @generated */ public Adapter createCloseProjectAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EclipseActions.Save <em>Save</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.EclipseActions.Save * @generated */ public Adapter createSaveAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EclipseActions.Undo <em>Undo</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.EclipseActions.Undo * @generated */ public Adapter createUndoAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EclipseActions.Redo <em>Redo</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.EclipseActions.Redo * @generated */ public Adapter createRedoAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EclipseActions.OpenProject <em>Open Project</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.EclipseActions.OpenProject * @generated */ public Adapter createOpenProjectAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EclipseActions.RemoveProject <em>Remove Project</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.EclipseActions.RemoveProject * @generated */ public Adapter createRemoveProjectAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EclipseActions.CloseEditor <em>Close 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.EclipseActions.CloseEditor * @generated */ public Adapter createCloseEditorAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EclipseActions.OpenEditor <em>Open 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.EclipseActions.OpenEditor * @generated */ public Adapter createOpenEditorAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.eef.modelingBot.EclipseActions.CreateModel <em>Create Model</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.EclipseActions.CreateModel * @generated */ public Adapter createCreateModelAdapter() { 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; } } //EclipseActionsAdapterFactory