diff options
Diffstat (limited to 'extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse')
14 files changed, 0 insertions, 3178 deletions
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/AdvancedConfig.java b/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/AdvancedConfig.java deleted file mode 100755 index 2b8fb66f040..00000000000 --- a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/AdvancedConfig.java +++ /dev/null @@ -1,195 +0,0 @@ -/** - * Copyright (c) 2014 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: - * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation - * Vincent Lorenzo (CEA-LIST) vincent.lorenzo@cea.fr - bug 496176 - * - */ -package org.eclipse.papyrus.migration.common.MigrationParameters; - - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Advanced Config</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * </p> - * <ul> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#getMappingParameters <em>Mapping Parameters</em>}</li> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#isRemoveUnmappedDiagrams <em>Remove Unmapped Diagrams</em>}</li> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#isConvertOpaqueExpressionToLiteralString <em>Convert Opaque Expression To Literal String</em>}</li> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#isRemoveUnmappedProfilesAndStereotypes <em>Remove Unmapped Profiles And Stereotypes</em>}</li> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#isRemoveUnmappedAnnotations <em>Remove Unmapped Annotations</em>}</li> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#isAlwaysAcceptSuggestedMappings <em>Always Accept Suggested Mappings</em>}</li> - * </ul> - * - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage#getAdvancedConfig() - * @model - * @generated - */ -public interface AdvancedConfig extends ThreadConfig { - /** - * Returns the value of the '<em><b>Mapping Parameters</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Mapping Parameters</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Mapping Parameters</em>' containment reference. - * @see #setMappingParameters(MappingParameters) - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage#getAdvancedConfig_MappingParameters() - * @model containment="true" required="true" ordered="false" - * @generated - */ - MappingParameters getMappingParameters(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#getMappingParameters <em>Mapping Parameters</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Mapping Parameters</em>' containment reference. - * @see #getMappingParameters() - * @generated - */ - void setMappingParameters(MappingParameters value); - - /** - * Returns the value of the '<em><b>Remove Unmapped Diagrams</b></em>' attribute. - * The default value is <code>"false"</code>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * If true, the diagrams which were not migrated will be removed. Otherwise, only the successfully imported diagrams will be removed - * <!-- end-model-doc --> - * @return the value of the '<em>Remove Unmapped Diagrams</em>' attribute. - * @see #setRemoveUnmappedDiagrams(boolean) - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage#getAdvancedConfig_RemoveUnmappedDiagrams() - * @model default="false" unique="false" dataType="org.eclipse.uml2.types.Boolean" required="true" ordered="false" - * @generated - */ - boolean isRemoveUnmappedDiagrams(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#isRemoveUnmappedDiagrams <em>Remove Unmapped Diagrams</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Remove Unmapped Diagrams</em>' attribute. - * @see #isRemoveUnmappedDiagrams() - * @generated - */ - void setRemoveUnmappedDiagrams(boolean value); - - /** - * Returns the value of the '<em><b>Convert Opaque Expression To Literal String</b></em>' attribute. - * The default value is <code>"true"</code>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * If true, the Opaque Expressions with a single body and no language (or a single empty language) will be converted to LiteralString - * <!-- end-model-doc --> - * @return the value of the '<em>Convert Opaque Expression To Literal String</em>' attribute. - * @see #setConvertOpaqueExpressionToLiteralString(boolean) - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage#getAdvancedConfig_ConvertOpaqueExpressionToLiteralString() - * @model default="true" unique="false" dataType="org.eclipse.uml2.types.Boolean" required="true" ordered="false" - * @generated - */ - boolean isConvertOpaqueExpressionToLiteralString(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#isConvertOpaqueExpressionToLiteralString <em>Convert Opaque Expression To Literal String</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Convert Opaque Expression To Literal String</em>' attribute. - * @see #isConvertOpaqueExpressionToLiteralString() - * @generated - */ - void setConvertOpaqueExpressionToLiteralString(boolean value); - - /** - * Returns the value of the '<em><b>Remove Unmapped Profiles And Stereotypes</b></em>' attribute. - * The default value is <code>"false"</code>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * If true, all unsupported RSA profiles and stereotypes will be deleted at the end of the transformation - * <!-- end-model-doc --> - * @return the value of the '<em>Remove Unmapped Profiles And Stereotypes</em>' attribute. - * @see #setRemoveUnmappedProfilesAndStereotypes(boolean) - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage#getAdvancedConfig_RemoveUnmappedProfilesAndStereotypes() - * @model default="false" unique="false" dataType="org.eclipse.uml2.types.Boolean" required="true" ordered="false" - * @generated - */ - boolean isRemoveUnmappedProfilesAndStereotypes(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#isRemoveUnmappedProfilesAndStereotypes <em>Remove Unmapped Profiles And Stereotypes</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Remove Unmapped Profiles And Stereotypes</em>' attribute. - * @see #isRemoveUnmappedProfilesAndStereotypes() - * @generated - */ - void setRemoveUnmappedProfilesAndStereotypes(boolean value); - - /** - * Returns the value of the '<em><b>Remove Unmapped Annotations</b></em>' attribute. - * The default value is <code>"false"</code>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * If true, the unmapped RSA EAnnotations will be deleted from the imported model - * <!-- end-model-doc --> - * @return the value of the '<em>Remove Unmapped Annotations</em>' attribute. - * @see #setRemoveUnmappedAnnotations(boolean) - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage#getAdvancedConfig_RemoveUnmappedAnnotations() - * @model default="false" unique="false" dataType="org.eclipse.uml2.types.Boolean" required="true" ordered="false" - * @generated - */ - boolean isRemoveUnmappedAnnotations(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#isRemoveUnmappedAnnotations <em>Remove Unmapped Annotations</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Remove Unmapped Annotations</em>' attribute. - * @see #isRemoveUnmappedAnnotations() - * @generated - */ - void setRemoveUnmappedAnnotations(boolean value); - - /** - * Returns the value of the '<em><b>Always Accept Suggested Mappings</b></em>' attribute. - * The default value is <code>"false"</code>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * If true, the Transformation will not open a dialog to ask user-confirmation for the dependency mappings. The tool will automatically keep going by "guessing" the proper mapping - * <!-- end-model-doc --> - * @return the value of the '<em>Always Accept Suggested Mappings</em>' attribute. - * @see #setAlwaysAcceptSuggestedMappings(boolean) - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage#getAdvancedConfig_AlwaysAcceptSuggestedMappings() - * @model default="false" dataType="org.eclipse.uml2.types.Boolean" required="true" ordered="false" - * @generated - */ - boolean isAlwaysAcceptSuggestedMappings(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#isAlwaysAcceptSuggestedMappings <em>Always Accept Suggested Mappings</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Always Accept Suggested Mappings</em>' attribute. - * @see #isAlwaysAcceptSuggestedMappings() - * @generated - */ - void setAlwaysAcceptSuggestedMappings(boolean value); - -} // AdvancedConfig diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/MappingParameters.java b/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/MappingParameters.java deleted file mode 100755 index 6ab2b7fd561..00000000000 --- a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/MappingParameters.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Copyright (c) 2014 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: - * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation - * Vincent Lorenzo (CEA-LIST) vincent.lorenzo@cea.fr - bug 496176 - * - */ -package org.eclipse.papyrus.migration.common.MigrationParameters; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Mapping Parameters</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * </p> - * <ul> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.MappingParameters#getUriMappings <em>Uri Mappings</em>}</li> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.MappingParameters#getProfileUriMappings <em>Profile Uri Mappings</em>}</li> - * </ul> - * - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage#getMappingParameters() - * @model - * @generated - */ -public interface MappingParameters extends EObject { - /** - * Returns the value of the '<em><b>Uri Mappings</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.papyrus.migration.common.MigrationParameters.URIMapping}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * When models/libraries have been migrated separately, maps the libraries imported from RSA to their Papyrus equivalent - * <!-- end-model-doc --> - * @return the value of the '<em>Uri Mappings</em>' containment reference list. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage#getMappingParameters_UriMappings() - * @model containment="true" ordered="false" - * @generated - */ - EList<URIMapping> getUriMappings(); - - /** - * Returns the value of the '<em><b>Profile Uri Mappings</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.papyrus.migration.common.MigrationParameters.URIMapping}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * When profiles have been migrated separately, maps the profiles imported from RSA to their Papyrus equivalent - * <!-- end-model-doc --> - * @return the value of the '<em>Profile Uri Mappings</em>' containment reference list. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage#getMappingParameters_ProfileUriMappings() - * @model containment="true" ordered="false" - * @generated - */ - EList<URIMapping> getProfileUriMappings(); - -} // MappingParameters diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/MigrationParametersFactory.java b/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/MigrationParametersFactory.java deleted file mode 100755 index d0b9a00824c..00000000000 --- a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/MigrationParametersFactory.java +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Copyright (c) 2014 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: - * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation - * Vincent Lorenzo (CEA-LIST) vincent.lorenzo@cea.fr - bug 496176 - * - */ -package org.eclipse.papyrus.migration.common.MigrationParameters; - -import org.eclipse.emf.ecore.EFactory; - -/** - * <!-- begin-user-doc --> - * The <b>Factory</b> for the model. - * It provides a create method for each non-abstract class of the model. - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage - * @generated - */ -public interface MigrationParametersFactory extends EFactory { - /** - * The singleton instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - MigrationParametersFactory eINSTANCE = org.eclipse.papyrus.migration.common.MigrationParameters.impl.MigrationParametersFactoryImpl.init(); - - /** - * Returns a new object of class '<em>Advanced Config</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Advanced Config</em>'. - * @generated - */ - AdvancedConfig createAdvancedConfig(); - - /** - * Returns a new object of class '<em>Thread Config</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Thread Config</em>'. - * @generated - */ - ThreadConfig createThreadConfig(); - - /** - * Returns a new object of class '<em>Mapping Parameters</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Mapping Parameters</em>'. - * @generated - */ - MappingParameters createMappingParameters(); - - /** - * Returns a new object of class '<em>URI Mapping</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>URI Mapping</em>'. - * @generated - */ - URIMapping createURIMapping(); - - /** - * Returns the package supported by this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the package supported by this factory. - * @generated - */ - MigrationParametersPackage getMigrationParametersPackage(); - -} //MigrationParametersFactory diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/MigrationParametersPackage.java b/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/MigrationParametersPackage.java deleted file mode 100755 index b5d8e311c88..00000000000 --- a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/MigrationParametersPackage.java +++ /dev/null @@ -1,642 +0,0 @@ -/** - * Copyright (c) 2014 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: - * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation - * Vincent Lorenzo (CEA-LIST) vincent.lorenzo@cea.fr - bug 496176 - * - */ -package org.eclipse.papyrus.migration.common.MigrationParameters; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -/** - * <!-- begin-user-doc --> - * The <b>Package</b> for the model. - * It contains accessors for the meta objects to represent - * <ul> - * <li>each class,</li> - * <li>each feature of each class,</li> - * <li>each operation of each class,</li> - * <li>each enum,</li> - * <li>and each data type</li> - * </ul> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersFactory - * @model kind="package" - * @generated - */ -public interface MigrationParametersPackage extends EPackage { - /** - * The package name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNAME = "MigrationParameters"; //$NON-NLS-1$ - - /** - * The package namespace URI. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_URI = "http:///MigrationParameters.ecore"; //$NON-NLS-1$ - - /** - * The package namespace name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_PREFIX = "MigrationParameters"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - MigrationParametersPackage eINSTANCE = org.eclipse.papyrus.migration.common.MigrationParameters.impl.MigrationParametersPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.papyrus.migration.common.MigrationParameters.impl.ThreadConfigImpl <em>Thread Config</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.migration.common.MigrationParameters.impl.ThreadConfigImpl - * @see org.eclipse.papyrus.migration.common.MigrationParameters.impl.MigrationParametersPackageImpl#getThreadConfig() - * @generated - */ - int THREAD_CONFIG = 1; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int THREAD_CONFIG__NAME = 0; - - /** - * The feature id for the '<em><b>Max Threads</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int THREAD_CONFIG__MAX_THREADS = 1; - - /** - * The number of structural features of the '<em>Thread Config</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int THREAD_CONFIG_FEATURE_COUNT = 2; - - /** - * The number of operations of the '<em>Thread Config</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int THREAD_CONFIG_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.migration.common.MigrationParameters.impl.AdvancedConfigImpl <em>Advanced Config</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.migration.common.MigrationParameters.impl.AdvancedConfigImpl - * @see org.eclipse.papyrus.migration.common.MigrationParameters.impl.MigrationParametersPackageImpl#getAdvancedConfig() - * @generated - */ - int ADVANCED_CONFIG = 0; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ADVANCED_CONFIG__NAME = THREAD_CONFIG__NAME; - - /** - * The feature id for the '<em><b>Max Threads</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ADVANCED_CONFIG__MAX_THREADS = THREAD_CONFIG__MAX_THREADS; - - /** - * The feature id for the '<em><b>Mapping Parameters</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ADVANCED_CONFIG__MAPPING_PARAMETERS = THREAD_CONFIG_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Remove Unmapped Diagrams</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ADVANCED_CONFIG__REMOVE_UNMAPPED_DIAGRAMS = THREAD_CONFIG_FEATURE_COUNT + 1; - - /** - * The feature id for the '<em><b>Convert Opaque Expression To Literal String</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ADVANCED_CONFIG__CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING = THREAD_CONFIG_FEATURE_COUNT + 2; - - /** - * The feature id for the '<em><b>Remove Unmapped Profiles And Stereotypes</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ADVANCED_CONFIG__REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES = THREAD_CONFIG_FEATURE_COUNT + 3; - - /** - * The feature id for the '<em><b>Remove Unmapped Annotations</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ADVANCED_CONFIG__REMOVE_UNMAPPED_ANNOTATIONS = THREAD_CONFIG_FEATURE_COUNT + 4; - - /** - * The feature id for the '<em><b>Always Accept Suggested Mappings</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ADVANCED_CONFIG__ALWAYS_ACCEPT_SUGGESTED_MAPPINGS = THREAD_CONFIG_FEATURE_COUNT + 5; - - /** - * The number of structural features of the '<em>Advanced Config</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ADVANCED_CONFIG_FEATURE_COUNT = THREAD_CONFIG_FEATURE_COUNT + 6; - - /** - * The number of operations of the '<em>Advanced Config</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int ADVANCED_CONFIG_OPERATION_COUNT = THREAD_CONFIG_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.migration.common.MigrationParameters.impl.MappingParametersImpl <em>Mapping Parameters</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.migration.common.MigrationParameters.impl.MappingParametersImpl - * @see org.eclipse.papyrus.migration.common.MigrationParameters.impl.MigrationParametersPackageImpl#getMappingParameters() - * @generated - */ - int MAPPING_PARAMETERS = 2; - - /** - * The feature id for the '<em><b>Uri Mappings</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MAPPING_PARAMETERS__URI_MAPPINGS = 0; - - /** - * The feature id for the '<em><b>Profile Uri Mappings</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MAPPING_PARAMETERS__PROFILE_URI_MAPPINGS = 1; - - /** - * The number of structural features of the '<em>Mapping Parameters</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MAPPING_PARAMETERS_FEATURE_COUNT = 2; - - /** - * The number of operations of the '<em>Mapping Parameters</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MAPPING_PARAMETERS_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.migration.common.MigrationParameters.impl.URIMappingImpl <em>URI Mapping</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.migration.common.MigrationParameters.impl.URIMappingImpl - * @see org.eclipse.papyrus.migration.common.MigrationParameters.impl.MigrationParametersPackageImpl#getURIMapping() - * @generated - */ - int URI_MAPPING = 3; - - /** - * The feature id for the '<em><b>Source URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int URI_MAPPING__SOURCE_URI = 0; - - /** - * The feature id for the '<em><b>Target URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int URI_MAPPING__TARGET_URI = 1; - - /** - * The number of structural features of the '<em>URI Mapping</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int URI_MAPPING_FEATURE_COUNT = 2; - - /** - * The number of operations of the '<em>URI Mapping</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int URI_MAPPING_OPERATION_COUNT = 0; - - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig <em>Advanced Config</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Advanced Config</em>'. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig - * @generated - */ - EClass getAdvancedConfig(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#getMappingParameters <em>Mapping Parameters</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Mapping Parameters</em>'. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#getMappingParameters() - * @see #getAdvancedConfig() - * @generated - */ - EReference getAdvancedConfig_MappingParameters(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#isRemoveUnmappedDiagrams <em>Remove Unmapped Diagrams</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Remove Unmapped Diagrams</em>'. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#isRemoveUnmappedDiagrams() - * @see #getAdvancedConfig() - * @generated - */ - EAttribute getAdvancedConfig_RemoveUnmappedDiagrams(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#isConvertOpaqueExpressionToLiteralString <em>Convert Opaque Expression To Literal String</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Convert Opaque Expression To Literal String</em>'. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#isConvertOpaqueExpressionToLiteralString() - * @see #getAdvancedConfig() - * @generated - */ - EAttribute getAdvancedConfig_ConvertOpaqueExpressionToLiteralString(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#isRemoveUnmappedProfilesAndStereotypes <em>Remove Unmapped Profiles And Stereotypes</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Remove Unmapped Profiles And Stereotypes</em>'. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#isRemoveUnmappedProfilesAndStereotypes() - * @see #getAdvancedConfig() - * @generated - */ - EAttribute getAdvancedConfig_RemoveUnmappedProfilesAndStereotypes(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#isRemoveUnmappedAnnotations <em>Remove Unmapped Annotations</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Remove Unmapped Annotations</em>'. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#isRemoveUnmappedAnnotations() - * @see #getAdvancedConfig() - * @generated - */ - EAttribute getAdvancedConfig_RemoveUnmappedAnnotations(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#isAlwaysAcceptSuggestedMappings <em>Always Accept Suggested Mappings</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Always Accept Suggested Mappings</em>'. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig#isAlwaysAcceptSuggestedMappings() - * @see #getAdvancedConfig() - * @generated - */ - EAttribute getAdvancedConfig_AlwaysAcceptSuggestedMappings(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.migration.common.MigrationParameters.ThreadConfig <em>Thread Config</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Thread Config</em>'. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.ThreadConfig - * @generated - */ - EClass getThreadConfig(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.common.MigrationParameters.ThreadConfig#getName <em>Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.ThreadConfig#getName() - * @see #getThreadConfig() - * @generated - */ - EAttribute getThreadConfig_Name(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.common.MigrationParameters.ThreadConfig#getMaxThreads <em>Max Threads</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Max Threads</em>'. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.ThreadConfig#getMaxThreads() - * @see #getThreadConfig() - * @generated - */ - EAttribute getThreadConfig_MaxThreads(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.migration.common.MigrationParameters.MappingParameters <em>Mapping Parameters</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Mapping Parameters</em>'. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MappingParameters - * @generated - */ - EClass getMappingParameters(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.migration.common.MigrationParameters.MappingParameters#getUriMappings <em>Uri Mappings</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Uri Mappings</em>'. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MappingParameters#getUriMappings() - * @see #getMappingParameters() - * @generated - */ - EReference getMappingParameters_UriMappings(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.migration.common.MigrationParameters.MappingParameters#getProfileUriMappings <em>Profile Uri Mappings</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Profile Uri Mappings</em>'. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MappingParameters#getProfileUriMappings() - * @see #getMappingParameters() - * @generated - */ - EReference getMappingParameters_ProfileUriMappings(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.migration.common.MigrationParameters.URIMapping <em>URI Mapping</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>URI Mapping</em>'. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.URIMapping - * @generated - */ - EClass getURIMapping(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.common.MigrationParameters.URIMapping#getSourceURI <em>Source URI</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Source URI</em>'. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.URIMapping#getSourceURI() - * @see #getURIMapping() - * @generated - */ - EAttribute getURIMapping_SourceURI(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.common.MigrationParameters.URIMapping#getTargetURI <em>Target URI</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Target URI</em>'. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.URIMapping#getTargetURI() - * @see #getURIMapping() - * @generated - */ - EAttribute getURIMapping_TargetURI(); - - /** - * Returns the factory that creates the instances of the model. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the factory that creates the instances of the model. - * @generated - */ - MigrationParametersFactory getMigrationParametersFactory(); - - /** - * <!-- begin-user-doc --> - * Defines literals for the meta objects that represent - * <ul> - * <li>each class,</li> - * <li>each feature of each class,</li> - * <li>each operation of each class,</li> - * <li>each enum,</li> - * <li>and each data type</li> - * </ul> - * <!-- end-user-doc --> - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.eclipse.papyrus.migration.common.MigrationParameters.impl.AdvancedConfigImpl <em>Advanced Config</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.migration.common.MigrationParameters.impl.AdvancedConfigImpl - * @see org.eclipse.papyrus.migration.common.MigrationParameters.impl.MigrationParametersPackageImpl#getAdvancedConfig() - * @generated - */ - EClass ADVANCED_CONFIG = eINSTANCE.getAdvancedConfig(); - - /** - * The meta object literal for the '<em><b>Mapping Parameters</b></em>' containment reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference ADVANCED_CONFIG__MAPPING_PARAMETERS = eINSTANCE.getAdvancedConfig_MappingParameters(); - - /** - * The meta object literal for the '<em><b>Remove Unmapped Diagrams</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute ADVANCED_CONFIG__REMOVE_UNMAPPED_DIAGRAMS = eINSTANCE.getAdvancedConfig_RemoveUnmappedDiagrams(); - - /** - * The meta object literal for the '<em><b>Convert Opaque Expression To Literal String</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute ADVANCED_CONFIG__CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING = eINSTANCE.getAdvancedConfig_ConvertOpaqueExpressionToLiteralString(); - - /** - * The meta object literal for the '<em><b>Remove Unmapped Profiles And Stereotypes</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute ADVANCED_CONFIG__REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES = eINSTANCE.getAdvancedConfig_RemoveUnmappedProfilesAndStereotypes(); - - /** - * The meta object literal for the '<em><b>Remove Unmapped Annotations</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute ADVANCED_CONFIG__REMOVE_UNMAPPED_ANNOTATIONS = eINSTANCE.getAdvancedConfig_RemoveUnmappedAnnotations(); - - /** - * The meta object literal for the '<em><b>Always Accept Suggested Mappings</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute ADVANCED_CONFIG__ALWAYS_ACCEPT_SUGGESTED_MAPPINGS = eINSTANCE.getAdvancedConfig_AlwaysAcceptSuggestedMappings(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.migration.common.MigrationParameters.impl.ThreadConfigImpl <em>Thread Config</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.migration.common.MigrationParameters.impl.ThreadConfigImpl - * @see org.eclipse.papyrus.migration.common.MigrationParameters.impl.MigrationParametersPackageImpl#getThreadConfig() - * @generated - */ - EClass THREAD_CONFIG = eINSTANCE.getThreadConfig(); - - /** - * The meta object literal for the '<em><b>Name</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute THREAD_CONFIG__NAME = eINSTANCE.getThreadConfig_Name(); - - /** - * The meta object literal for the '<em><b>Max Threads</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute THREAD_CONFIG__MAX_THREADS = eINSTANCE.getThreadConfig_MaxThreads(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.migration.common.MigrationParameters.impl.MappingParametersImpl <em>Mapping Parameters</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.migration.common.MigrationParameters.impl.MappingParametersImpl - * @see org.eclipse.papyrus.migration.common.MigrationParameters.impl.MigrationParametersPackageImpl#getMappingParameters() - * @generated - */ - EClass MAPPING_PARAMETERS = eINSTANCE.getMappingParameters(); - - /** - * The meta object literal for the '<em><b>Uri Mappings</b></em>' containment reference list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference MAPPING_PARAMETERS__URI_MAPPINGS = eINSTANCE.getMappingParameters_UriMappings(); - - /** - * The meta object literal for the '<em><b>Profile Uri Mappings</b></em>' containment reference list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference MAPPING_PARAMETERS__PROFILE_URI_MAPPINGS = eINSTANCE.getMappingParameters_ProfileUriMappings(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.migration.common.MigrationParameters.impl.URIMappingImpl <em>URI Mapping</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.migration.common.MigrationParameters.impl.URIMappingImpl - * @see org.eclipse.papyrus.migration.common.MigrationParameters.impl.MigrationParametersPackageImpl#getURIMapping() - * @generated - */ - EClass URI_MAPPING = eINSTANCE.getURIMapping(); - - /** - * The meta object literal for the '<em><b>Source URI</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute URI_MAPPING__SOURCE_URI = eINSTANCE.getURIMapping_SourceURI(); - - /** - * The meta object literal for the '<em><b>Target URI</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute URI_MAPPING__TARGET_URI = eINSTANCE.getURIMapping_TargetURI(); - - } - -} //MigrationParametersPackage diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/ThreadConfig.java b/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/ThreadConfig.java deleted file mode 100755 index ad9068ece69..00000000000 --- a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/ThreadConfig.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Copyright (c) 2014 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: - * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation - * Vincent Lorenzo (CEA-LIST) vincent.lorenzo@cea.fr - bug 496176 - * - */ -package org.eclipse.papyrus.migration.common.MigrationParameters; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Thread Config</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * </p> - * <ul> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.ThreadConfig#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.ThreadConfig#getMaxThreads <em>Max Threads</em>}</li> - * </ul> - * - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage#getThreadConfig() - * @model - * @generated - */ -public interface ThreadConfig extends EObject { - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage#getThreadConfig_Name() - * @model dataType="org.eclipse.uml2.types.String" required="true" ordered="false" - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.migration.common.MigrationParameters.ThreadConfig#getName <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the '<em><b>Max Threads</b></em>' attribute. - * The default value is <code>"2"</code>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * The maximum number of threads to use during the migration. - * More threads will provide faster results, at the cost of memory consumption. - * <!-- end-model-doc --> - * @return the value of the '<em>Max Threads</em>' attribute. - * @see #setMaxThreads(int) - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage#getThreadConfig_MaxThreads() - * @model default="2" unique="false" dataType="org.eclipse.uml2.types.Integer" required="true" ordered="false" - * @generated - */ - int getMaxThreads(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.migration.common.MigrationParameters.ThreadConfig#getMaxThreads <em>Max Threads</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Max Threads</em>' attribute. - * @see #getMaxThreads() - * @generated - */ - void setMaxThreads(int value); - -} // ThreadConfig diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/URIMapping.java b/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/URIMapping.java deleted file mode 100755 index c027c264008..00000000000 --- a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/URIMapping.java +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Copyright (c) 2014 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: - * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation - * Vincent Lorenzo (CEA-LIST) vincent.lorenzo@cea.fr - bug 496176 - * - */ -package org.eclipse.papyrus.migration.common.MigrationParameters; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>URI Mapping</b></em>'. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * </p> - * <ul> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.URIMapping#getSourceURI <em>Source URI</em>}</li> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.URIMapping#getTargetURI <em>Target URI</em>}</li> - * </ul> - * - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage#getURIMapping() - * @model - * @generated - */ -public interface URIMapping extends EObject { - /** - * Returns the value of the '<em><b>Source URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Source URI</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Source URI</em>' attribute. - * @see #setSourceURI(String) - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage#getURIMapping_SourceURI() - * @model unique="false" dataType="org.eclipse.uml2.types.String" required="true" ordered="false" - * @generated - */ - String getSourceURI(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.migration.common.MigrationParameters.URIMapping#getSourceURI <em>Source URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Source URI</em>' attribute. - * @see #getSourceURI() - * @generated - */ - void setSourceURI(String value); - - /** - * Returns the value of the '<em><b>Target URI</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Target URI</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Target URI</em>' attribute. - * @see #setTargetURI(String) - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage#getURIMapping_TargetURI() - * @model unique="false" dataType="org.eclipse.uml2.types.String" required="true" ordered="false" - * @generated - */ - String getTargetURI(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.migration.common.MigrationParameters.URIMapping#getTargetURI <em>Target URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Target URI</em>' attribute. - * @see #getTargetURI() - * @generated - */ - void setTargetURI(String value); - -} // URIMapping diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/impl/AdvancedConfigImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/impl/AdvancedConfigImpl.java deleted file mode 100755 index 97d4b57f923..00000000000 --- a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/impl/AdvancedConfigImpl.java +++ /dev/null @@ -1,470 +0,0 @@ -/** - * Copyright (c) 2014 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: - * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation - * Vincent Lorenzo (CEA-LIST) vincent.lorenzo@cea.fr - bug 496176 - * - */ -package org.eclipse.papyrus.migration.common.MigrationParameters.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig; -import org.eclipse.papyrus.migration.common.MigrationParameters.MappingParameters; -import org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Advanced Config</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * </p> - * <ul> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.impl.AdvancedConfigImpl#getMappingParameters <em>Mapping Parameters</em>}</li> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.impl.AdvancedConfigImpl#isRemoveUnmappedDiagrams <em>Remove Unmapped Diagrams</em>}</li> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.impl.AdvancedConfigImpl#isConvertOpaqueExpressionToLiteralString <em>Convert Opaque Expression To Literal String</em>}</li> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.impl.AdvancedConfigImpl#isRemoveUnmappedProfilesAndStereotypes <em>Remove Unmapped Profiles And Stereotypes</em>}</li> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.impl.AdvancedConfigImpl#isRemoveUnmappedAnnotations <em>Remove Unmapped Annotations</em>}</li> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.impl.AdvancedConfigImpl#isAlwaysAcceptSuggestedMappings <em>Always Accept Suggested Mappings</em>}</li> - * </ul> - * - * @generated - */ -public class AdvancedConfigImpl extends ThreadConfigImpl implements AdvancedConfig { - /** - * The cached value of the '{@link #getMappingParameters() <em>Mapping Parameters</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMappingParameters() - * @generated - * @ordered - */ - protected MappingParameters mappingParameters; - - /** - * The default value of the '{@link #isRemoveUnmappedDiagrams() <em>Remove Unmapped Diagrams</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isRemoveUnmappedDiagrams() - * @generated - * @ordered - */ - protected static final boolean REMOVE_UNMAPPED_DIAGRAMS_EDEFAULT = false; - - /** - * The cached value of the '{@link #isRemoveUnmappedDiagrams() <em>Remove Unmapped Diagrams</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isRemoveUnmappedDiagrams() - * @generated - * @ordered - */ - protected boolean removeUnmappedDiagrams = REMOVE_UNMAPPED_DIAGRAMS_EDEFAULT; - - /** - * The default value of the '{@link #isConvertOpaqueExpressionToLiteralString() <em>Convert Opaque Expression To Literal String</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isConvertOpaqueExpressionToLiteralString() - * @generated - * @ordered - */ - protected static final boolean CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING_EDEFAULT = true; - - /** - * The cached value of the '{@link #isConvertOpaqueExpressionToLiteralString() <em>Convert Opaque Expression To Literal String</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isConvertOpaqueExpressionToLiteralString() - * @generated - * @ordered - */ - protected boolean convertOpaqueExpressionToLiteralString = CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING_EDEFAULT; - - /** - * The default value of the '{@link #isRemoveUnmappedProfilesAndStereotypes() <em>Remove Unmapped Profiles And Stereotypes</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isRemoveUnmappedProfilesAndStereotypes() - * @generated - * @ordered - */ - protected static final boolean REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES_EDEFAULT = false; - - /** - * The cached value of the '{@link #isRemoveUnmappedProfilesAndStereotypes() <em>Remove Unmapped Profiles And Stereotypes</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isRemoveUnmappedProfilesAndStereotypes() - * @generated - * @ordered - */ - protected boolean removeUnmappedProfilesAndStereotypes = REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES_EDEFAULT; - - /** - * The default value of the '{@link #isRemoveUnmappedAnnotations() <em>Remove Unmapped Annotations</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isRemoveUnmappedAnnotations() - * @generated - * @ordered - */ - protected static final boolean REMOVE_UNMAPPED_ANNOTATIONS_EDEFAULT = false; - - /** - * The cached value of the '{@link #isRemoveUnmappedAnnotations() <em>Remove Unmapped Annotations</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isRemoveUnmappedAnnotations() - * @generated - * @ordered - */ - protected boolean removeUnmappedAnnotations = REMOVE_UNMAPPED_ANNOTATIONS_EDEFAULT; - - /** - * The default value of the '{@link #isAlwaysAcceptSuggestedMappings() <em>Always Accept Suggested Mappings</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isAlwaysAcceptSuggestedMappings() - * @generated - * @ordered - */ - protected static final boolean ALWAYS_ACCEPT_SUGGESTED_MAPPINGS_EDEFAULT = false; - - /** - * The cached value of the '{@link #isAlwaysAcceptSuggestedMappings() <em>Always Accept Suggested Mappings</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isAlwaysAcceptSuggestedMappings() - * @generated - * @ordered - */ - protected boolean alwaysAcceptSuggestedMappings = ALWAYS_ACCEPT_SUGGESTED_MAPPINGS_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected AdvancedConfigImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return MigrationParametersPackage.Literals.ADVANCED_CONFIG; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MappingParameters getMappingParameters() { - return mappingParameters; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetMappingParameters(MappingParameters newMappingParameters, NotificationChain msgs) { - MappingParameters oldMappingParameters = mappingParameters; - mappingParameters = newMappingParameters; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, MigrationParametersPackage.ADVANCED_CONFIG__MAPPING_PARAMETERS, oldMappingParameters, newMappingParameters); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setMappingParameters(MappingParameters newMappingParameters) { - if (newMappingParameters != mappingParameters) { - NotificationChain msgs = null; - if (mappingParameters != null) - msgs = ((InternalEObject)mappingParameters).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - MigrationParametersPackage.ADVANCED_CONFIG__MAPPING_PARAMETERS, null, msgs); - if (newMappingParameters != null) - msgs = ((InternalEObject)newMappingParameters).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - MigrationParametersPackage.ADVANCED_CONFIG__MAPPING_PARAMETERS, null, msgs); - msgs = basicSetMappingParameters(newMappingParameters, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, MigrationParametersPackage.ADVANCED_CONFIG__MAPPING_PARAMETERS, newMappingParameters, newMappingParameters)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isRemoveUnmappedDiagrams() { - return removeUnmappedDiagrams; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setRemoveUnmappedDiagrams(boolean newRemoveUnmappedDiagrams) { - boolean oldRemoveUnmappedDiagrams = removeUnmappedDiagrams; - removeUnmappedDiagrams = newRemoveUnmappedDiagrams; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, MigrationParametersPackage.ADVANCED_CONFIG__REMOVE_UNMAPPED_DIAGRAMS, oldRemoveUnmappedDiagrams, removeUnmappedDiagrams)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isConvertOpaqueExpressionToLiteralString() { - return convertOpaqueExpressionToLiteralString; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setConvertOpaqueExpressionToLiteralString(boolean newConvertOpaqueExpressionToLiteralString) { - boolean oldConvertOpaqueExpressionToLiteralString = convertOpaqueExpressionToLiteralString; - convertOpaqueExpressionToLiteralString = newConvertOpaqueExpressionToLiteralString; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, MigrationParametersPackage.ADVANCED_CONFIG__CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING, oldConvertOpaqueExpressionToLiteralString, convertOpaqueExpressionToLiteralString)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isRemoveUnmappedProfilesAndStereotypes() { - return removeUnmappedProfilesAndStereotypes; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setRemoveUnmappedProfilesAndStereotypes(boolean newRemoveUnmappedProfilesAndStereotypes) { - boolean oldRemoveUnmappedProfilesAndStereotypes = removeUnmappedProfilesAndStereotypes; - removeUnmappedProfilesAndStereotypes = newRemoveUnmappedProfilesAndStereotypes; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, MigrationParametersPackage.ADVANCED_CONFIG__REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES, oldRemoveUnmappedProfilesAndStereotypes, removeUnmappedProfilesAndStereotypes)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isRemoveUnmappedAnnotations() { - return removeUnmappedAnnotations; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setRemoveUnmappedAnnotations(boolean newRemoveUnmappedAnnotations) { - boolean oldRemoveUnmappedAnnotations = removeUnmappedAnnotations; - removeUnmappedAnnotations = newRemoveUnmappedAnnotations; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, MigrationParametersPackage.ADVANCED_CONFIG__REMOVE_UNMAPPED_ANNOTATIONS, oldRemoveUnmappedAnnotations, removeUnmappedAnnotations)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isAlwaysAcceptSuggestedMappings() { - return alwaysAcceptSuggestedMappings; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setAlwaysAcceptSuggestedMappings(boolean newAlwaysAcceptSuggestedMappings) { - boolean oldAlwaysAcceptSuggestedMappings = alwaysAcceptSuggestedMappings; - alwaysAcceptSuggestedMappings = newAlwaysAcceptSuggestedMappings; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, MigrationParametersPackage.ADVANCED_CONFIG__ALWAYS_ACCEPT_SUGGESTED_MAPPINGS, oldAlwaysAcceptSuggestedMappings, alwaysAcceptSuggestedMappings)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case MigrationParametersPackage.ADVANCED_CONFIG__MAPPING_PARAMETERS: - return basicSetMappingParameters(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case MigrationParametersPackage.ADVANCED_CONFIG__MAPPING_PARAMETERS: - return getMappingParameters(); - case MigrationParametersPackage.ADVANCED_CONFIG__REMOVE_UNMAPPED_DIAGRAMS: - return isRemoveUnmappedDiagrams(); - case MigrationParametersPackage.ADVANCED_CONFIG__CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING: - return isConvertOpaqueExpressionToLiteralString(); - case MigrationParametersPackage.ADVANCED_CONFIG__REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES: - return isRemoveUnmappedProfilesAndStereotypes(); - case MigrationParametersPackage.ADVANCED_CONFIG__REMOVE_UNMAPPED_ANNOTATIONS: - return isRemoveUnmappedAnnotations(); - case MigrationParametersPackage.ADVANCED_CONFIG__ALWAYS_ACCEPT_SUGGESTED_MAPPINGS: - return isAlwaysAcceptSuggestedMappings(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case MigrationParametersPackage.ADVANCED_CONFIG__MAPPING_PARAMETERS: - setMappingParameters((MappingParameters)newValue); - return; - case MigrationParametersPackage.ADVANCED_CONFIG__REMOVE_UNMAPPED_DIAGRAMS: - setRemoveUnmappedDiagrams((Boolean)newValue); - return; - case MigrationParametersPackage.ADVANCED_CONFIG__CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING: - setConvertOpaqueExpressionToLiteralString((Boolean)newValue); - return; - case MigrationParametersPackage.ADVANCED_CONFIG__REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES: - setRemoveUnmappedProfilesAndStereotypes((Boolean)newValue); - return; - case MigrationParametersPackage.ADVANCED_CONFIG__REMOVE_UNMAPPED_ANNOTATIONS: - setRemoveUnmappedAnnotations((Boolean)newValue); - return; - case MigrationParametersPackage.ADVANCED_CONFIG__ALWAYS_ACCEPT_SUGGESTED_MAPPINGS: - setAlwaysAcceptSuggestedMappings((Boolean)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case MigrationParametersPackage.ADVANCED_CONFIG__MAPPING_PARAMETERS: - setMappingParameters((MappingParameters)null); - return; - case MigrationParametersPackage.ADVANCED_CONFIG__REMOVE_UNMAPPED_DIAGRAMS: - setRemoveUnmappedDiagrams(REMOVE_UNMAPPED_DIAGRAMS_EDEFAULT); - return; - case MigrationParametersPackage.ADVANCED_CONFIG__CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING: - setConvertOpaqueExpressionToLiteralString(CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING_EDEFAULT); - return; - case MigrationParametersPackage.ADVANCED_CONFIG__REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES: - setRemoveUnmappedProfilesAndStereotypes(REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES_EDEFAULT); - return; - case MigrationParametersPackage.ADVANCED_CONFIG__REMOVE_UNMAPPED_ANNOTATIONS: - setRemoveUnmappedAnnotations(REMOVE_UNMAPPED_ANNOTATIONS_EDEFAULT); - return; - case MigrationParametersPackage.ADVANCED_CONFIG__ALWAYS_ACCEPT_SUGGESTED_MAPPINGS: - setAlwaysAcceptSuggestedMappings(ALWAYS_ACCEPT_SUGGESTED_MAPPINGS_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case MigrationParametersPackage.ADVANCED_CONFIG__MAPPING_PARAMETERS: - return mappingParameters != null; - case MigrationParametersPackage.ADVANCED_CONFIG__REMOVE_UNMAPPED_DIAGRAMS: - return removeUnmappedDiagrams != REMOVE_UNMAPPED_DIAGRAMS_EDEFAULT; - case MigrationParametersPackage.ADVANCED_CONFIG__CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING: - return convertOpaqueExpressionToLiteralString != CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING_EDEFAULT; - case MigrationParametersPackage.ADVANCED_CONFIG__REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES: - return removeUnmappedProfilesAndStereotypes != REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES_EDEFAULT; - case MigrationParametersPackage.ADVANCED_CONFIG__REMOVE_UNMAPPED_ANNOTATIONS: - return removeUnmappedAnnotations != REMOVE_UNMAPPED_ANNOTATIONS_EDEFAULT; - case MigrationParametersPackage.ADVANCED_CONFIG__ALWAYS_ACCEPT_SUGGESTED_MAPPINGS: - return alwaysAcceptSuggestedMappings != ALWAYS_ACCEPT_SUGGESTED_MAPPINGS_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (removeUnmappedDiagrams: "); //$NON-NLS-1$ - result.append(removeUnmappedDiagrams); - result.append(", convertOpaqueExpressionToLiteralString: "); //$NON-NLS-1$ - result.append(convertOpaqueExpressionToLiteralString); - result.append(", removeUnmappedProfilesAndStereotypes: "); //$NON-NLS-1$ - result.append(removeUnmappedProfilesAndStereotypes); - result.append(", removeUnmappedAnnotations: "); //$NON-NLS-1$ - result.append(removeUnmappedAnnotations); - result.append(", alwaysAcceptSuggestedMappings: "); //$NON-NLS-1$ - result.append(alwaysAcceptSuggestedMappings); - result.append(')'); - return result.toString(); - } - -} //AdvancedConfigImpl diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/impl/MappingParametersImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/impl/MappingParametersImpl.java deleted file mode 100755 index 533c5f1c5fb..00000000000 --- a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/impl/MappingParametersImpl.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Copyright (c) 2014 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: - * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation - * Vincent Lorenzo (CEA-LIST) vincent.lorenzo@cea.fr - bug 496176 - * - */ -package org.eclipse.papyrus.migration.common.MigrationParameters.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.papyrus.migration.common.MigrationParameters.MappingParameters; -import org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage; -import org.eclipse.papyrus.migration.common.MigrationParameters.URIMapping; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Mapping Parameters</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * </p> - * <ul> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.impl.MappingParametersImpl#getUriMappings <em>Uri Mappings</em>}</li> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.impl.MappingParametersImpl#getProfileUriMappings <em>Profile Uri Mappings</em>}</li> - * </ul> - * - * @generated - */ -public class MappingParametersImpl extends MinimalEObjectImpl.Container implements MappingParameters { - /** - * The cached value of the '{@link #getUriMappings() <em>Uri Mappings</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getUriMappings() - * @generated - * @ordered - */ - protected EList<URIMapping> uriMappings; - - /** - * The cached value of the '{@link #getProfileUriMappings() <em>Profile Uri Mappings</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getProfileUriMappings() - * @generated - * @ordered - */ - protected EList<URIMapping> profileUriMappings; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected MappingParametersImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return MigrationParametersPackage.Literals.MAPPING_PARAMETERS; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList<URIMapping> getUriMappings() { - if (uriMappings == null) { - uriMappings = new EObjectContainmentEList<URIMapping>(URIMapping.class, this, MigrationParametersPackage.MAPPING_PARAMETERS__URI_MAPPINGS); - } - return uriMappings; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList<URIMapping> getProfileUriMappings() { - if (profileUriMappings == null) { - profileUriMappings = new EObjectContainmentEList<URIMapping>(URIMapping.class, this, MigrationParametersPackage.MAPPING_PARAMETERS__PROFILE_URI_MAPPINGS); - } - return profileUriMappings; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case MigrationParametersPackage.MAPPING_PARAMETERS__URI_MAPPINGS: - return ((InternalEList<?>)getUriMappings()).basicRemove(otherEnd, msgs); - case MigrationParametersPackage.MAPPING_PARAMETERS__PROFILE_URI_MAPPINGS: - return ((InternalEList<?>)getProfileUriMappings()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case MigrationParametersPackage.MAPPING_PARAMETERS__URI_MAPPINGS: - return getUriMappings(); - case MigrationParametersPackage.MAPPING_PARAMETERS__PROFILE_URI_MAPPINGS: - return getProfileUriMappings(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case MigrationParametersPackage.MAPPING_PARAMETERS__URI_MAPPINGS: - getUriMappings().clear(); - getUriMappings().addAll((Collection<? extends URIMapping>)newValue); - return; - case MigrationParametersPackage.MAPPING_PARAMETERS__PROFILE_URI_MAPPINGS: - getProfileUriMappings().clear(); - getProfileUriMappings().addAll((Collection<? extends URIMapping>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case MigrationParametersPackage.MAPPING_PARAMETERS__URI_MAPPINGS: - getUriMappings().clear(); - return; - case MigrationParametersPackage.MAPPING_PARAMETERS__PROFILE_URI_MAPPINGS: - getProfileUriMappings().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case MigrationParametersPackage.MAPPING_PARAMETERS__URI_MAPPINGS: - return uriMappings != null && !uriMappings.isEmpty(); - case MigrationParametersPackage.MAPPING_PARAMETERS__PROFILE_URI_MAPPINGS: - return profileUriMappings != null && !profileUriMappings.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //MappingParametersImpl diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/impl/MigrationParametersFactoryImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/impl/MigrationParametersFactoryImpl.java deleted file mode 100755 index 92ae1d7bf4c..00000000000 --- a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/impl/MigrationParametersFactoryImpl.java +++ /dev/null @@ -1,139 +0,0 @@ -/** - * Copyright (c) 2014 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: - * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation - * Vincent Lorenzo (CEA-LIST) vincent.lorenzo@cea.fr - bug 496176 - * - */ -package org.eclipse.papyrus.migration.common.MigrationParameters.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.migration.common.MigrationParameters.*; - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Factory</b>. - * <!-- end-user-doc --> - * @generated - */ -public class MigrationParametersFactoryImpl extends EFactoryImpl implements MigrationParametersFactory { - /** - * Creates the default factory implementation. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static MigrationParametersFactory init() { - try { - MigrationParametersFactory theMigrationParametersFactory = (MigrationParametersFactory)EPackage.Registry.INSTANCE.getEFactory(MigrationParametersPackage.eNS_URI); - if (theMigrationParametersFactory != null) { - return theMigrationParametersFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new MigrationParametersFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MigrationParametersFactoryImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case MigrationParametersPackage.ADVANCED_CONFIG: return createAdvancedConfig(); - case MigrationParametersPackage.THREAD_CONFIG: return createThreadConfig(); - case MigrationParametersPackage.MAPPING_PARAMETERS: return createMappingParameters(); - case MigrationParametersPackage.URI_MAPPING: return createURIMapping(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public AdvancedConfig createAdvancedConfig() { - AdvancedConfigImpl advancedConfig = new AdvancedConfigImpl(); - return advancedConfig; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ThreadConfig createThreadConfig() { - ThreadConfigImpl threadConfig = new ThreadConfigImpl(); - return threadConfig; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MappingParameters createMappingParameters() { - MappingParametersImpl mappingParameters = new MappingParametersImpl(); - return mappingParameters; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public URIMapping createURIMapping() { - URIMappingImpl uriMapping = new URIMappingImpl(); - return uriMapping; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MigrationParametersPackage getMigrationParametersPackage() { - return (MigrationParametersPackage)getEPackage(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @deprecated - * @generated - */ - @Deprecated - public static MigrationParametersPackage getPackage() { - return MigrationParametersPackage.eINSTANCE; - } - -} //MigrationParametersFactoryImpl diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/impl/MigrationParametersPackageImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/impl/MigrationParametersPackageImpl.java deleted file mode 100755 index f084b3f6a18..00000000000 --- a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/impl/MigrationParametersPackageImpl.java +++ /dev/null @@ -1,382 +0,0 @@ -/** - * Copyright (c) 2014 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: - * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation - * Vincent Lorenzo (CEA-LIST) vincent.lorenzo@cea.fr - bug 496176 - * - */ -package org.eclipse.papyrus.migration.common.MigrationParameters.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -import org.eclipse.emf.ecore.impl.EPackageImpl; - -import org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig; -import org.eclipse.papyrus.migration.common.MigrationParameters.MappingParameters; -import org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersFactory; -import org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage; -import org.eclipse.papyrus.migration.common.MigrationParameters.ThreadConfig; -import org.eclipse.papyrus.migration.common.MigrationParameters.URIMapping; - -import org.eclipse.uml2.types.TypesPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Package</b>. - * <!-- end-user-doc --> - * @generated - */ -public class MigrationParametersPackageImpl extends EPackageImpl implements MigrationParametersPackage { - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass advancedConfigEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass threadConfigEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass mappingParametersEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass uriMappingEClass = null; - - /** - * Creates an instance of the model <b>Package</b>, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - * <p>Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage#eNS_URI - * @see #init() - * @generated - */ - private MigrationParametersPackageImpl() { - super(eNS_URI, MigrationParametersFactory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. - * - * <p>This method is used to initialize {@link MigrationParametersPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static MigrationParametersPackage init() { - if (isInited) return (MigrationParametersPackage)EPackage.Registry.INSTANCE.getEPackage(MigrationParametersPackage.eNS_URI); - - // Obtain or create and register package - MigrationParametersPackageImpl theMigrationParametersPackage = (MigrationParametersPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof MigrationParametersPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new MigrationParametersPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - TypesPackage.eINSTANCE.eClass(); - - // Create package meta-data objects - theMigrationParametersPackage.createPackageContents(); - - // Initialize created meta-data - theMigrationParametersPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theMigrationParametersPackage.freeze(); - - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(MigrationParametersPackage.eNS_URI, theMigrationParametersPackage); - return theMigrationParametersPackage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getAdvancedConfig() { - return advancedConfigEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getAdvancedConfig_MappingParameters() { - return (EReference)advancedConfigEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getAdvancedConfig_RemoveUnmappedDiagrams() { - return (EAttribute)advancedConfigEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getAdvancedConfig_ConvertOpaqueExpressionToLiteralString() { - return (EAttribute)advancedConfigEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getAdvancedConfig_RemoveUnmappedProfilesAndStereotypes() { - return (EAttribute)advancedConfigEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getAdvancedConfig_RemoveUnmappedAnnotations() { - return (EAttribute)advancedConfigEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getAdvancedConfig_AlwaysAcceptSuggestedMappings() { - return (EAttribute)advancedConfigEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getThreadConfig() { - return threadConfigEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getThreadConfig_Name() { - return (EAttribute)threadConfigEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getThreadConfig_MaxThreads() { - return (EAttribute)threadConfigEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getMappingParameters() { - return mappingParametersEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getMappingParameters_UriMappings() { - return (EReference)mappingParametersEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getMappingParameters_ProfileUriMappings() { - return (EReference)mappingParametersEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getURIMapping() { - return uriMappingEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getURIMapping_SourceURI() { - return (EAttribute)uriMappingEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getURIMapping_TargetURI() { - return (EAttribute)uriMappingEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MigrationParametersFactory getMigrationParametersFactory() { - return (MigrationParametersFactory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - advancedConfigEClass = createEClass(ADVANCED_CONFIG); - createEReference(advancedConfigEClass, ADVANCED_CONFIG__MAPPING_PARAMETERS); - createEAttribute(advancedConfigEClass, ADVANCED_CONFIG__REMOVE_UNMAPPED_DIAGRAMS); - createEAttribute(advancedConfigEClass, ADVANCED_CONFIG__CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING); - createEAttribute(advancedConfigEClass, ADVANCED_CONFIG__REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES); - createEAttribute(advancedConfigEClass, ADVANCED_CONFIG__REMOVE_UNMAPPED_ANNOTATIONS); - createEAttribute(advancedConfigEClass, ADVANCED_CONFIG__ALWAYS_ACCEPT_SUGGESTED_MAPPINGS); - - threadConfigEClass = createEClass(THREAD_CONFIG); - createEAttribute(threadConfigEClass, THREAD_CONFIG__NAME); - createEAttribute(threadConfigEClass, THREAD_CONFIG__MAX_THREADS); - - mappingParametersEClass = createEClass(MAPPING_PARAMETERS); - createEReference(mappingParametersEClass, MAPPING_PARAMETERS__URI_MAPPINGS); - createEReference(mappingParametersEClass, MAPPING_PARAMETERS__PROFILE_URI_MAPPINGS); - - uriMappingEClass = createEClass(URI_MAPPING); - createEAttribute(uriMappingEClass, URI_MAPPING__SOURCE_URI); - createEAttribute(uriMappingEClass, URI_MAPPING__TARGET_URI); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - TypesPackage theTypesPackage = (TypesPackage)EPackage.Registry.INSTANCE.getEPackage(TypesPackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - advancedConfigEClass.getESuperTypes().add(this.getThreadConfig()); - - // Initialize classes, features, and operations; add parameters - initEClass(advancedConfigEClass, AdvancedConfig.class, "AdvancedConfig", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getAdvancedConfig_MappingParameters(), this.getMappingParameters(), null, "mappingParameters", null, 1, 1, AdvancedConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getAdvancedConfig_RemoveUnmappedDiagrams(), theTypesPackage.getBoolean(), "removeUnmappedDiagrams", "false", 1, 1, AdvancedConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getAdvancedConfig_ConvertOpaqueExpressionToLiteralString(), theTypesPackage.getBoolean(), "convertOpaqueExpressionToLiteralString", "true", 1, 1, AdvancedConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getAdvancedConfig_RemoveUnmappedProfilesAndStereotypes(), theTypesPackage.getBoolean(), "removeUnmappedProfilesAndStereotypes", "false", 1, 1, AdvancedConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getAdvancedConfig_RemoveUnmappedAnnotations(), theTypesPackage.getBoolean(), "removeUnmappedAnnotations", "false", 1, 1, AdvancedConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getAdvancedConfig_AlwaysAcceptSuggestedMappings(), theTypesPackage.getBoolean(), "alwaysAcceptSuggestedMappings", "false", 1, 1, AdvancedConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - - initEClass(threadConfigEClass, ThreadConfig.class, "ThreadConfig", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getThreadConfig_Name(), theTypesPackage.getString(), "name", null, 1, 1, ThreadConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getThreadConfig_MaxThreads(), theTypesPackage.getInteger(), "maxThreads", "2", 1, 1, ThreadConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - - initEClass(mappingParametersEClass, MappingParameters.class, "MappingParameters", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getMappingParameters_UriMappings(), this.getURIMapping(), null, "uriMappings", null, 0, -1, MappingParameters.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ - initEReference(getMappingParameters_ProfileUriMappings(), this.getURIMapping(), null, "profileUriMappings", null, 0, -1, MappingParameters.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ - - initEClass(uriMappingEClass, URIMapping.class, "URIMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getURIMapping_SourceURI(), theTypesPackage.getString(), "sourceURI", null, 1, 1, URIMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getURIMapping_TargetURI(), theTypesPackage.getString(), "targetURI", null, 1, 1, URIMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ - - // Create resource - createResource(eNS_URI); - } - -} //MigrationParametersPackageImpl diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/impl/ThreadConfigImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/impl/ThreadConfigImpl.java deleted file mode 100755 index 7291a4ae9a0..00000000000 --- a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/impl/ThreadConfigImpl.java +++ /dev/null @@ -1,228 +0,0 @@ -/** - * Copyright (c) 2014 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: - * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation - * Vincent Lorenzo (CEA-LIST) vincent.lorenzo@cea.fr - bug 496176 - * - */ -package org.eclipse.papyrus.migration.common.MigrationParameters.impl; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage; -import org.eclipse.papyrus.migration.common.MigrationParameters.ThreadConfig; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Thread Config</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * </p> - * <ul> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.impl.ThreadConfigImpl#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.impl.ThreadConfigImpl#getMaxThreads <em>Max Threads</em>}</li> - * </ul> - * - * @generated - */ -public class ThreadConfigImpl extends MinimalEObjectImpl.Container implements ThreadConfig { - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * The default value of the '{@link #getMaxThreads() <em>Max Threads</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMaxThreads() - * @generated - * @ordered - */ - protected static final int MAX_THREADS_EDEFAULT = 2; - - /** - * The cached value of the '{@link #getMaxThreads() <em>Max Threads</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMaxThreads() - * @generated - * @ordered - */ - protected int maxThreads = MAX_THREADS_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ThreadConfigImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return MigrationParametersPackage.Literals.THREAD_CONFIG; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getName() { - return name; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, MigrationParametersPackage.THREAD_CONFIG__NAME, oldName, name)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public int getMaxThreads() { - return maxThreads; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setMaxThreads(int newMaxThreads) { - int oldMaxThreads = maxThreads; - maxThreads = newMaxThreads; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, MigrationParametersPackage.THREAD_CONFIG__MAX_THREADS, oldMaxThreads, maxThreads)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case MigrationParametersPackage.THREAD_CONFIG__NAME: - return getName(); - case MigrationParametersPackage.THREAD_CONFIG__MAX_THREADS: - return getMaxThreads(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case MigrationParametersPackage.THREAD_CONFIG__NAME: - setName((String)newValue); - return; - case MigrationParametersPackage.THREAD_CONFIG__MAX_THREADS: - setMaxThreads((Integer)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case MigrationParametersPackage.THREAD_CONFIG__NAME: - setName(NAME_EDEFAULT); - return; - case MigrationParametersPackage.THREAD_CONFIG__MAX_THREADS: - setMaxThreads(MAX_THREADS_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case MigrationParametersPackage.THREAD_CONFIG__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case MigrationParametersPackage.THREAD_CONFIG__MAX_THREADS: - return maxThreads != MAX_THREADS_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); //$NON-NLS-1$ - result.append(name); - result.append(", maxThreads: "); //$NON-NLS-1$ - result.append(maxThreads); - result.append(')'); - return result.toString(); - } - -} //ThreadConfigImpl diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/impl/URIMappingImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/impl/URIMappingImpl.java deleted file mode 100755 index 72b70b6e13f..00000000000 --- a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/impl/URIMappingImpl.java +++ /dev/null @@ -1,228 +0,0 @@ -/** - * Copyright (c) 2014 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: - * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation - * Vincent Lorenzo (CEA-LIST) vincent.lorenzo@cea.fr - bug 496176 - * - */ -package org.eclipse.papyrus.migration.common.MigrationParameters.impl; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage; -import org.eclipse.papyrus.migration.common.MigrationParameters.URIMapping; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>URI Mapping</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * </p> - * <ul> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.impl.URIMappingImpl#getSourceURI <em>Source URI</em>}</li> - * <li>{@link org.eclipse.papyrus.migration.common.MigrationParameters.impl.URIMappingImpl#getTargetURI <em>Target URI</em>}</li> - * </ul> - * - * @generated - */ -public class URIMappingImpl extends MinimalEObjectImpl.Container implements URIMapping { - /** - * The default value of the '{@link #getSourceURI() <em>Source URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSourceURI() - * @generated - * @ordered - */ - protected static final String SOURCE_URI_EDEFAULT = null; - - /** - * The cached value of the '{@link #getSourceURI() <em>Source URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSourceURI() - * @generated - * @ordered - */ - protected String sourceURI = SOURCE_URI_EDEFAULT; - - /** - * The default value of the '{@link #getTargetURI() <em>Target URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTargetURI() - * @generated - * @ordered - */ - protected static final String TARGET_URI_EDEFAULT = null; - - /** - * The cached value of the '{@link #getTargetURI() <em>Target URI</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTargetURI() - * @generated - * @ordered - */ - protected String targetURI = TARGET_URI_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected URIMappingImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return MigrationParametersPackage.Literals.URI_MAPPING; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getSourceURI() { - return sourceURI; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setSourceURI(String newSourceURI) { - String oldSourceURI = sourceURI; - sourceURI = newSourceURI; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, MigrationParametersPackage.URI_MAPPING__SOURCE_URI, oldSourceURI, sourceURI)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getTargetURI() { - return targetURI; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setTargetURI(String newTargetURI) { - String oldTargetURI = targetURI; - targetURI = newTargetURI; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, MigrationParametersPackage.URI_MAPPING__TARGET_URI, oldTargetURI, targetURI)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case MigrationParametersPackage.URI_MAPPING__SOURCE_URI: - return getSourceURI(); - case MigrationParametersPackage.URI_MAPPING__TARGET_URI: - return getTargetURI(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case MigrationParametersPackage.URI_MAPPING__SOURCE_URI: - setSourceURI((String)newValue); - return; - case MigrationParametersPackage.URI_MAPPING__TARGET_URI: - setTargetURI((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case MigrationParametersPackage.URI_MAPPING__SOURCE_URI: - setSourceURI(SOURCE_URI_EDEFAULT); - return; - case MigrationParametersPackage.URI_MAPPING__TARGET_URI: - setTargetURI(TARGET_URI_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case MigrationParametersPackage.URI_MAPPING__SOURCE_URI: - return SOURCE_URI_EDEFAULT == null ? sourceURI != null : !SOURCE_URI_EDEFAULT.equals(sourceURI); - case MigrationParametersPackage.URI_MAPPING__TARGET_URI: - return TARGET_URI_EDEFAULT == null ? targetURI != null : !TARGET_URI_EDEFAULT.equals(targetURI); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (sourceURI: "); //$NON-NLS-1$ - result.append(sourceURI); - result.append(", targetURI: "); //$NON-NLS-1$ - result.append(targetURI); - result.append(')'); - return result.toString(); - } - -} //URIMappingImpl diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/util/MigrationParametersAdapterFactory.java b/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/util/MigrationParametersAdapterFactory.java deleted file mode 100755 index 9be5025a8e2..00000000000 --- a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/util/MigrationParametersAdapterFactory.java +++ /dev/null @@ -1,185 +0,0 @@ -/** - * Copyright (c) 2014 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: - * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation - * Vincent Lorenzo (CEA-LIST) vincent.lorenzo@cea.fr - bug 496176 - * - */ -package org.eclipse.papyrus.migration.common.MigrationParameters.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; - -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.papyrus.migration.common.MigrationParameters.*; - -/** - * <!-- begin-user-doc --> - * The <b>Adapter Factory</b> for the model. - * It provides an adapter <code>createXXX</code> method for each class of the model. - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MigrationParametersPackage - * @generated - */ -public class MigrationParametersAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static MigrationParametersPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MigrationParametersAdapterFactory() { - if (modelPackage == null) { - modelPackage = MigrationParametersPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * <!-- begin-user-doc --> - * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. - * <!-- end-user-doc --> - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the <code>createXXX</code> methods. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected MigrationParametersSwitch<Adapter> modelSwitch = - new MigrationParametersSwitch<Adapter>() { - @Override - public Adapter caseAdvancedConfig(AdvancedConfig object) { - return createAdvancedConfigAdapter(); - } - @Override - public Adapter caseThreadConfig(ThreadConfig object) { - return createThreadConfigAdapter(); - } - @Override - public Adapter caseMappingParameters(MappingParameters object) { - return createMappingParametersAdapter(); - } - @Override - public Adapter caseURIMapping(URIMapping object) { - return createURIMappingAdapter(); - } - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the <code>target</code>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param target the object to adapt. - * @return the adapter for the <code>target</code>. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject)target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig <em>Advanced Config</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.AdvancedConfig - * @generated - */ - public Adapter createAdvancedConfigAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.common.MigrationParameters.ThreadConfig <em>Thread Config</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.ThreadConfig - * @generated - */ - public Adapter createThreadConfigAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.common.MigrationParameters.MappingParameters <em>Mapping Parameters</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.MappingParameters - * @generated - */ - public Adapter createMappingParametersAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.common.MigrationParameters.URIMapping <em>URI Mapping</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.migration.common.MigrationParameters.URIMapping - * @generated - */ - public Adapter createURIMappingAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * <!-- begin-user-doc --> - * This default implementation returns null. - * <!-- end-user-doc --> - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //MigrationParametersAdapterFactory diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/util/MigrationParametersSwitch.java b/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/util/MigrationParametersSwitch.java deleted file mode 100755 index 33aed826844..00000000000 --- a/extraplugins/migration/org.eclipse.papyrus.migration.common/src-gen/org/eclipse/papyrus/migration/common/MigrationParameters/util/MigrationParametersSwitch.java +++ /dev/null @@ -1,185 +0,0 @@ -/** - * Copyright (c) 2014 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: - * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation - * Vincent Lorenzo (CEA-LIST) vincent.lorenzo@cea.fr - bug 496176 - * - */ -package org.eclipse.papyrus.migration.common.MigrationParameters.util; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.util.Switch; - -import org.eclipse.papyrus.migration.common.MigrationParameters.*; - -/** - * <!-- 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.papyrus.migration.common.MigrationParameters.MigrationParametersPackage - * @generated - */ -public class MigrationParametersSwitch<T> extends Switch<T> { - /** - * The cached model package - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static MigrationParametersPackage modelPackage; - - /** - * Creates an instance of the switch. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MigrationParametersSwitch() { - if (modelPackage == null) { - modelPackage = MigrationParametersPackage.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 MigrationParametersPackage.ADVANCED_CONFIG: { - AdvancedConfig advancedConfig = (AdvancedConfig)theEObject; - T result = caseAdvancedConfig(advancedConfig); - if (result == null) result = caseThreadConfig(advancedConfig); - if (result == null) result = defaultCase(theEObject); - return result; - } - case MigrationParametersPackage.THREAD_CONFIG: { - ThreadConfig threadConfig = (ThreadConfig)theEObject; - T result = caseThreadConfig(threadConfig); - if (result == null) result = defaultCase(theEObject); - return result; - } - case MigrationParametersPackage.MAPPING_PARAMETERS: { - MappingParameters mappingParameters = (MappingParameters)theEObject; - T result = caseMappingParameters(mappingParameters); - if (result == null) result = defaultCase(theEObject); - return result; - } - case MigrationParametersPackage.URI_MAPPING: { - URIMapping uriMapping = (URIMapping)theEObject; - T result = caseURIMapping(uriMapping); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Advanced Config</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>Advanced Config</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAdvancedConfig(AdvancedConfig object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Thread Config</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>Thread Config</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseThreadConfig(ThreadConfig object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Mapping Parameters</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>Mapping Parameters</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseMappingParameters(MappingParameters object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>URI Mapping</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>URI Mapping</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseURIMapping(URIMapping 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; - } - -} //MigrationParametersSwitch |