blob: acaef61f295072d1c874f0132622b179697f7192 [file] [log] [blame]
/**
* Copyright (c) 2011, 2016 - 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 v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation
*
* generated from ActionDSL.xcore
*
*
*/
package org.eclipse.osbp.xtext.action.impl;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.eclipse.osbp.xtext.action.ActionDSLPackage;
import org.eclipse.osbp.xtext.action.ActionLazyResolver;
import org.eclipse.osbp.xtext.oxtype.resource.EcoreUtil3;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Action Lazy Resolver</b></em>'.
* <!-- end-user-doc -->
*
* @generated
*/
public class ActionLazyResolverImpl extends MinimalEObjectImpl.Container implements ActionLazyResolver {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ActionLazyResolverImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return ActionDSLPackage.Literals.ACTION_LAZY_RESOLVER;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EObject eResolveProxy(final InternalEObject proxy) {
return EcoreUtil3.resolve(proxy, this.eResource().getResourceSet());
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
switch (operationID) {
case ActionDSLPackage.ACTION_LAZY_RESOLVER___ERESOLVE_PROXY__INTERNALEOBJECT:
return eResolveProxy((InternalEObject)arguments.get(0));
}
return super.eInvoke(operationID, arguments);
}
} //ActionLazyResolverImpl