Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/impl/CustomFactoryImpl.java')
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/impl/CustomFactoryImpl.java45
1 files changed, 30 insertions, 15 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/impl/CustomFactoryImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/impl/CustomFactoryImpl.java
index 4f0384a103b..5fe78ffefd6 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/impl/CustomFactoryImpl.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel/src/org/eclipse/papyrus/emf/facet/custom/metamodel/v0_2_0/custom/impl/CustomFactoryImpl.java
@@ -1,15 +1,15 @@
/**
* Copyright (c) 2011 Mia-Software.
- *
+ *
* 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:
* Gregoire Dupe (Mia-Software) - Bug 361794 - [Restructuring] New customization meta-model
* Gregoire Dupe (Mia-Software) - Bug 369987 - [Restructuring][Table] Switch to the new customization and facet framework
- * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning
+ * Gregoire Dupe (Mia-Software) - Bug 373078 - API Cleaning
*/
package org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.impl;
@@ -24,6 +24,7 @@ import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.*;
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
+ *
* @generated
*/
public class CustomFactoryImpl extends EFactoryImpl implements CustomFactory {
@@ -31,16 +32,16 @@ public class CustomFactoryImpl extends EFactoryImpl implements CustomFactory {
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public static CustomFactory init() {
try {
- CustomFactory theCustomFactory = (CustomFactory)EPackage.Registry.INSTANCE.getEFactory(CustomPackage.eNS_URI);
+ CustomFactory theCustomFactory = (CustomFactory) EPackage.Registry.INSTANCE.getEFactory(CustomPackage.eNS_URI);
if (theCustomFactory != null) {
return theCustomFactory;
}
- }
- catch (Exception exception) {
+ } catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new CustomFactoryImpl();
@@ -50,6 +51,7 @@ public class CustomFactoryImpl extends EFactoryImpl implements CustomFactory {
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public CustomFactoryImpl() {
@@ -59,24 +61,31 @@ public class CustomFactoryImpl extends EFactoryImpl implements CustomFactory {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
- case CustomPackage.CUSTOMIZATION: return createCustomization();
- case CustomPackage.ECLASS_CUSTOMIZATION: return createEClassCustomization();
- case CustomPackage.FACET_CUSTOMIZATION: return createFacetCustomization();
- case CustomPackage.ETYPED_ELEMENT_SWITCH_QUERY: return createETypedElementSwitchQuery();
- case CustomPackage.ETYPED_ELEMENT_CASE: return createETypedElementCase();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ case CustomPackage.CUSTOMIZATION:
+ return createCustomization();
+ case CustomPackage.ECLASS_CUSTOMIZATION:
+ return createEClassCustomization();
+ case CustomPackage.FACET_CUSTOMIZATION:
+ return createFacetCustomization();
+ case CustomPackage.ETYPED_ELEMENT_SWITCH_QUERY:
+ return createETypedElementSwitchQuery();
+ case CustomPackage.ETYPED_ELEMENT_CASE:
+ return createETypedElementCase();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Customization createCustomization() {
@@ -87,6 +96,7 @@ public class CustomFactoryImpl extends EFactoryImpl implements CustomFactory {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EClassCustomization createEClassCustomization() {
@@ -97,6 +107,7 @@ public class CustomFactoryImpl extends EFactoryImpl implements CustomFactory {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public FacetCustomization createFacetCustomization() {
@@ -107,6 +118,7 @@ public class CustomFactoryImpl extends EFactoryImpl implements CustomFactory {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ETypedElementSwitchQuery createETypedElementSwitchQuery() {
@@ -117,6 +129,7 @@ public class CustomFactoryImpl extends EFactoryImpl implements CustomFactory {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ETypedElementCase createETypedElementCase() {
@@ -127,15 +140,17 @@ public class CustomFactoryImpl extends EFactoryImpl implements CustomFactory {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public CustomPackage getCustomPackage() {
- return (CustomPackage)getEPackage();
+ return (CustomPackage) getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @deprecated
* @generated
*/
@@ -144,4 +159,4 @@ public class CustomFactoryImpl extends EFactoryImpl implements CustomFactory {
return CustomPackage.eINSTANCE;
}
-} //CustomFactoryImpl
+} // CustomFactoryImpl

Back to the top