diff options
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/environment/impl/EnvironmentFactoryImpl.java')
-rw-r--r-- | extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/environment/impl/EnvironmentFactoryImpl.java | 132 |
1 files changed, 0 insertions, 132 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/environment/impl/EnvironmentFactoryImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/environment/impl/EnvironmentFactoryImpl.java deleted file mode 100644 index 907a73db205..00000000000 --- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/environment/impl/EnvironmentFactoryImpl.java +++ /dev/null @@ -1,132 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2010 CEA LIST. - * - * - * 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: - * Sara TUCCI (CEA LIST) sara.tucci@cea.fr - Initial API and implementation - * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation - * David SERVAT (CEA LIST) david.servat@cea.fr - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.eastadl.environment.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; -import org.eclipse.papyrus.eastadl.environment.ClampConnector; -import org.eclipse.papyrus.eastadl.environment.Environment; -import org.eclipse.papyrus.eastadl.environment.EnvironmentFactory; -import org.eclipse.papyrus.eastadl.environment.EnvironmentPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Factory</b>. - * <!-- end-user-doc --> - * - * @generated - */ -public class EnvironmentFactoryImpl extends EFactoryImpl implements EnvironmentFactory { - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @deprecated - * @generated - */ - @Deprecated - public static EnvironmentPackage getPackage() { - return EnvironmentPackage.eINSTANCE; - } - - /** - * Creates the default factory implementation. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - public static EnvironmentFactory init() { - try { - EnvironmentFactory theEnvironmentFactory = (EnvironmentFactory) EPackage.Registry.INSTANCE.getEFactory(EnvironmentPackage.eNS_URI); - if (theEnvironmentFactory != null) { - return theEnvironmentFactory; - } - } catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new EnvironmentFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - public EnvironmentFactoryImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case EnvironmentPackage.ENVIRONMENT: - return createEnvironment(); - case EnvironmentPackage.CLAMP_CONNECTOR: - return createClampConnector(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - @Override - public ClampConnector createClampConnector() { - ClampConnectorImpl clampConnector = new ClampConnectorImpl(); - return clampConnector; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - @Override - public Environment createEnvironment() { - EnvironmentImpl environment = new EnvironmentImpl(); - return environment; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - @Override - public EnvironmentPackage getEnvironmentPackage() { - return (EnvironmentPackage) getEPackage(); - } - -} // EnvironmentFactoryImpl |