From d98116b5b376f18b6cf626ba4158a35fe9a4a64e Mon Sep 17 00:00:00 2001
From: Quentin Le Menez
Date: Tue, 9 Jan 2018 11:09:46 +0100
Subject: Bug 515367 - [releng] Uniformization of the end of lines to Unix
standard
- Format the EOL of all the files matched by: grep -rIUs . | xargs -Ifile dos2unix -k 'file'
Change-Id: I5c41d540a9a67b50de9b912ab35e16cc9a912961
Signed-off-by: Quentin Le Menez August 31, 2012 The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
-at http://www.eclipse.org/legal/epl-v10.html.
-For purposes of the EPL, "Program" will mean the Content. If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party ("Redistributor") and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at http://www.eclipse.org. August 31, 2012 The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
+at http://www.eclipse.org/legal/epl-v10.html.
+For purposes of the EPL, "Program" will mean the Content. If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party ("Redistributor") and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at http://www.eclipse.org.
- * The following features are supported:
- * About This Content
-
-License
-
-About This Content
+
+License
+
+
- *
- *
- * If the meaning of the 'Context' reference isn't clear, there really should be more of a description here... - *
- * - * - * @return the value of the 'Context' reference. - * @see #setContext(EClassifier) - * @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage#getOclQuery_Context() - * @model - * @generated - */ - EClassifier getContext(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery#getContext Context}' reference. - * - * - * - * @param value - * the new value of the 'Context' reference. - * @see #getContext() - * @generated - */ - void setContext(EClassifier value); - - /** - * Returns the value of the 'Ocl Expression' attribute. - * - *- * If the meaning of the 'Ocl Expression' attribute isn't clear, there really should be more of a description here... - *
- * - * - * @return the value of the 'Ocl Expression' attribute. - * @see #setOclExpression(String) - * @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage#getOclQuery_OclExpression() - * @model - * @generated - */ - String getOclExpression(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery#getOclExpression Ocl Expression}' attribute. - * - * - * - * @param value - * the new value of the 'Ocl Expression' attribute. - * @see #getOclExpression() - * @generated - */ - void setOclExpression(String value); - - /** - * - * - * - * @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return getOclExpression();'" - * @generated - */ - @Override - String toString(); - -} // OclQuery +/** + * Copyright (c) 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors + * + * + */ +package org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery; + +import org.eclipse.emf.ecore.EClassifier; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query; + +/** + * + * A representation of the model object 'Ocl Query'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Context' reference isn't clear, there really should be more of a description here... + *
+ * + * + * @return the value of the 'Context' reference. + * @see #setContext(EClassifier) + * @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage#getOclQuery_Context() + * @model + * @generated + */ + EClassifier getContext(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery#getContext Context}' reference. + * + * + * + * @param value + * the new value of the 'Context' reference. + * @see #getContext() + * @generated + */ + void setContext(EClassifier value); + + /** + * Returns the value of the 'Ocl Expression' attribute. + * + *+ * If the meaning of the 'Ocl Expression' attribute isn't clear, there really should be more of a description here... + *
+ * + * + * @return the value of the 'Ocl Expression' attribute. + * @see #setOclExpression(String) + * @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage#getOclQuery_OclExpression() + * @model + * @generated + */ + String getOclExpression(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery#getOclExpression Ocl Expression}' attribute. + * + * + * + * @param value + * the new value of the 'Ocl Expression' attribute. + * @see #getOclExpression() + * @generated + */ + void setOclExpression(String value); + + /** + * + * + * + * @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return getOclExpression();'" + * @generated + */ + @Override + String toString(); + +} // OclQuery diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQueryFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQueryFactory.java index 373563308a6..35f19c50b85 100644 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQueryFactory.java +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQueryFactory.java @@ -1,57 +1,57 @@ -/** - * Copyright (c) 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors - * - * - */ -package org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * - * @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage - * @generated - */ -public interface OclQueryFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * - * @generated - */ - OclQueryFactory eINSTANCE = org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.impl.OclQueryFactoryImpl.init(); - - /** - * Returns a new object of class 'Ocl Query'. - * - * - * - * @return a new object of class 'Ocl Query'. - * @generated - */ - OclQuery createOclQuery(); - - /** - * Returns the package supported by this factory. - * - * - * - * @return the package supported by this factory. - * @generated - */ - OclQueryPackage getOclQueryPackage(); - -} // OclQueryFactory +/** + * Copyright (c) 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors + * + * + */ +package org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * + * @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage + * @generated + */ +public interface OclQueryFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * + * @generated + */ + OclQueryFactory eINSTANCE = org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.impl.OclQueryFactoryImpl.init(); + + /** + * Returns a new object of class 'Ocl Query'. + * + * + * + * @return a new object of class 'Ocl Query'. + * @generated + */ + OclQuery createOclQuery(); + + /** + * Returns the package supported by this factory. + * + * + * + * @return the package supported by this factory. + * @generated + */ + OclQueryPackage getOclQueryPackage(); + +} // OclQueryFactory diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQueryPackage.java b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQueryPackage.java index e1f2874ad42..b2fb04a6e4d 100644 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQueryPackage.java +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/OclQueryPackage.java @@ -1,227 +1,227 @@ -/** - * Copyright (c) 2012 Mia-Software. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors - * - * - */ -package org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery; - -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.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *- * The following features are implemented: - *
+ * The following features are implemented: + *
- * 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. - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage#eNS_URI - * @see #init() - * @generated - */ - private OclQueryPackageImpl() { - super(eNS_URI, OclQueryFactory.eINSTANCE); - } - - /** - * - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *
- * This method is used to initialize {@link OclQueryPackage#eINSTANCE} when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static OclQueryPackage init() { - if (isInited) { - return (OclQueryPackage) EPackage.Registry.INSTANCE.getEPackage(OclQueryPackage.eNS_URI); - } - - // Obtain or create and register package - OclQueryPackageImpl theOclQueryPackage = (OclQueryPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof OclQueryPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new OclQueryPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - EFacetPackage.eINSTANCE.eClass(); - - // Create package meta-data objects - theOclQueryPackage.createPackageContents(); - - // Initialize created meta-data - theOclQueryPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theOclQueryPackage.freeze(); - - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(OclQueryPackage.eNS_URI, theOclQueryPackage); - return theOclQueryPackage; - } - - /** - * - * - * - * @generated - */ - @Override - public EClass getOclQuery() { - return oclQueryEClass; - } - - /** - * - * - * - * @generated - */ - @Override - public EReference getOclQuery_Context() { - return (EReference) oclQueryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - @Override - public EAttribute getOclQuery_OclExpression() { - return (EAttribute) oclQueryEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * - * @generated - */ - @Override - public OclQueryFactory getOclQueryFactory() { - return (OclQueryFactory) getEFactoryInstance(); - } - - /** - * - * - * - * @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. - * - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) { - return; - } - isCreated = true; - - // Create classes and their features - oclQueryEClass = createEClass(OCL_QUERY); - createEReference(oclQueryEClass, OCL_QUERY__CONTEXT); - createEAttribute(oclQueryEClass, OCL_QUERY__OCL_EXPRESSION); - } - - /** - * - * - * - * @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. - * - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) { - return; - } - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - ExtensiblePackage theExtensiblePackage = (ExtensiblePackage) EPackage.Registry.INSTANCE.getEPackage(ExtensiblePackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - oclQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery()); - - // Initialize classes and features; add operations and parameters - initEClass(oclQueryEClass, OclQuery.class, "OclQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getOclQuery_Context(), ecorePackage.getEClassifier(), null, "context", null, 0, 1, OclQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getOclQuery_OclExpression(), ecorePackage.getEString(), "oclExpression", null, 0, 1, OclQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - addEOperation(oclQueryEClass, ecorePackage.getEString(), "toString", 0, 1, IS_UNIQUE, IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} // OclQueryPackageImpl +/** + * Copyright (c) 2012 Mia-Software. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors + * + * + */ +package org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.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.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage; +import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.ExtensiblePackage; +import org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery; +import org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryFactory; +import org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage; + +/** + * + * An implementation of the model Package. + * + * + * @generated + */ +public class OclQueryPackageImpl extends EPackageImpl implements OclQueryPackage { + /** + * + * + * + * @generated + */ + private EClass oclQueryEClass = null; + + /** + * Creates an instance of the model Package, registered with {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *
+ * 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. + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage#eNS_URI + * @see #init() + * @generated + */ + private OclQueryPackageImpl() { + super(eNS_URI, OclQueryFactory.eINSTANCE); + } + + /** + * + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *
+ * This method is used to initialize {@link OclQueryPackage#eINSTANCE} when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
+ *
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static OclQueryPackage init() {
+ if (isInited) {
+ return (OclQueryPackage) EPackage.Registry.INSTANCE.getEPackage(OclQueryPackage.eNS_URI);
+ }
+
+ // Obtain or create and register package
+ OclQueryPackageImpl theOclQueryPackage = (OclQueryPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof OclQueryPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new OclQueryPackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ EFacetPackage.eINSTANCE.eClass();
+
+ // Create package meta-data objects
+ theOclQueryPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theOclQueryPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theOclQueryPackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(OclQueryPackage.eNS_URI, theOclQueryPackage);
+ return theOclQueryPackage;
+ }
+
+ /**
+ *
+ *
+ *
+ * @generated
+ */
+ @Override
+ public EClass getOclQuery() {
+ return oclQueryEClass;
+ }
+
+ /**
+ *
+ *
+ *
+ * @generated
+ */
+ @Override
+ public EReference getOclQuery_Context() {
+ return (EReference) oclQueryEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ *
+ * @generated
+ */
+ @Override
+ public EAttribute getOclQuery_OclExpression() {
+ return (EAttribute) oclQueryEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ *
+ * @generated
+ */
+ @Override
+ public OclQueryFactory getOclQueryFactory() {
+ return (OclQueryFactory) getEFactoryInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * @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.
+ *
+ *
+ *
+ * @generated
+ */
+ public void createPackageContents() {
+ if (isCreated) {
+ return;
+ }
+ isCreated = true;
+
+ // Create classes and their features
+ oclQueryEClass = createEClass(OCL_QUERY);
+ createEReference(oclQueryEClass, OCL_QUERY__CONTEXT);
+ createEAttribute(oclQueryEClass, OCL_QUERY__OCL_EXPRESSION);
+ }
+
+ /**
+ *
+ *
+ *
+ * @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.
+ *
+ *
+ *
+ * @generated
+ */
+ public void initializePackageContents() {
+ if (isInitialized) {
+ return;
+ }
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ ExtensiblePackage theExtensiblePackage = (ExtensiblePackage) EPackage.Registry.INSTANCE.getEPackage(ExtensiblePackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ oclQueryEClass.getESuperTypes().add(theExtensiblePackage.getQuery());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(oclQueryEClass, OclQuery.class, "OclQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getOclQuery_Context(), ecorePackage.getEClassifier(), null, "context", null, 0, 1, OclQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOclQuery_OclExpression(), ecorePackage.getEString(), "oclExpression", null, 0, 1, OclQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ addEOperation(oclQueryEClass, ecorePackage.getEString(), "toString", 0, 1, IS_UNIQUE, IS_ORDERED);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+} // OclQueryPackageImpl
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/util/OclQueryAdapterFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/util/OclQueryAdapterFactory.java
index 1156d2451d9..9719940af5d 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/util/OclQueryAdapterFactory.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/util/OclQueryAdapterFactory.java
@@ -1,160 +1,160 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- *
- *
- */
-package org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.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.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query;
-import org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery;
-import org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage;
-
-/**
- *
- * The Adapter Factory for the model.
- * It provides an adapter createXXX
method for each class of the model.
- *
- *
- * @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage
- * @generated
- */
-public class OclQueryAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- *
- *
- *
- * @generated
- */
- protected static OclQueryPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- *
- *
- *
- * @generated
- */
- public OclQueryAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = OclQueryPackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- *
- * This implementation returns true
if the object is either the model's package or is an instance object of the model.
- *
- *
- * @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 createXXX
methods.
- *
- *
- *
- * @generated
- */
- protected OclQuerySwitchtarget
.
- *
- *
- *
- * @param target
- * the object to adapt.
- * @return the adapter for the target
.
- * @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.emf.facet.query.ocl.metamodel.oclquery.OclQuery Ocl Query}'.
- *
- * 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.
- *
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery
- * @generated
- */
- public Adapter createOclQueryAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query Query}'.
- *
- * 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.
- *
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query
- * @generated
- */
- public Adapter createQueryAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- *
- * This default implementation returns null.
- *
- *
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter() {
- return null;
- }
-
-} // OclQueryAdapterFactory
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ *
+ *
+ */
+package org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.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.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query;
+import org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery;
+import org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage;
+
+/**
+ *
+ * The Adapter Factory for the model.
+ * It provides an adapter createXXX
method for each class of the model.
+ *
+ *
+ * @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage
+ * @generated
+ */
+public class OclQueryAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ *
+ *
+ *
+ * @generated
+ */
+ protected static OclQueryPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ *
+ *
+ * @generated
+ */
+ public OclQueryAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = OclQueryPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ *
+ * This implementation returns true
if the object is either the model's package or is an instance object of the model.
+ *
+ *
+ * @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 createXXX
methods.
+ *
+ *
+ *
+ * @generated
+ */
+ protected OclQuerySwitchtarget
.
+ *
+ *
+ *
+ * @param target
+ * the object to adapt.
+ * @return the adapter for the target
.
+ * @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.emf.facet.query.ocl.metamodel.oclquery.OclQuery Ocl Query}'.
+ *
+ * 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.
+ *
+ *
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery
+ * @generated
+ */
+ public Adapter createOclQueryAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query Query}'.
+ *
+ * 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.
+ *
+ *
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query
+ * @generated
+ */
+ public Adapter createQueryAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ *
+ * This default implementation returns null.
+ *
+ *
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} // OclQueryAdapterFactory
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/util/OclQuerySwitch.java b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/util/OclQuerySwitch.java
index 6257cb12434..3485fcbf27e 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/util/OclQuerySwitch.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel/src/org/eclipse/papyrus/emf/facet/query/ocl/metamodel/oclquery/util/OclQuerySwitch.java
@@ -1,169 +1,169 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- *
- *
- */
-package org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.util;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query;
-import org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery;
-import org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage;
-
-/**
- *
- * The Switch for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX
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.
- *
- *
- * @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage
- * @generated
- */
-public class OclQuerySwitchcaseXXX
for each class of the model until one returns a non null result; it yields that result.
- *
- *
- *
- * @return the first non-null result returned by a caseXXX
call.
- * @generated
- */
- public T doSwitch(EObject theEObject) {
- return doSwitch(theEObject.eClass(), theEObject);
- }
-
- /**
- * Calls caseXXX
for each class of the model until one returns a non null result; it yields that result.
- *
- *
- *
- * @return the first non-null result returned by a caseXXX
call.
- * @generated
- */
- protected T doSwitch(EClass theEClass, EObject theEObject) {
- if (theEClass.eContainer() == modelPackage) {
- return doSwitch(theEClass.getClassifierID(), theEObject);
- }
- else {
- ListcaseXXX
for each class of the model until one returns a non null result; it yields that result.
- *
- *
- *
- * @return the first non-null result returned by a caseXXX
call.
- * @generated
- */
- protected T doSwitch(int classifierID, EObject theEObject) {
- switch (classifierID) {
- case OclQueryPackage.OCL_QUERY: {
- OclQuery oclQuery = (OclQuery) theEObject;
- T result = caseOclQuery(oclQuery);
- if (result == null) {
- result = caseQuery(oclQuery);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- default:
- return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Ocl Query'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Ocl Query'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseOclQuery(OclQuery object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Query'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Query'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseQuery(Query object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'EObject'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- *
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'EObject'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- public T defaultCase(EObject object) {
- return null;
- }
-
-} // OclQuerySwitch
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ *
+ *
+ */
+package org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.util;
+
+import java.util.List;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query;
+import org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQuery;
+import org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage;
+
+/**
+ *
+ * The Switch for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX
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.
+ *
+ *
+ * @see org.eclipse.papyrus.emf.facet.query.ocl.metamodel.oclquery.OclQueryPackage
+ * @generated
+ */
+public class OclQuerySwitchcaseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ public T doSwitch(EObject theEObject) {
+ return doSwitch(theEObject.eClass(), theEObject);
+ }
+
+ /**
+ * Calls caseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ protected T doSwitch(EClass theEClass, EObject theEObject) {
+ if (theEClass.eContainer() == modelPackage) {
+ return doSwitch(theEClass.getClassifierID(), theEObject);
+ }
+ else {
+ ListcaseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case OclQueryPackage.OCL_QUERY: {
+ OclQuery oclQuery = (OclQuery) theEObject;
+ T result = caseOclQuery(oclQuery);
+ if (result == null) {
+ result = caseQuery(oclQuery);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Ocl Query'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Ocl Query'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOclQuery(OclQuery object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Query'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Query'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseQuery(Query object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'EObject'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ *
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of 'EObject'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} // OclQuerySwitch
--
cgit v1.2.1