blob: baead91994c4029f6cd100a62000e2df8f9310f7 [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.impl;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.SortedSet;
import javax.measure.unit.Unit;
import org.eclipse.apogy.core.invocator.AbstractOperationCall;
import org.eclipse.apogy.core.invocator.AbstractTypeImplementation;
import org.eclipse.apogy.core.invocator.Context;
import org.eclipse.apogy.core.invocator.Type;
import org.eclipse.apogy.core.invocator.Variable;
import org.eclipse.apogy.core.invocator.VariableFeatureReference;
import org.eclipse.apogy.core.invocator.VariablesList;
import org.eclipse.apogy.core.invocator.ui.ApogyCoreInvocatorUIFacade;
import org.eclipse.apogy.core.invocator.ui.ApogyCoreInvocatorUIPackage;
import org.eclipse.e4.ui.model.application.ui.basic.MPart;
import org.eclipse.emf.common.command.CompoundCommand;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Facade</b></em>'.
* <!-- end-user-doc -->
*
* @generated
*/
public abstract class ApogyCoreInvocatorUIFacadeImpl extends MinimalEObjectImpl.Container implements ApogyCoreInvocatorUIFacade {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ApogyCoreInvocatorUIFacadeImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return ApogyCoreInvocatorUIPackage.Literals.APOGY_CORE_INVOCATOR_UI_FACADE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void copyInitializationData(Context source, Context destination) throws Exception {
// TODO: implement this method
// Ensure that you remove @generated or mark it @generated NOT
throw new UnsupportedOperationException();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void copyInitializationData(AbstractTypeImplementation source, AbstractTypeImplementation destination, CompoundCommand command) throws Exception {
// TODO: implement this method
// Ensure that you remove @generated or mark it @generated NOT
throw new UnsupportedOperationException();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void initSession() {
// TODO: implement this method
// Ensure that you remove @generated or mark it @generated NOT
throw new UnsupportedOperationException();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void disposeSession() {
// TODO: implement this method
// Ensure that you remove @generated or mark it @generated NOT
throw new UnsupportedOperationException();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void addVariable(VariablesList variablesList, Variable variable) {
// TODO: implement this method
// Ensure that you remove @generated or mark it @generated NOT
throw new UnsupportedOperationException();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void deleteVariables(VariablesList variablesList, List<Variable> variables) {
// TODO: implement this method
// Ensure that you remove @generated or mark it @generated NOT
throw new UnsupportedOperationException();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void saveToPersistedState(MPart mPart, String persistedStateKey, EObject eObject) {
// TODO: implement this method
// Ensure that you remove @generated or mark it @generated NOT
throw new UnsupportedOperationException();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject readFromPersistedState(MPart mPart, String persistedStateKey) {
// TODO: implement this method
// Ensure that you remove @generated or mark it @generated NOT
throw new UnsupportedOperationException();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public SortedSet<Type> sortTypeByName(List<Type> types) {
// TODO: implement this method
// Ensure that you remove @generated or mark it @generated NOT
throw new UnsupportedOperationException();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String asString(AbstractOperationCall abstractOperationCall, boolean includeVariableFeatureReference, boolean includeReturnType, boolean includeParametersTypes, boolean includeParametersValues) {
// TODO: implement this method
// Ensure that you remove @generated or mark it @generated NOT
throw new UnsupportedOperationException();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Unit<?> getVariableFeatureReferenceDisplayUnits(VariableFeatureReference variableFeatureReference) {
// TODO: implement this method
// Ensure that you remove @generated or mark it @generated NOT
throw new UnsupportedOperationException();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
@SuppressWarnings("unchecked")
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
switch (operationID) {
case ApogyCoreInvocatorUIPackage.APOGY_CORE_INVOCATOR_UI_FACADE___COPY_INITIALIZATION_DATA__CONTEXT_CONTEXT:
try {
copyInitializationData((Context)arguments.get(0), (Context)arguments.get(1));
return null;
}
catch (Throwable throwable) {
throw new InvocationTargetException(throwable);
}
case ApogyCoreInvocatorUIPackage.APOGY_CORE_INVOCATOR_UI_FACADE___COPY_INITIALIZATION_DATA__ABSTRACTTYPEIMPLEMENTATION_ABSTRACTTYPEIMPLEMENTATION_COMPOUNDCOMMAND:
try {
copyInitializationData((AbstractTypeImplementation)arguments.get(0), (AbstractTypeImplementation)arguments.get(1), (CompoundCommand)arguments.get(2));
return null;
}
catch (Throwable throwable) {
throw new InvocationTargetException(throwable);
}
case ApogyCoreInvocatorUIPackage.APOGY_CORE_INVOCATOR_UI_FACADE___INIT_SESSION:
initSession();
return null;
case ApogyCoreInvocatorUIPackage.APOGY_CORE_INVOCATOR_UI_FACADE___DISPOSE_SESSION:
disposeSession();
return null;
case ApogyCoreInvocatorUIPackage.APOGY_CORE_INVOCATOR_UI_FACADE___ADD_VARIABLE__VARIABLESLIST_VARIABLE:
addVariable((VariablesList)arguments.get(0), (Variable)arguments.get(1));
return null;
case ApogyCoreInvocatorUIPackage.APOGY_CORE_INVOCATOR_UI_FACADE___DELETE_VARIABLES__VARIABLESLIST_LIST:
deleteVariables((VariablesList)arguments.get(0), (List<Variable>)arguments.get(1));
return null;
case ApogyCoreInvocatorUIPackage.APOGY_CORE_INVOCATOR_UI_FACADE___SAVE_TO_PERSISTED_STATE__MPART_STRING_EOBJECT:
saveToPersistedState((MPart)arguments.get(0), (String)arguments.get(1), (EObject)arguments.get(2));
return null;
case ApogyCoreInvocatorUIPackage.APOGY_CORE_INVOCATOR_UI_FACADE___READ_FROM_PERSISTED_STATE__MPART_STRING:
return readFromPersistedState((MPart)arguments.get(0), (String)arguments.get(1));
case ApogyCoreInvocatorUIPackage.APOGY_CORE_INVOCATOR_UI_FACADE___SORT_TYPE_BY_NAME__LIST:
return sortTypeByName((List<Type>)arguments.get(0));
case ApogyCoreInvocatorUIPackage.APOGY_CORE_INVOCATOR_UI_FACADE___AS_STRING__ABSTRACTOPERATIONCALL_BOOLEAN_BOOLEAN_BOOLEAN_BOOLEAN:
return asString((AbstractOperationCall)arguments.get(0), (Boolean)arguments.get(1), (Boolean)arguments.get(2), (Boolean)arguments.get(3), (Boolean)arguments.get(4));
case ApogyCoreInvocatorUIPackage.APOGY_CORE_INVOCATOR_UI_FACADE___GET_VARIABLE_FEATURE_REFERENCE_DISPLAY_UNITS__VARIABLEFEATUREREFERENCE:
return getVariableFeatureReferenceDisplayUnits((VariableFeatureReference)arguments.get(0));
}
return super.eInvoke(operationID, arguments);
}
} //ApogyCoreInvocatorUIFacadeImpl