blob: aed8eeba0e6b52e519c5d93ceacd2cadfc646fee [file] [log] [blame]
/**
* *******************************************************************************
* Copyright (c) 2018 Agence spatiale canadienne / Canadian Space Agency
* 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:
* Pierre Allard - initial API and implementation
* Regent L'Archeveque
* Olivier L. Larouche
*
* SPDX-License-Identifier: EPL-1.0
* *******************************************************************************
*/
package org.eclipse.apogy.core.invocator.ui.util;
import org.eclipse.apogy.common.emf.ui.WizardPagesProvider;
import org.eclipse.apogy.common.emf.ui.emfforms.NamedDescribedElementEMFFormsWizardPageProvider;
import org.eclipse.apogy.core.invocator.ui.*;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
/**
* <!-- begin-user-doc -->
* The <b>Switch</b> for the model's inheritance hierarchy.
* It supports the call {@link #doSwitch(EObject) doSwitch(object)}
* to invoke the <code>caseXXX</code> method for each class of the model,
* starting with the actual class of the object
* and proceeding up the inheritance hierarchy
* until a non-null result is returned,
* which is the result of the switch.
* <!-- end-user-doc -->
* @see org.eclipse.apogy.core.invocator.ui.ApogyCoreInvocatorUIPackage
* @generated
*/
public class ApogyCoreInvocatorUISwitch<T> extends Switch<T> {
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static ApogyCoreInvocatorUIPackage modelPackage;
/**
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ApogyCoreInvocatorUISwitch() {
if (modelPackage == null) {
modelPackage = ApogyCoreInvocatorUIPackage.eINSTANCE;
}
}
/**
* Checks whether this is a switch for the given package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param ePackage the package in question.
* @return whether this is a switch for the given package.
* @generated
*/
@Override
protected boolean isSwitchFor(EPackage ePackage) {
return ePackage == modelPackage;
}
/**
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
case ApogyCoreInvocatorUIPackage.APOGY_CORE_INVOCATOR_UI_FACADE: {
ApogyCoreInvocatorUIFacade apogyCoreInvocatorUIFacade = (ApogyCoreInvocatorUIFacade)theEObject;
T result = caseApogyCoreInvocatorUIFacade(apogyCoreInvocatorUIFacade);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ApogyCoreInvocatorUIPackage.SCRIPT_BASED_PROGRAMS_GROUP_WIZARD_PAGES_PROVIDER: {
ScriptBasedProgramsGroupWizardPagesProvider scriptBasedProgramsGroupWizardPagesProvider = (ScriptBasedProgramsGroupWizardPagesProvider)theEObject;
T result = caseScriptBasedProgramsGroupWizardPagesProvider(scriptBasedProgramsGroupWizardPagesProvider);
if (result == null) result = caseNamedDescribedElementEMFFormsWizardPageProvider(scriptBasedProgramsGroupWizardPagesProvider);
if (result == null) result = caseWizardPagesProvider(scriptBasedProgramsGroupWizardPagesProvider);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ApogyCoreInvocatorUIPackage.TYPE_MEMBER_WIZARD_PAGES_PROVIDER: {
TypeMemberWizardPagesProvider typeMemberWizardPagesProvider = (TypeMemberWizardPagesProvider)theEObject;
T result = caseTypeMemberWizardPagesProvider(typeMemberWizardPagesProvider);
if (result == null) result = caseNamedDescribedElementEMFFormsWizardPageProvider(typeMemberWizardPagesProvider);
if (result == null) result = caseWizardPagesProvider(typeMemberWizardPagesProvider);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ApogyCoreInvocatorUIPackage.CONTEXT_WIZARD_PAGES_PROVIDER: {
ContextWizardPagesProvider contextWizardPagesProvider = (ContextWizardPagesProvider)theEObject;
T result = caseContextWizardPagesProvider(contextWizardPagesProvider);
if (result == null) result = caseNamedDescribedElementEMFFormsWizardPageProvider(contextWizardPagesProvider);
if (result == null) result = caseWizardPagesProvider(contextWizardPagesProvider);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ApogyCoreInvocatorUIPackage.VARIABLE_PAGES_PROVIDER: {
VariablePagesProvider variablePagesProvider = (VariablePagesProvider)theEObject;
T result = caseVariablePagesProvider(variablePagesProvider);
if (result == null) result = caseNamedDescribedElementEMFFormsWizardPageProvider(variablePagesProvider);
if (result == null) result = caseWizardPagesProvider(variablePagesProvider);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ApogyCoreInvocatorUIPackage.VARIABLE_FEATURE_REFERENCE_WIZARD_PAGES_PROVIDER: {
VariableFeatureReferenceWizardPagesProvider variableFeatureReferenceWizardPagesProvider = (VariableFeatureReferenceWizardPagesProvider)theEObject;
T result = caseVariableFeatureReferenceWizardPagesProvider(variableFeatureReferenceWizardPagesProvider);
if (result == null) result = caseNamedDescribedElementEMFFormsWizardPageProvider(variableFeatureReferenceWizardPagesProvider);
if (result == null) result = caseWizardPagesProvider(variableFeatureReferenceWizardPagesProvider);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ApogyCoreInvocatorUIPackage.OPERATION_CALL_PAGES_PROVIDER: {
OperationCallPagesProvider operationCallPagesProvider = (OperationCallPagesProvider)theEObject;
T result = caseOperationCallPagesProvider(operationCallPagesProvider);
if (result == null) result = caseVariableFeatureReferenceWizardPagesProvider(operationCallPagesProvider);
if (result == null) result = caseNamedDescribedElementEMFFormsWizardPageProvider(operationCallPagesProvider);
if (result == null) result = caseWizardPagesProvider(operationCallPagesProvider);
if (result == null) result = defaultCase(theEObject);
return result;
}
default: return defaultCase(theEObject);
}
}
/**
* Returns the result of interpreting the object as an instance of '<em>Facade</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Facade</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseApogyCoreInvocatorUIFacade(ApogyCoreInvocatorUIFacade object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Script Based Programs Group Wizard Pages Provider</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Script Based Programs Group Wizard Pages Provider</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseScriptBasedProgramsGroupWizardPagesProvider(ScriptBasedProgramsGroupWizardPagesProvider object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Type Member Wizard Pages Provider</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Type Member Wizard Pages Provider</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseTypeMemberWizardPagesProvider(TypeMemberWizardPagesProvider object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Context Wizard Pages Provider</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Context Wizard Pages Provider</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseContextWizardPagesProvider(ContextWizardPagesProvider object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Variable Pages Provider</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Variable Pages Provider</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseVariablePagesProvider(VariablePagesProvider object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Variable Feature Reference Wizard Pages Provider</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Variable Feature Reference Wizard Pages Provider</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseVariableFeatureReferenceWizardPagesProvider(VariableFeatureReferenceWizardPagesProvider object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Operation Call Pages Provider</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Operation Call Pages Provider</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseOperationCallPagesProvider(OperationCallPagesProvider object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Wizard Pages Provider</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Wizard Pages Provider</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseWizardPagesProvider(WizardPagesProvider object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Named Described Element EMF Forms Wizard Page Provider</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Named Described Element EMF Forms Wizard Page Provider</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseNamedDescribedElementEMFFormsWizardPageProvider(NamedDescribedElementEMFFormsWizardPageProvider object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch, but this is the last case anyway.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>EObject</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
*/
@Override
public T defaultCase(EObject object) {
return null;
}
} //ApogyCoreInvocatorUISwitch