| /** |
| * Copyright (c) 2011, 2015 - Lunifera GmbH (Gross Enzersdorf, Austria), Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Florian Pirchner - Initial implementation |
| */ |
| package org.eclipse.osbp.vaaclipse.ui.preferences.model.util; |
| |
| import org.eclipse.e4.ui.model.application.MApplicationElement; |
| import org.eclipse.e4.ui.model.application.MContribution; |
| |
| import org.eclipse.e4.ui.model.application.ui.MElementContainer; |
| import org.eclipse.e4.ui.model.application.ui.MLocalizable; |
| import org.eclipse.e4.ui.model.application.ui.MUIElement; |
| |
| 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.osbp.vaaclipse.ui.preferences.model.*; |
| |
| import org.eclipse.osbp.vaaclipse.ui.preferences.model.metadata.PreferencesPackage; |
| |
| /** |
| * <!-- 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.osbp.vaaclipse.ui.preferences.model.metadata.PreferencesPackage |
| * @generated |
| */ |
| public class PreferencesAdapterFactory extends AdapterFactoryImpl { |
| /** |
| * The cached model package. <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| protected static PreferencesPackage modelPackage; |
| |
| /** |
| * Creates an instance of the adapter factory. <!-- begin-user-doc --> <!-- |
| * end-user-doc --> |
| * |
| * @generated |
| */ |
| public PreferencesAdapterFactory() { |
| if (modelPackage == null) { |
| modelPackage = PreferencesPackage.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 PreferencesSwitch<Adapter> modelSwitch = new PreferencesSwitch<Adapter>() { |
| @Override |
| public Adapter casePreferencesCategory(PreferencesCategory object) { |
| return createPreferencesCategoryAdapter(); |
| } |
| |
| @Override |
| public Adapter casePreferencesPage(PreferencesPage object) { |
| return createPreferencesPageAdapter(); |
| } |
| |
| @Override |
| public <T> Adapter caseFieldEditor(FieldEditor<T> object) { |
| return createFieldEditorAdapter(); |
| } |
| |
| @Override |
| public Adapter caseBooleanFieldEditor(BooleanFieldEditor object) { |
| return createBooleanFieldEditorAdapter(); |
| } |
| |
| @Override |
| public Adapter caseListFieldEditor(ListFieldEditor object) { |
| return createListFieldEditorAdapter(); |
| } |
| |
| @Override |
| public Adapter caseEntry(Entry object) { |
| return createEntryAdapter(); |
| } |
| |
| @Override |
| public Adapter caseComboFieldEditor(ComboFieldEditor object) { |
| return createComboFieldEditorAdapter(); |
| } |
| |
| @Override |
| public Adapter caseListEditor(ListEditor object) { |
| return createListEditorAdapter(); |
| } |
| |
| @Override |
| public Adapter caseRadioGroupFieldEditor(RadioGroupFieldEditor object) { |
| return createRadioGroupFieldEditorAdapter(); |
| } |
| |
| @Override |
| public Adapter caseScaleFieldEditor(ScaleFieldEditor object) { |
| return createScaleFieldEditorAdapter(); |
| } |
| |
| @Override |
| public Adapter caseStringFieldEditor(StringFieldEditor object) { |
| return createStringFieldEditorAdapter(); |
| } |
| |
| @Override |
| public Adapter caseIntegerFieldEditor(IntegerFieldEditor object) { |
| return createIntegerFieldEditorAdapter(); |
| } |
| |
| @Override |
| public Adapter caseFileFieldEditor(FileFieldEditor object) { |
| return createFileFieldEditorAdapter(); |
| } |
| |
| @Override |
| public Adapter caseDirectoryFieldEditor(DirectoryFieldEditor object) { |
| return createDirectoryFieldEditorAdapter(); |
| } |
| |
| @Override |
| public Adapter caseListCrud(ListCrud object) { |
| return createListCrudAdapter(); |
| } |
| |
| @Override |
| public Adapter caseListFold(ListFold object) { |
| return createListFoldAdapter(); |
| } |
| |
| @Override |
| public Adapter caseApplicationElement(MApplicationElement object) { |
| return createApplicationElementAdapter(); |
| } |
| |
| @Override |
| public Adapter caseLocalizable(MLocalizable object) { |
| return createLocalizableAdapter(); |
| } |
| |
| @Override |
| public Adapter caseUIElement(MUIElement object) { |
| return createUIElementAdapter(); |
| } |
| |
| @Override |
| public <T extends MUIElement> Adapter caseElementContainer( |
| MElementContainer<T> object) { |
| return createElementContainerAdapter(); |
| } |
| |
| @Override |
| public Adapter caseContribution(MContribution object) { |
| return createContributionAdapter(); |
| } |
| |
| @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.osbp.vaaclipse.ui.preferences.model.PreferencesCategory |
| * <em>Category</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.osbp.vaaclipse.ui.preferences.model.PreferencesCategory |
| * @generated |
| */ |
| public Adapter createPreferencesCategoryAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class ' |
| * {@link org.eclipse.osbp.vaaclipse.ui.preferences.model.PreferencesPage |
| * <em>Page</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.osbp.vaaclipse.ui.preferences.model.PreferencesPage |
| * @generated |
| */ |
| public Adapter createPreferencesPageAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class ' |
| * {@link org.eclipse.osbp.vaaclipse.ui.preferences.model.FieldEditor |
| * <em>Field 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.osbp.vaaclipse.ui.preferences.model.FieldEditor |
| * @generated |
| */ |
| public Adapter createFieldEditorAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class ' |
| * {@link org.eclipse.osbp.vaaclipse.ui.preferences.model.BooleanFieldEditor |
| * <em>Boolean Field 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.osbp.vaaclipse.ui.preferences.model.BooleanFieldEditor |
| * @generated |
| */ |
| public Adapter createBooleanFieldEditorAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class ' |
| * {@link org.eclipse.osbp.vaaclipse.ui.preferences.model.ListFieldEditor |
| * <em>List Field 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.osbp.vaaclipse.ui.preferences.model.ListFieldEditor |
| * @generated |
| */ |
| public Adapter createListFieldEditorAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class ' |
| * {@link org.eclipse.osbp.vaaclipse.ui.preferences.model.Entry <em>Entry</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.osbp.vaaclipse.ui.preferences.model.Entry |
| * @generated |
| */ |
| public Adapter createEntryAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class ' |
| * {@link org.eclipse.osbp.vaaclipse.ui.preferences.model.ComboFieldEditor |
| * <em>Combo Field 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.osbp.vaaclipse.ui.preferences.model.ComboFieldEditor |
| * @generated |
| */ |
| public Adapter createComboFieldEditorAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class ' |
| * {@link org.eclipse.osbp.vaaclipse.ui.preferences.model.ListEditor |
| * <em>List 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.osbp.vaaclipse.ui.preferences.model.ListEditor |
| * @generated |
| */ |
| public Adapter createListEditorAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class ' |
| * {@link org.eclipse.osbp.vaaclipse.ui.preferences.model.RadioGroupFieldEditor |
| * <em>Radio Group Field 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.osbp.vaaclipse.ui.preferences.model.RadioGroupFieldEditor |
| * @generated |
| */ |
| public Adapter createRadioGroupFieldEditorAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class ' |
| * {@link org.eclipse.osbp.vaaclipse.ui.preferences.model.ScaleFieldEditor |
| * <em>Scale Field 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.osbp.vaaclipse.ui.preferences.model.ScaleFieldEditor |
| * @generated |
| */ |
| public Adapter createScaleFieldEditorAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class ' |
| * {@link org.eclipse.osbp.vaaclipse.ui.preferences.model.StringFieldEditor |
| * <em>String Field 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.osbp.vaaclipse.ui.preferences.model.StringFieldEditor |
| * @generated |
| */ |
| public Adapter createStringFieldEditorAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class ' |
| * {@link org.eclipse.osbp.vaaclipse.ui.preferences.model.IntegerFieldEditor |
| * <em>Integer Field 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.osbp.vaaclipse.ui.preferences.model.IntegerFieldEditor |
| * @generated |
| */ |
| public Adapter createIntegerFieldEditorAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class ' |
| * {@link org.eclipse.osbp.vaaclipse.ui.preferences.model.FileFieldEditor |
| * <em>File Field 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.osbp.vaaclipse.ui.preferences.model.FileFieldEditor |
| * @generated |
| */ |
| public Adapter createFileFieldEditorAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class ' |
| * {@link org.eclipse.osbp.vaaclipse.ui.preferences.model.DirectoryFieldEditor |
| * <em>Directory Field 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.osbp.vaaclipse.ui.preferences.model.DirectoryFieldEditor |
| * @generated |
| */ |
| public Adapter createDirectoryFieldEditorAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class ' |
| * {@link org.eclipse.osbp.vaaclipse.ui.preferences.model.ListCrud |
| * <em>List Crud</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.osbp.vaaclipse.ui.preferences.model.ListCrud |
| * @generated |
| */ |
| public Adapter createListCrudAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class ' |
| * {@link org.eclipse.osbp.vaaclipse.ui.preferences.model.ListFold |
| * <em>List Fold</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.osbp.vaaclipse.ui.preferences.model.ListFold |
| * @generated |
| */ |
| public Adapter createListFoldAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class ' |
| * {@link org.eclipse.e4.ui.model.application.MApplicationElement |
| * <em>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.e4.ui.model.application.MApplicationElement |
| * @generated |
| */ |
| public Adapter createApplicationElementAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class ' |
| * {@link org.eclipse.e4.ui.model.application.ui.MLocalizable |
| * <em>Localizable</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.e4.ui.model.application.ui.MLocalizable |
| * @generated |
| */ |
| public Adapter createLocalizableAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class ' |
| * {@link org.eclipse.e4.ui.model.application.ui.MUIElement |
| * <em>UI 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.e4.ui.model.application.ui.MUIElement |
| * @generated |
| */ |
| public Adapter createUIElementAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class ' |
| * {@link org.eclipse.e4.ui.model.application.ui.MElementContainer |
| * <em>Element 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.e4.ui.model.application.ui.MElementContainer |
| * @generated |
| */ |
| public Adapter createElementContainerAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class ' |
| * {@link org.eclipse.e4.ui.model.application.MContribution |
| * <em>Contribution</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.e4.ui.model.application.MContribution |
| * @generated |
| */ |
| public Adapter createContributionAdapter() { |
| 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; |
| } |
| |
| } // PreferencesAdapterFactory |