/*******************************************************************************
* Copyright © 2008, 2013 IBM Corporation and others.
* 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:
* IBM Corporation - initial API and implementation
*
*******************************************************************************/
package org.eclipse.edt.ide.ui.internal.formatting.profile.util;
import org.eclipse.edt.ide.ui.internal.formatting.profile.Category;
import org.eclipse.edt.ide.ui.internal.formatting.profile.CheckControl;
import org.eclipse.edt.ide.ui.internal.formatting.profile.ComboControl;
import org.eclipse.edt.ide.ui.internal.formatting.profile.Control;
import org.eclipse.edt.ide.ui.internal.formatting.profile.Controls;
import org.eclipse.edt.ide.ui.internal.formatting.profile.DefaultProfile;
import org.eclipse.edt.ide.ui.internal.formatting.profile.EGLFormatProfileRoot;
import org.eclipse.edt.ide.ui.internal.formatting.profile.FormatProfiles;
import org.eclipse.edt.ide.ui.internal.formatting.profile.Group;
import org.eclipse.edt.ide.ui.internal.formatting.profile.Preference;
import org.eclipse.edt.ide.ui.internal.formatting.profile.Preview;
import org.eclipse.edt.ide.ui.internal.formatting.profile.Profile;
import org.eclipse.edt.ide.ui.internal.formatting.profile.ProfilePackage;
import org.eclipse.edt.ide.ui.internal.formatting.profile.RadioControl;
import org.eclipse.edt.ide.ui.internal.formatting.profile.ReferenceControl;
import org.eclipse.edt.ide.ui.internal.formatting.profile.Setting;
import org.eclipse.edt.ide.ui.internal.formatting.profile.TextControl;
import org.eclipse.edt.ide.ui.internal.formatting.profile.TreeControl;
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;
/**
* <!-- 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.edt.ide.ui.internal.formatting.profile.ProfilePackage
* @generated
*/
public class ProfileAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static ProfilePackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ProfileAdapterFactory() {
if (modelPackage == null) {
modelPackage = ProfilePackage.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
*/
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 ProfileSwitch modelSwitch =
new ProfileSwitch() {
public Object caseCategory(Category object) {
return createCategoryAdapter();
}
public Object caseCheckControl(CheckControl object) {
return createCheckControlAdapter();
}
public Object caseComboControl(ComboControl object) {
return createComboControlAdapter();
}
public Object caseControl(Control object) {
return createControlAdapter();
}
public Object caseControls(Controls object) {
return createControlsAdapter();
}
public Object caseDefaultProfile(DefaultProfile object) {
return createDefaultProfileAdapter();
}
public Object caseEGLFormatProfileRoot(EGLFormatProfileRoot object) {
return createEGLFormatProfileRootAdapter();
}
public Object caseFormatProfiles(FormatProfiles object) {
return createFormatProfilesAdapter();
}
public Object caseGroup(Group object) {
return createGroupAdapter();
}
public Object casePreference(Preference object) {
return createPreferenceAdapter();
}
public Object casePreview(Preview object) {
return createPreviewAdapter();
}
public Object caseProfile(Profile object) {
return createProfileAdapter();
}
public Object caseRadioControl(RadioControl object) {
return createRadioControlAdapter();
}
public Object caseReferenceControl(ReferenceControl object) {
return createReferenceControlAdapter();
}
public Object caseSetting(Setting object) {
return createSettingAdapter();
}
public Object caseTextControl(TextControl object) {
return createTextControlAdapter();
}
public Object caseTreeControl(TreeControl object) {
return createTreeControlAdapter();
}
public Object 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
*/
public Adapter createAdapter(Notifier target) {
return (Adapter)modelSwitch.doSwitch((EObject)target);
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.edt.ide.ui.internal.formatting.profile.Category <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.edt.ide.ui.internal.formatting.profile.Category
* @generated
*/
public Adapter createCategoryAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.edt.ide.ui.internal.formatting.profile.CheckControl <em>Check Control</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.edt.ide.ui.internal.formatting.profile.CheckControl
* @generated
*/
public Adapter createCheckControlAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.edt.ide.ui.internal.formatting.profile.ComboControl <em>Combo Control</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.edt.ide.ui.internal.formatting.profile.ComboControl
* @generated
*/
public Adapter createComboControlAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.edt.ide.ui.internal.formatting.profile.Control <em>Control</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.edt.ide.ui.internal.formatting.profile.Control
* @generated
*/
public Adapter createControlAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.edt.ide.ui.internal.formatting.profile.Controls <em>Controls</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.edt.ide.ui.internal.formatting.profile.Controls
* @generated
*/
public Adapter createControlsAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.edt.ide.ui.internal.formatting.profile.DefaultProfile <em>Default Profile</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.edt.ide.ui.internal.formatting.profile.DefaultProfile
* @generated
*/
public Adapter createDefaultProfileAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.edt.ide.ui.internal.formatting.profile.EGLFormatProfileRoot <em>EGL Format Profile Root</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.edt.ide.ui.internal.formatting.profile.EGLFormatProfileRoot
* @generated
*/
public Adapter createEGLFormatProfileRootAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.edt.ide.ui.internal.formatting.profile.FormatProfiles <em>Format Profiles</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.edt.ide.ui.internal.formatting.profile.FormatProfiles
* @generated
*/
public Adapter createFormatProfilesAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.edt.ide.ui.internal.formatting.profile.Group <em>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.edt.ide.ui.internal.formatting.profile.Group
* @generated
*/
public Adapter createGroupAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.edt.ide.ui.internal.formatting.profile.Preference <em>Preference</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.edt.ide.ui.internal.formatting.profile.Preference
* @generated
*/
public Adapter createPreferenceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.edt.ide.ui.internal.formatting.profile.Preview <em>Preview</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.edt.ide.ui.internal.formatting.profile.Preview
* @generated
*/
public Adapter createPreviewAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.edt.ide.ui.internal.formatting.profile.Profile <em>Profile</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.edt.ide.ui.internal.formatting.profile.Profile
* @generated
*/
public Adapter createProfileAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.edt.ide.ui.internal.formatting.profile.RadioControl <em>Radio Control</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.edt.ide.ui.internal.formatting.profile.RadioControl
* @generated
*/
public Adapter createRadioControlAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.edt.ide.ui.internal.formatting.profile.ReferenceControl <em>Reference Control</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.edt.ide.ui.internal.formatting.profile.ReferenceControl
* @generated
*/
public Adapter createReferenceControlAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.edt.ide.ui.internal.formatting.profile.Setting <em>Setting</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.edt.ide.ui.internal.formatting.profile.Setting
* @generated
*/
public Adapter createSettingAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.edt.ide.ui.internal.formatting.profile.TextControl <em>Text Control</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.edt.ide.ui.internal.formatting.profile.TextControl
* @generated
*/
public Adapter createTextControlAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.edt.ide.ui.internal.formatting.profile.TreeControl <em>Tree Control</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.edt.ide.ui.internal.formatting.profile.TreeControl
* @generated
*/
public Adapter createTreeControlAdapter() {
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;
}
} //ProfileAdapterFactory