Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorytanguy2012-01-24 13:06:31 +0000
committerytanguy2012-01-24 13:06:31 +0000
commit36cf2e45592f582383ae3330c406efa3a5931c4c (patch)
tree329404ccec89a78960f50e05d54597fcb36783f2 /plugins
parent7a153dcb0fb33183b653dc5f16183e42fd1369c3 (diff)
downloadorg.eclipse.papyrus-36cf2e45592f582383ae3330c406efa3a5931c4c.tar.gz
org.eclipse.papyrus-36cf2e45592f582383ae3330c406efa3a5931c4c.tar.xz
org.eclipse.papyrus-36cf2e45592f582383ae3330c406efa3a5931c4c.zip
NEW - bug 369504: [Refactoring] SysML - Generate implementations in internal.impl instead of impl package
https://bugs.eclipse.org/bugs/show_bug.cgi?id=369504
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/ActivitiesFactoryImpl.java199
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/ActivitiesPackageImpl.java505
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/ContinuousImpl.java48
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/ControlOperatorImpl.java229
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/DiscreteImpl.java48
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/NoBufferImpl.java166
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/OptionalImpl.java166
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/OverwriteImpl.java166
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/ProbabilityImpl.java291
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/RateImpl.java291
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/allocations/impl/AllocateActivityPartitionImpl.java166
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/allocations/impl/AllocateImpl.java166
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/allocations/impl/AllocatedImpl.java249
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/allocations/impl/AllocationsFactoryImpl.java134
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/allocations/impl/AllocationsPackageImpl.java332
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/BindingConnectorImpl.java166
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/BlockImpl.java235
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/BlocksFactoryImpl.java225
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/BlocksPackageImpl.java612
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/ConnectorPropertyImpl.java228
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/DimensionImpl.java166
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/DistributedPropertyImpl.java166
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/NestedConnectorEndImpl.java207
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/ParticipantPropertyImpl.java227
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/PropertySpecificTypeImpl.java166
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/UnitImpl.java228
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/ValueTypeImpl.java290
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/constraints/impl/ConstraintBlockImpl.java49
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/constraints/impl/ConstraintPropertyImpl.java166
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/constraints/impl/ConstraintsFactoryImpl.java121
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/constraints/impl/ConstraintsPackageImpl.java269
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/impl/SysmlFactoryImpl.java144
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/impl/SysmlPackageImpl.java250
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/interactions/impl/InteractionsFactoryImpl.java144
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/interactions/impl/InteractionsPackageImpl.java223
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ConformImpl.java166
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ModelelementsFactoryImpl.java160
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ModelelementsPackageImpl.java441
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ProblemImpl.java165
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/RationaleImpl.java165
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ViewImpl.java231
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ViewPointImpl.java383
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/FlowPortImpl.java383
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/FlowPropertyImpl.java270
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/FlowSpecificationImpl.java166
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/ItemFlowImpl.java229
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/PortandflowsFactoryImpl.java200
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/PortandflowsPackageImpl.java429
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/CopyImpl.java49
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/DeriveReqtImpl.java49
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/RequirementImpl.java579
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/RequirementRelatedImpl.java342
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/RequirementsFactoryImpl.java186
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/RequirementsPackageImpl.java565
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/SatisfyImpl.java49
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/TestCaseImpl.java283
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/VerifyImpl.java49
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/statemachines/impl/StatemachinesFactoryImpl.java144
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/statemachines/impl/StatemachinesPackageImpl.java223
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/usecases/impl/UsecasesFactoryImpl.java144
-rw-r--r--plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/usecases/impl/UsecasesPackageImpl.java223
61 files changed, 0 insertions, 13711 deletions
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/ActivitiesFactoryImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/ActivitiesFactoryImpl.java
deleted file mode 100644
index 78c5ae06df7..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/ActivitiesFactoryImpl.java
+++ /dev/null
@@ -1,199 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.activities.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.sysml.activities.ActivitiesFactory;
-import org.eclipse.papyrus.sysml.activities.ActivitiesPackage;
-import org.eclipse.papyrus.sysml.activities.Continuous;
-import org.eclipse.papyrus.sysml.activities.ControlOperator;
-import org.eclipse.papyrus.sysml.activities.Discrete;
-import org.eclipse.papyrus.sysml.activities.NoBuffer;
-import org.eclipse.papyrus.sysml.activities.Optional;
-import org.eclipse.papyrus.sysml.activities.Overwrite;
-import org.eclipse.papyrus.sysml.activities.Probability;
-import org.eclipse.papyrus.sysml.activities.Rate;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class ActivitiesFactoryImpl extends EFactoryImpl implements ActivitiesFactory {
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static ActivitiesPackage getPackage() {
- return ActivitiesPackage.eINSTANCE;
- }
-
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public static ActivitiesFactory init() {
- try {
- ActivitiesFactory theActivitiesFactory = (ActivitiesFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/0.7.0/SysML/Activities");
- if(theActivitiesFactory != null) {
- return theActivitiesFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new ActivitiesFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public ActivitiesFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch(eClass.getClassifierID()) {
- case ActivitiesPackage.OPTIONAL:
- return createOptional();
- case ActivitiesPackage.RATE:
- return createRate();
- case ActivitiesPackage.PROBABILITY:
- return createProbability();
- case ActivitiesPackage.CONTINUOUS:
- return createContinuous();
- case ActivitiesPackage.DISCRETE:
- return createDiscrete();
- case ActivitiesPackage.CONTROL_OPERATOR:
- return createControlOperator();
- case ActivitiesPackage.NO_BUFFER:
- return createNoBuffer();
- case ActivitiesPackage.OVERWRITE:
- return createOverwrite();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Optional createOptional() {
- OptionalImpl optional = new OptionalImpl();
- return optional;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Continuous createContinuous() {
- ContinuousImpl continuous = new ContinuousImpl();
- return continuous;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ControlOperator createControlOperator() {
- ControlOperatorImpl controlOperator = new ControlOperatorImpl();
- return controlOperator;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Discrete createDiscrete() {
- DiscreteImpl discrete = new DiscreteImpl();
- return discrete;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NoBuffer createNoBuffer() {
- NoBufferImpl noBuffer = new NoBufferImpl();
- return noBuffer;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Overwrite createOverwrite() {
- OverwriteImpl overwrite = new OverwriteImpl();
- return overwrite;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Probability createProbability() {
- ProbabilityImpl probability = new ProbabilityImpl();
- return probability;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Rate createRate() {
- RateImpl rate = new RateImpl();
- return rate;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ActivitiesPackage getActivitiesPackage() {
- return (ActivitiesPackage)getEPackage();
- }
-
-} // ActivitiesFactoryImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/ActivitiesPackageImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/ActivitiesPackageImpl.java
deleted file mode 100644
index 13c1fab7dbc..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/ActivitiesPackageImpl.java
+++ /dev/null
@@ -1,505 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.activities.impl;
-
-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.sysml.SysmlPackage;
-import org.eclipse.papyrus.sysml.activities.ActivitiesFactory;
-import org.eclipse.papyrus.sysml.activities.ActivitiesPackage;
-import org.eclipse.papyrus.sysml.activities.Continuous;
-import org.eclipse.papyrus.sysml.activities.ControlOperator;
-import org.eclipse.papyrus.sysml.activities.Discrete;
-import org.eclipse.papyrus.sysml.activities.NoBuffer;
-import org.eclipse.papyrus.sysml.activities.Optional;
-import org.eclipse.papyrus.sysml.activities.Overwrite;
-import org.eclipse.papyrus.sysml.activities.Probability;
-import org.eclipse.papyrus.sysml.activities.Rate;
-import org.eclipse.papyrus.sysml.allocations.AllocationsPackage;
-import org.eclipse.papyrus.sysml.allocations.impl.AllocationsPackageImpl;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-import org.eclipse.papyrus.sysml.blocks.impl.BlocksPackageImpl;
-import org.eclipse.papyrus.sysml.constraints.ConstraintsPackage;
-import org.eclipse.papyrus.sysml.constraints.impl.ConstraintsPackageImpl;
-import org.eclipse.papyrus.sysml.impl.SysmlPackageImpl;
-import org.eclipse.papyrus.sysml.interactions.InteractionsPackage;
-import org.eclipse.papyrus.sysml.interactions.impl.InteractionsPackageImpl;
-import org.eclipse.papyrus.sysml.modelelements.ModelelementsPackage;
-import org.eclipse.papyrus.sysml.modelelements.impl.ModelelementsPackageImpl;
-import org.eclipse.papyrus.sysml.portandflows.PortandflowsPackage;
-import org.eclipse.papyrus.sysml.portandflows.impl.PortandflowsPackageImpl;
-import org.eclipse.papyrus.sysml.requirements.RequirementsPackage;
-import org.eclipse.papyrus.sysml.requirements.impl.RequirementsPackageImpl;
-import org.eclipse.papyrus.sysml.statemachines.StatemachinesPackage;
-import org.eclipse.papyrus.sysml.statemachines.impl.StatemachinesPackageImpl;
-import org.eclipse.papyrus.sysml.usecases.UsecasesPackage;
-import org.eclipse.papyrus.sysml.usecases.impl.UsecasesPackageImpl;
-import org.eclipse.uml2.uml.UMLPackage;
-import org.eclipse.uml2.uml.profile.l2.L2Package;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class ActivitiesPackageImpl extends EPackageImpl implements ActivitiesPackage {
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass optionalEClass = null;
-
- /**
- * <!-- 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 ActivitiesPackage#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 ActivitiesPackage init() {
- if(isInited)
- return (ActivitiesPackage)EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI);
-
- // Obtain or create and register package
- ActivitiesPackageImpl theActivitiesPackage = (ActivitiesPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ActivitiesPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ActivitiesPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- L2Package.eINSTANCE.eClass();
-
- // Obtain or create and register interdependencies
- SysmlPackageImpl theSysmlPackage = (SysmlPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SysmlPackage.eNS_URI) instanceof SysmlPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SysmlPackage.eNS_URI) : SysmlPackage.eINSTANCE);
- ModelelementsPackageImpl theModelelementsPackage = (ModelelementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) instanceof ModelelementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) : ModelelementsPackage.eINSTANCE);
- BlocksPackageImpl theBlocksPackage = (BlocksPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI) instanceof BlocksPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI) : BlocksPackage.eINSTANCE);
- PortandflowsPackageImpl thePortandflowsPackage = (PortandflowsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) instanceof PortandflowsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) : PortandflowsPackage.eINSTANCE);
- ConstraintsPackageImpl theConstraintsPackage = (ConstraintsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI) instanceof ConstraintsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI) : ConstraintsPackage.eINSTANCE);
- AllocationsPackageImpl theAllocationsPackage = (AllocationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) instanceof AllocationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) : AllocationsPackage.eINSTANCE);
- RequirementsPackageImpl theRequirementsPackage = (RequirementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) instanceof RequirementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) : RequirementsPackage.eINSTANCE);
- InteractionsPackageImpl theInteractionsPackage = (InteractionsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI) instanceof InteractionsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI) : InteractionsPackage.eINSTANCE);
- StatemachinesPackageImpl theStatemachinesPackage = (StatemachinesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI) instanceof StatemachinesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI) : StatemachinesPackage.eINSTANCE);
- UsecasesPackageImpl theUsecasesPackage = (UsecasesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) instanceof UsecasesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) : UsecasesPackage.eINSTANCE);
-
- // Create package meta-data objects
- theActivitiesPackage.createPackageContents();
- theSysmlPackage.createPackageContents();
- theModelelementsPackage.createPackageContents();
- theBlocksPackage.createPackageContents();
- thePortandflowsPackage.createPackageContents();
- theConstraintsPackage.createPackageContents();
- theAllocationsPackage.createPackageContents();
- theRequirementsPackage.createPackageContents();
- theInteractionsPackage.createPackageContents();
- theStatemachinesPackage.createPackageContents();
- theUsecasesPackage.createPackageContents();
-
- // Initialize created meta-data
- theActivitiesPackage.initializePackageContents();
- theSysmlPackage.initializePackageContents();
- theModelelementsPackage.initializePackageContents();
- theBlocksPackage.initializePackageContents();
- thePortandflowsPackage.initializePackageContents();
- theConstraintsPackage.initializePackageContents();
- theAllocationsPackage.initializePackageContents();
- theRequirementsPackage.initializePackageContents();
- theInteractionsPackage.initializePackageContents();
- theStatemachinesPackage.initializePackageContents();
- theUsecasesPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theActivitiesPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(ActivitiesPackage.eNS_URI, theActivitiesPackage);
- return theActivitiesPackage;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getOptional() {
- return optionalEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getOptional_Base_Parameter() {
- return (EReference)optionalEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass rateEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass probabilityEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass continuousEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass discreteEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass controlOperatorEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass noBufferEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass overwriteEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * 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.sysml.activities.ActivitiesPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private ActivitiesPackageImpl() {
- super(eNS_URI, ActivitiesFactory.eINSTANCE);
- }
-
- /**
- * 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
- optionalEClass = createEClass(OPTIONAL);
- createEReference(optionalEClass, OPTIONAL__BASE_PARAMETER);
-
- rateEClass = createEClass(RATE);
- createEReference(rateEClass, RATE__BASE_PARAMETER);
- createEReference(rateEClass, RATE__BASE_ACTIVITY_EDGE);
- createEReference(rateEClass, RATE__RATE);
-
- probabilityEClass = createEClass(PROBABILITY);
- createEReference(probabilityEClass, PROBABILITY__BASE_ACTIVITY_EDGE);
- createEReference(probabilityEClass, PROBABILITY__BASE_PARAMETER_SET);
- createEReference(probabilityEClass, PROBABILITY__PROBABILITY);
-
- continuousEClass = createEClass(CONTINUOUS);
-
- discreteEClass = createEClass(DISCRETE);
-
- controlOperatorEClass = createEClass(CONTROL_OPERATOR);
- createEReference(controlOperatorEClass, CONTROL_OPERATOR__BASE_OPERATION);
- createEReference(controlOperatorEClass, CONTROL_OPERATOR__BASE_BEHAVIOR);
-
- noBufferEClass = createEClass(NO_BUFFER);
- createEReference(noBufferEClass, NO_BUFFER__BASE_OBJECT_NODE);
-
- overwriteEClass = createEClass(OVERWRITE);
- createEReference(overwriteEClass, OVERWRITE__BASE_OBJECT_NODE);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ActivitiesFactory getActivitiesFactory() {
- return (ActivitiesFactory)getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getContinuous() {
- return continuousEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getControlOperator() {
- return controlOperatorEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getControlOperator_Base_Behavior() {
- return (EReference)controlOperatorEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getControlOperator_Base_Operation() {
- return (EReference)controlOperatorEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getDiscrete() {
- return discreteEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getNoBuffer() {
- return noBufferEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getNoBuffer_Base_ObjectNode() {
- return (EReference)noBufferEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getOverwrite() {
- return overwriteEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getOverwrite_Base_ObjectNode() {
- return (EReference)overwriteEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getProbability() {
- return probabilityEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getProbability_Base_ActivityEdge() {
- return (EReference)probabilityEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getProbability_Base_ParameterSet() {
- return (EReference)probabilityEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getProbability_Probability() {
- return (EReference)probabilityEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getRate() {
- return rateEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRate_Base_ActivityEdge() {
- return (EReference)rateEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRate_Base_Parameter() {
- return (EReference)rateEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRate_Rate() {
- return (EReference)rateEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * 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
- UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- continuousEClass.getESuperTypes().add(this.getRate());
- discreteEClass.getESuperTypes().add(this.getRate());
-
- // Initialize classes and features; add operations and parameters
- initEClass(optionalEClass, Optional.class, "Optional", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getOptional_Base_Parameter(), theUMLPackage.getParameter(), null, "base_Parameter", null, 1, 1, Optional.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(rateEClass, Rate.class, "Rate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getRate_Base_Parameter(), theUMLPackage.getParameter(), null, "base_Parameter", null, 1, 1, Rate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getRate_Base_ActivityEdge(), theUMLPackage.getActivityEdge(), null, "base_ActivityEdge", null, 1, 1, Rate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getRate_Rate(), theUMLPackage.getInstanceSpecification(), null, "rate", null, 0, 1, Rate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(probabilityEClass, Probability.class, "Probability", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getProbability_Base_ActivityEdge(), theUMLPackage.getActivityEdge(), null, "base_ActivityEdge", null, 1, 1, Probability.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getProbability_Base_ParameterSet(), theUMLPackage.getParameterSet(), null, "base_ParameterSet", null, 1, 1, Probability.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getProbability_Probability(), theUMLPackage.getValueSpecification(), null, "probability", null, 0, 1, Probability.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(continuousEClass, Continuous.class, "Continuous", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(discreteEClass, Discrete.class, "Discrete", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(controlOperatorEClass, ControlOperator.class, "ControlOperator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getControlOperator_Base_Operation(), theUMLPackage.getOperation(), null, "base_Operation", null, 1, 1, ControlOperator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getControlOperator_Base_Behavior(), theUMLPackage.getBehavior(), null, "base_Behavior", null, 1, 1, ControlOperator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(noBufferEClass, NoBuffer.class, "NoBuffer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getNoBuffer_Base_ObjectNode(), theUMLPackage.getObjectNode(), null, "base_ObjectNode", null, 1, 1, NoBuffer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(overwriteEClass, Overwrite.class, "Overwrite", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getOverwrite_Base_ObjectNode(), theUMLPackage.getObjectNode(), null, "base_ObjectNode", null, 1, 1, Overwrite.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- }
-
-} // ActivitiesPackageImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/ContinuousImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/ContinuousImpl.java
deleted file mode 100644
index b137ca014bb..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/ContinuousImpl.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.activities.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.papyrus.sysml.activities.ActivitiesPackage;
-import org.eclipse.papyrus.sysml.activities.Continuous;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Continuous</b></em>'. <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class ContinuousImpl extends RateImpl implements Continuous {
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ContinuousImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ActivitiesPackage.Literals.CONTINUOUS;
- }
-
-} // ContinuousImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/ControlOperatorImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/ControlOperatorImpl.java
deleted file mode 100644
index 930fa06bab1..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/ControlOperatorImpl.java
+++ /dev/null
@@ -1,229 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.activities.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.activities.ActivitiesPackage;
-import org.eclipse.papyrus.sysml.activities.ControlOperator;
-import org.eclipse.uml2.uml.Behavior;
-import org.eclipse.uml2.uml.Operation;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Control Operator</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.activities.impl.ControlOperatorImpl#getBase_Operation <em>Base Operation</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.activities.impl.ControlOperatorImpl#getBase_Behavior <em>Base Behavior</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ControlOperatorImpl extends EObjectImpl implements ControlOperator {
-
- /**
- * The cached value of the '{@link #getBase_Operation() <em>Base Operation</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_Operation()
- * @generated
- * @ordered
- */
- protected Operation base_Operation;
-
- /**
- * The cached value of the '{@link #getBase_Behavior() <em>Base Behavior</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_Behavior()
- * @generated
- * @ordered
- */
- protected Behavior base_Behavior;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ControlOperatorImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Behavior basicGetBase_Behavior() {
- return base_Behavior;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Operation basicGetBase_Operation() {
- return base_Operation;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case ActivitiesPackage.CONTROL_OPERATOR__BASE_OPERATION:
- if(resolve)
- return getBase_Operation();
- return basicGetBase_Operation();
- case ActivitiesPackage.CONTROL_OPERATOR__BASE_BEHAVIOR:
- if(resolve)
- return getBase_Behavior();
- return basicGetBase_Behavior();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case ActivitiesPackage.CONTROL_OPERATOR__BASE_OPERATION:
- return base_Operation != null;
- case ActivitiesPackage.CONTROL_OPERATOR__BASE_BEHAVIOR:
- return base_Behavior != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case ActivitiesPackage.CONTROL_OPERATOR__BASE_OPERATION:
- setBase_Operation((Operation)newValue);
- return;
- case ActivitiesPackage.CONTROL_OPERATOR__BASE_BEHAVIOR:
- setBase_Behavior((Behavior)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ActivitiesPackage.Literals.CONTROL_OPERATOR;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case ActivitiesPackage.CONTROL_OPERATOR__BASE_OPERATION:
- setBase_Operation((Operation)null);
- return;
- case ActivitiesPackage.CONTROL_OPERATOR__BASE_BEHAVIOR:
- setBase_Behavior((Behavior)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Behavior getBase_Behavior() {
- if(base_Behavior != null && base_Behavior.eIsProxy()) {
- InternalEObject oldBase_Behavior = (InternalEObject)base_Behavior;
- base_Behavior = (Behavior)eResolveProxy(oldBase_Behavior);
- if(base_Behavior != oldBase_Behavior) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ActivitiesPackage.CONTROL_OPERATOR__BASE_BEHAVIOR, oldBase_Behavior, base_Behavior));
- }
- }
- return base_Behavior;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Operation getBase_Operation() {
- if(base_Operation != null && base_Operation.eIsProxy()) {
- InternalEObject oldBase_Operation = (InternalEObject)base_Operation;
- base_Operation = (Operation)eResolveProxy(oldBase_Operation);
- if(base_Operation != oldBase_Operation) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ActivitiesPackage.CONTROL_OPERATOR__BASE_OPERATION, oldBase_Operation, base_Operation));
- }
- }
- return base_Operation;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Behavior(Behavior newBase_Behavior) {
- Behavior oldBase_Behavior = base_Behavior;
- base_Behavior = newBase_Behavior;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ActivitiesPackage.CONTROL_OPERATOR__BASE_BEHAVIOR, oldBase_Behavior, base_Behavior));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Operation(Operation newBase_Operation) {
- Operation oldBase_Operation = base_Operation;
- base_Operation = newBase_Operation;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ActivitiesPackage.CONTROL_OPERATOR__BASE_OPERATION, oldBase_Operation, base_Operation));
- }
-
-} // ControlOperatorImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/DiscreteImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/DiscreteImpl.java
deleted file mode 100644
index a751886f38e..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/DiscreteImpl.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.activities.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.papyrus.sysml.activities.ActivitiesPackage;
-import org.eclipse.papyrus.sysml.activities.Discrete;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Discrete</b></em>'. <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class DiscreteImpl extends RateImpl implements Discrete {
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected DiscreteImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ActivitiesPackage.Literals.DISCRETE;
- }
-
-} // DiscreteImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/NoBufferImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/NoBufferImpl.java
deleted file mode 100644
index c8f6f707af3..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/NoBufferImpl.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.activities.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.activities.ActivitiesPackage;
-import org.eclipse.papyrus.sysml.activities.NoBuffer;
-import org.eclipse.uml2.uml.ObjectNode;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>No Buffer</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.activities.impl.NoBufferImpl#getBase_ObjectNode <em>Base Object Node</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class NoBufferImpl extends EObjectImpl implements NoBuffer {
-
- /**
- * The cached value of the '{@link #getBase_ObjectNode() <em>Base Object Node</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_ObjectNode()
- * @generated
- * @ordered
- */
- protected ObjectNode base_ObjectNode;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected NoBufferImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ObjectNode basicGetBase_ObjectNode() {
- return base_ObjectNode;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case ActivitiesPackage.NO_BUFFER__BASE_OBJECT_NODE:
- if(resolve)
- return getBase_ObjectNode();
- return basicGetBase_ObjectNode();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case ActivitiesPackage.NO_BUFFER__BASE_OBJECT_NODE:
- return base_ObjectNode != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case ActivitiesPackage.NO_BUFFER__BASE_OBJECT_NODE:
- setBase_ObjectNode((ObjectNode)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ActivitiesPackage.Literals.NO_BUFFER;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case ActivitiesPackage.NO_BUFFER__BASE_OBJECT_NODE:
- setBase_ObjectNode((ObjectNode)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ObjectNode getBase_ObjectNode() {
- if(base_ObjectNode != null && base_ObjectNode.eIsProxy()) {
- InternalEObject oldBase_ObjectNode = (InternalEObject)base_ObjectNode;
- base_ObjectNode = (ObjectNode)eResolveProxy(oldBase_ObjectNode);
- if(base_ObjectNode != oldBase_ObjectNode) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ActivitiesPackage.NO_BUFFER__BASE_OBJECT_NODE, oldBase_ObjectNode, base_ObjectNode));
- }
- }
- return base_ObjectNode;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_ObjectNode(ObjectNode newBase_ObjectNode) {
- ObjectNode oldBase_ObjectNode = base_ObjectNode;
- base_ObjectNode = newBase_ObjectNode;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ActivitiesPackage.NO_BUFFER__BASE_OBJECT_NODE, oldBase_ObjectNode, base_ObjectNode));
- }
-
-} // NoBufferImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/OptionalImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/OptionalImpl.java
deleted file mode 100644
index cb1d08927d2..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/OptionalImpl.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.activities.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.activities.ActivitiesPackage;
-import org.eclipse.papyrus.sysml.activities.Optional;
-import org.eclipse.uml2.uml.Parameter;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Optional</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.activities.impl.OptionalImpl#getBase_Parameter <em>Base Parameter</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class OptionalImpl extends EObjectImpl implements Optional {
-
- /**
- * The cached value of the '{@link #getBase_Parameter() <em>Base Parameter</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_Parameter()
- * @generated
- * @ordered
- */
- protected Parameter base_Parameter;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected OptionalImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ActivitiesPackage.Literals.OPTIONAL;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Parameter getBase_Parameter() {
- if(base_Parameter != null && base_Parameter.eIsProxy()) {
- InternalEObject oldBase_Parameter = (InternalEObject)base_Parameter;
- base_Parameter = (Parameter)eResolveProxy(oldBase_Parameter);
- if(base_Parameter != oldBase_Parameter) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ActivitiesPackage.OPTIONAL__BASE_PARAMETER, oldBase_Parameter, base_Parameter));
- }
- }
- return base_Parameter;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Parameter basicGetBase_Parameter() {
- return base_Parameter;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Parameter(Parameter newBase_Parameter) {
- Parameter oldBase_Parameter = base_Parameter;
- base_Parameter = newBase_Parameter;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ActivitiesPackage.OPTIONAL__BASE_PARAMETER, oldBase_Parameter, base_Parameter));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case ActivitiesPackage.OPTIONAL__BASE_PARAMETER:
- if(resolve)
- return getBase_Parameter();
- return basicGetBase_Parameter();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case ActivitiesPackage.OPTIONAL__BASE_PARAMETER:
- setBase_Parameter((Parameter)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case ActivitiesPackage.OPTIONAL__BASE_PARAMETER:
- setBase_Parameter((Parameter)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case ActivitiesPackage.OPTIONAL__BASE_PARAMETER:
- return base_Parameter != null;
- }
- return super.eIsSet(featureID);
- }
-
-} // OptionalImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/OverwriteImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/OverwriteImpl.java
deleted file mode 100644
index e1cf773f958..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/OverwriteImpl.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.activities.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.activities.ActivitiesPackage;
-import org.eclipse.papyrus.sysml.activities.Overwrite;
-import org.eclipse.uml2.uml.ObjectNode;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Overwrite</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.activities.impl.OverwriteImpl#getBase_ObjectNode <em>Base Object Node</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class OverwriteImpl extends EObjectImpl implements Overwrite {
-
- /**
- * The cached value of the '{@link #getBase_ObjectNode() <em>Base Object Node</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_ObjectNode()
- * @generated
- * @ordered
- */
- protected ObjectNode base_ObjectNode;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected OverwriteImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ObjectNode basicGetBase_ObjectNode() {
- return base_ObjectNode;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case ActivitiesPackage.OVERWRITE__BASE_OBJECT_NODE:
- if(resolve)
- return getBase_ObjectNode();
- return basicGetBase_ObjectNode();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case ActivitiesPackage.OVERWRITE__BASE_OBJECT_NODE:
- return base_ObjectNode != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case ActivitiesPackage.OVERWRITE__BASE_OBJECT_NODE:
- setBase_ObjectNode((ObjectNode)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ActivitiesPackage.Literals.OVERWRITE;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case ActivitiesPackage.OVERWRITE__BASE_OBJECT_NODE:
- setBase_ObjectNode((ObjectNode)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ObjectNode getBase_ObjectNode() {
- if(base_ObjectNode != null && base_ObjectNode.eIsProxy()) {
- InternalEObject oldBase_ObjectNode = (InternalEObject)base_ObjectNode;
- base_ObjectNode = (ObjectNode)eResolveProxy(oldBase_ObjectNode);
- if(base_ObjectNode != oldBase_ObjectNode) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ActivitiesPackage.OVERWRITE__BASE_OBJECT_NODE, oldBase_ObjectNode, base_ObjectNode));
- }
- }
- return base_ObjectNode;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_ObjectNode(ObjectNode newBase_ObjectNode) {
- ObjectNode oldBase_ObjectNode = base_ObjectNode;
- base_ObjectNode = newBase_ObjectNode;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ActivitiesPackage.OVERWRITE__BASE_OBJECT_NODE, oldBase_ObjectNode, base_ObjectNode));
- }
-
-} // OverwriteImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/ProbabilityImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/ProbabilityImpl.java
deleted file mode 100644
index 90d92bfe5ba..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/ProbabilityImpl.java
+++ /dev/null
@@ -1,291 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.activities.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.activities.ActivitiesPackage;
-import org.eclipse.papyrus.sysml.activities.Probability;
-import org.eclipse.uml2.uml.ActivityEdge;
-import org.eclipse.uml2.uml.ParameterSet;
-import org.eclipse.uml2.uml.ValueSpecification;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Probability</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.activities.impl.ProbabilityImpl#getBase_ActivityEdge <em>Base Activity Edge</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.activities.impl.ProbabilityImpl#getBase_ParameterSet <em>Base Parameter Set</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.activities.impl.ProbabilityImpl#getProbability <em>Probability</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ProbabilityImpl extends EObjectImpl implements Probability {
-
- /**
- * The cached value of the '{@link #getBase_ActivityEdge() <em>Base Activity Edge</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_ActivityEdge()
- * @generated
- * @ordered
- */
- protected ActivityEdge base_ActivityEdge;
-
- /**
- * The cached value of the '{@link #getBase_ParameterSet() <em>Base Parameter Set</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_ParameterSet()
- * @generated
- * @ordered
- */
- protected ParameterSet base_ParameterSet;
-
- /**
- * The cached value of the '{@link #getProbability() <em>Probability</em>}' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getProbability()
- * @generated
- * @ordered
- */
- protected ValueSpecification probability;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ProbabilityImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ActivityEdge basicGetBase_ActivityEdge() {
- return base_ActivityEdge;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ParameterSet basicGetBase_ParameterSet() {
- return base_ParameterSet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ValueSpecification basicGetProbability() {
- return probability;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case ActivitiesPackage.PROBABILITY__BASE_ACTIVITY_EDGE:
- if(resolve)
- return getBase_ActivityEdge();
- return basicGetBase_ActivityEdge();
- case ActivitiesPackage.PROBABILITY__BASE_PARAMETER_SET:
- if(resolve)
- return getBase_ParameterSet();
- return basicGetBase_ParameterSet();
- case ActivitiesPackage.PROBABILITY__PROBABILITY:
- if(resolve)
- return getProbability();
- return basicGetProbability();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case ActivitiesPackage.PROBABILITY__BASE_ACTIVITY_EDGE:
- return base_ActivityEdge != null;
- case ActivitiesPackage.PROBABILITY__BASE_PARAMETER_SET:
- return base_ParameterSet != null;
- case ActivitiesPackage.PROBABILITY__PROBABILITY:
- return probability != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case ActivitiesPackage.PROBABILITY__BASE_ACTIVITY_EDGE:
- setBase_ActivityEdge((ActivityEdge)newValue);
- return;
- case ActivitiesPackage.PROBABILITY__BASE_PARAMETER_SET:
- setBase_ParameterSet((ParameterSet)newValue);
- return;
- case ActivitiesPackage.PROBABILITY__PROBABILITY:
- setProbability((ValueSpecification)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ActivitiesPackage.Literals.PROBABILITY;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case ActivitiesPackage.PROBABILITY__BASE_ACTIVITY_EDGE:
- setBase_ActivityEdge((ActivityEdge)null);
- return;
- case ActivitiesPackage.PROBABILITY__BASE_PARAMETER_SET:
- setBase_ParameterSet((ParameterSet)null);
- return;
- case ActivitiesPackage.PROBABILITY__PROBABILITY:
- setProbability((ValueSpecification)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ActivityEdge getBase_ActivityEdge() {
- if(base_ActivityEdge != null && base_ActivityEdge.eIsProxy()) {
- InternalEObject oldBase_ActivityEdge = (InternalEObject)base_ActivityEdge;
- base_ActivityEdge = (ActivityEdge)eResolveProxy(oldBase_ActivityEdge);
- if(base_ActivityEdge != oldBase_ActivityEdge) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ActivitiesPackage.PROBABILITY__BASE_ACTIVITY_EDGE, oldBase_ActivityEdge, base_ActivityEdge));
- }
- }
- return base_ActivityEdge;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ParameterSet getBase_ParameterSet() {
- if(base_ParameterSet != null && base_ParameterSet.eIsProxy()) {
- InternalEObject oldBase_ParameterSet = (InternalEObject)base_ParameterSet;
- base_ParameterSet = (ParameterSet)eResolveProxy(oldBase_ParameterSet);
- if(base_ParameterSet != oldBase_ParameterSet) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ActivitiesPackage.PROBABILITY__BASE_PARAMETER_SET, oldBase_ParameterSet, base_ParameterSet));
- }
- }
- return base_ParameterSet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ValueSpecification getProbability() {
- if(probability != null && probability.eIsProxy()) {
- InternalEObject oldProbability = (InternalEObject)probability;
- probability = (ValueSpecification)eResolveProxy(oldProbability);
- if(probability != oldProbability) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ActivitiesPackage.PROBABILITY__PROBABILITY, oldProbability, probability));
- }
- }
- return probability;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_ActivityEdge(ActivityEdge newBase_ActivityEdge) {
- ActivityEdge oldBase_ActivityEdge = base_ActivityEdge;
- base_ActivityEdge = newBase_ActivityEdge;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ActivitiesPackage.PROBABILITY__BASE_ACTIVITY_EDGE, oldBase_ActivityEdge, base_ActivityEdge));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_ParameterSet(ParameterSet newBase_ParameterSet) {
- ParameterSet oldBase_ParameterSet = base_ParameterSet;
- base_ParameterSet = newBase_ParameterSet;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ActivitiesPackage.PROBABILITY__BASE_PARAMETER_SET, oldBase_ParameterSet, base_ParameterSet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setProbability(ValueSpecification newProbability) {
- ValueSpecification oldProbability = probability;
- probability = newProbability;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ActivitiesPackage.PROBABILITY__PROBABILITY, oldProbability, probability));
- }
-
-} // ProbabilityImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/RateImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/RateImpl.java
deleted file mode 100644
index 3a60a645562..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/activities/impl/RateImpl.java
+++ /dev/null
@@ -1,291 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.activities.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.activities.ActivitiesPackage;
-import org.eclipse.papyrus.sysml.activities.Rate;
-import org.eclipse.uml2.uml.ActivityEdge;
-import org.eclipse.uml2.uml.InstanceSpecification;
-import org.eclipse.uml2.uml.Parameter;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Rate</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.activities.impl.RateImpl#getBase_Parameter <em>Base Parameter</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.activities.impl.RateImpl#getBase_ActivityEdge <em>Base Activity Edge</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.activities.impl.RateImpl#getRate <em>Rate</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class RateImpl extends EObjectImpl implements Rate {
-
- /**
- * The cached value of the '{@link #getBase_Parameter() <em>Base Parameter</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_Parameter()
- * @generated
- * @ordered
- */
- protected Parameter base_Parameter;
-
- /**
- * The cached value of the '{@link #getBase_ActivityEdge() <em>Base Activity Edge</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_ActivityEdge()
- * @generated
- * @ordered
- */
- protected ActivityEdge base_ActivityEdge;
-
- /**
- * The cached value of the '{@link #getRate() <em>Rate</em>}' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getRate()
- * @generated
- * @ordered
- */
- protected InstanceSpecification rate;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected RateImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ActivityEdge basicGetBase_ActivityEdge() {
- return base_ActivityEdge;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Parameter basicGetBase_Parameter() {
- return base_Parameter;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public InstanceSpecification basicGetRate() {
- return rate;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case ActivitiesPackage.RATE__BASE_PARAMETER:
- if(resolve)
- return getBase_Parameter();
- return basicGetBase_Parameter();
- case ActivitiesPackage.RATE__BASE_ACTIVITY_EDGE:
- if(resolve)
- return getBase_ActivityEdge();
- return basicGetBase_ActivityEdge();
- case ActivitiesPackage.RATE__RATE:
- if(resolve)
- return getRate();
- return basicGetRate();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case ActivitiesPackage.RATE__BASE_PARAMETER:
- return base_Parameter != null;
- case ActivitiesPackage.RATE__BASE_ACTIVITY_EDGE:
- return base_ActivityEdge != null;
- case ActivitiesPackage.RATE__RATE:
- return rate != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case ActivitiesPackage.RATE__BASE_PARAMETER:
- setBase_Parameter((Parameter)newValue);
- return;
- case ActivitiesPackage.RATE__BASE_ACTIVITY_EDGE:
- setBase_ActivityEdge((ActivityEdge)newValue);
- return;
- case ActivitiesPackage.RATE__RATE:
- setRate((InstanceSpecification)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ActivitiesPackage.Literals.RATE;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case ActivitiesPackage.RATE__BASE_PARAMETER:
- setBase_Parameter((Parameter)null);
- return;
- case ActivitiesPackage.RATE__BASE_ACTIVITY_EDGE:
- setBase_ActivityEdge((ActivityEdge)null);
- return;
- case ActivitiesPackage.RATE__RATE:
- setRate((InstanceSpecification)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ActivityEdge getBase_ActivityEdge() {
- if(base_ActivityEdge != null && base_ActivityEdge.eIsProxy()) {
- InternalEObject oldBase_ActivityEdge = (InternalEObject)base_ActivityEdge;
- base_ActivityEdge = (ActivityEdge)eResolveProxy(oldBase_ActivityEdge);
- if(base_ActivityEdge != oldBase_ActivityEdge) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ActivitiesPackage.RATE__BASE_ACTIVITY_EDGE, oldBase_ActivityEdge, base_ActivityEdge));
- }
- }
- return base_ActivityEdge;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Parameter getBase_Parameter() {
- if(base_Parameter != null && base_Parameter.eIsProxy()) {
- InternalEObject oldBase_Parameter = (InternalEObject)base_Parameter;
- base_Parameter = (Parameter)eResolveProxy(oldBase_Parameter);
- if(base_Parameter != oldBase_Parameter) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ActivitiesPackage.RATE__BASE_PARAMETER, oldBase_Parameter, base_Parameter));
- }
- }
- return base_Parameter;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public InstanceSpecification getRate() {
- if(rate != null && rate.eIsProxy()) {
- InternalEObject oldRate = (InternalEObject)rate;
- rate = (InstanceSpecification)eResolveProxy(oldRate);
- if(rate != oldRate) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ActivitiesPackage.RATE__RATE, oldRate, rate));
- }
- }
- return rate;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_ActivityEdge(ActivityEdge newBase_ActivityEdge) {
- ActivityEdge oldBase_ActivityEdge = base_ActivityEdge;
- base_ActivityEdge = newBase_ActivityEdge;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ActivitiesPackage.RATE__BASE_ACTIVITY_EDGE, oldBase_ActivityEdge, base_ActivityEdge));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Parameter(Parameter newBase_Parameter) {
- Parameter oldBase_Parameter = base_Parameter;
- base_Parameter = newBase_Parameter;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ActivitiesPackage.RATE__BASE_PARAMETER, oldBase_Parameter, base_Parameter));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setRate(InstanceSpecification newRate) {
- InstanceSpecification oldRate = rate;
- rate = newRate;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ActivitiesPackage.RATE__RATE, oldRate, rate));
- }
-
-} // RateImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/allocations/impl/AllocateActivityPartitionImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/allocations/impl/AllocateActivityPartitionImpl.java
deleted file mode 100644
index 1c406d40f8e..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/allocations/impl/AllocateActivityPartitionImpl.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.allocations.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.allocations.AllocateActivityPartition;
-import org.eclipse.papyrus.sysml.allocations.AllocationsPackage;
-import org.eclipse.uml2.uml.ActivityPartition;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Allocate Activity Partition</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.allocations.impl.AllocateActivityPartitionImpl#getBase_ActivityPartition <em>Base Activity Partition</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class AllocateActivityPartitionImpl extends EObjectImpl implements AllocateActivityPartition {
-
- /**
- * The cached value of the '{@link #getBase_ActivityPartition() <em>Base Activity Partition</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getBase_ActivityPartition()
- * @generated
- * @ordered
- */
- protected ActivityPartition base_ActivityPartition;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected AllocateActivityPartitionImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ActivityPartition basicGetBase_ActivityPartition() {
- return base_ActivityPartition;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case AllocationsPackage.ALLOCATE_ACTIVITY_PARTITION__BASE_ACTIVITY_PARTITION:
- if(resolve)
- return getBase_ActivityPartition();
- return basicGetBase_ActivityPartition();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case AllocationsPackage.ALLOCATE_ACTIVITY_PARTITION__BASE_ACTIVITY_PARTITION:
- return base_ActivityPartition != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case AllocationsPackage.ALLOCATE_ACTIVITY_PARTITION__BASE_ACTIVITY_PARTITION:
- setBase_ActivityPartition((ActivityPartition)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return AllocationsPackage.Literals.ALLOCATE_ACTIVITY_PARTITION;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case AllocationsPackage.ALLOCATE_ACTIVITY_PARTITION__BASE_ACTIVITY_PARTITION:
- setBase_ActivityPartition((ActivityPartition)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ActivityPartition getBase_ActivityPartition() {
- if(base_ActivityPartition != null && base_ActivityPartition.eIsProxy()) {
- InternalEObject oldBase_ActivityPartition = (InternalEObject)base_ActivityPartition;
- base_ActivityPartition = (ActivityPartition)eResolveProxy(oldBase_ActivityPartition);
- if(base_ActivityPartition != oldBase_ActivityPartition) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, AllocationsPackage.ALLOCATE_ACTIVITY_PARTITION__BASE_ACTIVITY_PARTITION, oldBase_ActivityPartition, base_ActivityPartition));
- }
- }
- return base_ActivityPartition;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_ActivityPartition(ActivityPartition newBase_ActivityPartition) {
- ActivityPartition oldBase_ActivityPartition = base_ActivityPartition;
- base_ActivityPartition = newBase_ActivityPartition;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, AllocationsPackage.ALLOCATE_ACTIVITY_PARTITION__BASE_ACTIVITY_PARTITION, oldBase_ActivityPartition, base_ActivityPartition));
- }
-
-} // AllocateActivityPartitionImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/allocations/impl/AllocateImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/allocations/impl/AllocateImpl.java
deleted file mode 100644
index cf32680e11b..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/allocations/impl/AllocateImpl.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.allocations.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.allocations.Allocate;
-import org.eclipse.papyrus.sysml.allocations.AllocationsPackage;
-import org.eclipse.uml2.uml.Abstraction;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Allocate</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.allocations.impl.AllocateImpl#getBase_Abstraction <em>Base Abstraction</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class AllocateImpl extends EObjectImpl implements Allocate {
-
- /**
- * The cached value of the '{@link #getBase_Abstraction() <em>Base Abstraction</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_Abstraction()
- * @generated
- * @ordered
- */
- protected Abstraction base_Abstraction;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected AllocateImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Abstraction basicGetBase_Abstraction() {
- return base_Abstraction;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case AllocationsPackage.ALLOCATE__BASE_ABSTRACTION:
- if(resolve)
- return getBase_Abstraction();
- return basicGetBase_Abstraction();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case AllocationsPackage.ALLOCATE__BASE_ABSTRACTION:
- return base_Abstraction != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case AllocationsPackage.ALLOCATE__BASE_ABSTRACTION:
- setBase_Abstraction((Abstraction)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return AllocationsPackage.Literals.ALLOCATE;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case AllocationsPackage.ALLOCATE__BASE_ABSTRACTION:
- setBase_Abstraction((Abstraction)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Abstraction getBase_Abstraction() {
- if(base_Abstraction != null && base_Abstraction.eIsProxy()) {
- InternalEObject oldBase_Abstraction = (InternalEObject)base_Abstraction;
- base_Abstraction = (Abstraction)eResolveProxy(oldBase_Abstraction);
- if(base_Abstraction != oldBase_Abstraction) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, AllocationsPackage.ALLOCATE__BASE_ABSTRACTION, oldBase_Abstraction, base_Abstraction));
- }
- }
- return base_Abstraction;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Abstraction(Abstraction newBase_Abstraction) {
- Abstraction oldBase_Abstraction = base_Abstraction;
- base_Abstraction = newBase_Abstraction;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, AllocationsPackage.ALLOCATE__BASE_ABSTRACTION, oldBase_Abstraction, base_Abstraction));
- }
-
-} // AllocateImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/allocations/impl/AllocatedImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/allocations/impl/AllocatedImpl.java
deleted file mode 100644
index a23ecba8d6b..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/allocations/impl/AllocatedImpl.java
+++ /dev/null
@@ -1,249 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.allocations.impl;
-
-import java.util.Iterator;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.BasicEList;
-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.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.BasicInternalEList;
-import org.eclipse.papyrus.sysml.allocations.Allocate;
-import org.eclipse.papyrus.sysml.allocations.Allocated;
-import org.eclipse.papyrus.sysml.allocations.AllocationsPackage;
-import org.eclipse.uml2.uml.Dependency;
-import org.eclipse.uml2.uml.DirectedRelationship;
-import org.eclipse.uml2.uml.Element;
-import org.eclipse.uml2.uml.NamedElement;
-import org.eclipse.uml2.uml.util.UMLUtil;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Allocated</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.allocations.impl.AllocatedImpl#getBase_NamedElement <em>Base Named Element</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.allocations.impl.AllocatedImpl#getAllocatedFrom <em>Allocated From</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.allocations.impl.AllocatedImpl#getAllocatedTo <em>Allocated To</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class AllocatedImpl extends EObjectImpl implements Allocated {
-
- /**
- * The cached value of the '{@link #getBase_NamedElement() <em>Base Named Element</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_NamedElement()
- * @generated
- * @ordered
- */
- protected NamedElement base_NamedElement;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected AllocatedImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NamedElement basicGetBase_NamedElement() {
- return base_NamedElement;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case AllocationsPackage.ALLOCATED__BASE_NAMED_ELEMENT:
- if(resolve)
- return getBase_NamedElement();
- return basicGetBase_NamedElement();
- case AllocationsPackage.ALLOCATED__ALLOCATED_FROM:
- return getAllocatedFrom();
- case AllocationsPackage.ALLOCATED__ALLOCATED_TO:
- return getAllocatedTo();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case AllocationsPackage.ALLOCATED__BASE_NAMED_ELEMENT:
- return base_NamedElement != null;
- case AllocationsPackage.ALLOCATED__ALLOCATED_FROM:
- return !getAllocatedFrom().isEmpty();
- case AllocationsPackage.ALLOCATED__ALLOCATED_TO:
- return !getAllocatedTo().isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case AllocationsPackage.ALLOCATED__BASE_NAMED_ELEMENT:
- setBase_NamedElement((NamedElement)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return AllocationsPackage.Literals.ALLOCATED;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case AllocationsPackage.ALLOCATED__BASE_NAMED_ELEMENT:
- setBase_NamedElement((NamedElement)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public EList<NamedElement> getAllocatedFrom() {
- // AllocatedFrom property lists all the named elements linked to current
- // by an Allocate link.
- // Current element is the target of the Allocate link.
- EList<NamedElement> allocatedFrom = new BasicEList<NamedElement>();
- Allocate currentAllocate = null;
-
- if(getBase_NamedElement() != null) {
- // Find Allocate link
- Iterator<DirectedRelationship> itDep = getBase_NamedElement().getTargetDirectedRelationships().iterator();
- while(itDep.hasNext()) {
- DirectedRelationship currentDRelationship = itDep.next();
- currentAllocate = UMLUtil.getStereotypeApplication(currentDRelationship, Allocate.class);
-
- if(currentAllocate != null) {
- EList<Element> targets = currentAllocate.getBase_Abstraction().getSources();
- Iterator<Element> it = targets.iterator();
- while(it.hasNext()) {
- Element currentElt = it.next();
- if(currentElt instanceof NamedElement) {
- allocatedFrom.add((NamedElement)currentElt);
- }
- }
- }
- }
- }
- // Convert to InternalEList<?>
- return new BasicInternalEList<NamedElement>(NamedElement.class, allocatedFrom.size(), allocatedFrom.toArray());
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public EList<NamedElement> getAllocatedTo() {
- // AllocatedFrom property lists all the named elements linked to current
- // by an Allocate link.
- // Current element is the target of the Allocate link.
- EList<NamedElement> allocatedFrom = new BasicEList<NamedElement>();
- Allocate currentAllocate = null;
-
- if(getBase_NamedElement() != null) {
- // Find Allocate link
- Iterator<Dependency> itDep = getBase_NamedElement().getClientDependencies().iterator();
- while(itDep.hasNext()) {
- Dependency currentDependency = itDep.next();
- currentAllocate = UMLUtil.getStereotypeApplication(currentDependency, Allocate.class);
-
- if(currentAllocate != null) {
- allocatedFrom.addAll(currentAllocate.getBase_Abstraction().getSuppliers());
- }
- }
- }
- // Convert to InternalEList<?>
- return new BasicInternalEList<NamedElement>(NamedElement.class, allocatedFrom.size(), allocatedFrom.toArray());
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NamedElement getBase_NamedElement() {
- if(base_NamedElement != null && base_NamedElement.eIsProxy()) {
- InternalEObject oldBase_NamedElement = (InternalEObject)base_NamedElement;
- base_NamedElement = (NamedElement)eResolveProxy(oldBase_NamedElement);
- if(base_NamedElement != oldBase_NamedElement) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, AllocationsPackage.ALLOCATED__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement));
- }
- }
- return base_NamedElement;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_NamedElement(NamedElement newBase_NamedElement) {
- NamedElement oldBase_NamedElement = base_NamedElement;
- base_NamedElement = newBase_NamedElement;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, AllocationsPackage.ALLOCATED__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement));
- }
-
-} // AllocatedImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/allocations/impl/AllocationsFactoryImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/allocations/impl/AllocationsFactoryImpl.java
deleted file mode 100644
index 9b3ccefc1e1..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/allocations/impl/AllocationsFactoryImpl.java
+++ /dev/null
@@ -1,134 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.allocations.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.sysml.allocations.Allocate;
-import org.eclipse.papyrus.sysml.allocations.AllocateActivityPartition;
-import org.eclipse.papyrus.sysml.allocations.Allocated;
-import org.eclipse.papyrus.sysml.allocations.AllocationsFactory;
-import org.eclipse.papyrus.sysml.allocations.AllocationsPackage;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class AllocationsFactoryImpl extends EFactoryImpl implements AllocationsFactory {
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static AllocationsPackage getPackage() {
- return AllocationsPackage.eINSTANCE;
- }
-
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public static AllocationsFactory init() {
- try {
- AllocationsFactory theAllocationsFactory = (AllocationsFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/0.7.0/SysML/Allocations");
- if(theAllocationsFactory != null) {
- return theAllocationsFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new AllocationsFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public AllocationsFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch(eClass.getClassifierID()) {
- case AllocationsPackage.ALLOCATE:
- return createAllocate();
- case AllocationsPackage.ALLOCATED:
- return createAllocated();
- case AllocationsPackage.ALLOCATE_ACTIVITY_PARTITION:
- return createAllocateActivityPartition();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Allocate createAllocate() {
- AllocateImpl allocate = new AllocateImpl();
- return allocate;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public AllocateActivityPartition createAllocateActivityPartition() {
- AllocateActivityPartitionImpl allocateActivityPartition = new AllocateActivityPartitionImpl();
- return allocateActivityPartition;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Allocated createAllocated() {
- AllocatedImpl allocated = new AllocatedImpl();
- return allocated;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public AllocationsPackage getAllocationsPackage() {
- return (AllocationsPackage)getEPackage();
- }
-
-} // AllocationsFactoryImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/allocations/impl/AllocationsPackageImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/allocations/impl/AllocationsPackageImpl.java
deleted file mode 100644
index 36fc0bc8e1f..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/allocations/impl/AllocationsPackageImpl.java
+++ /dev/null
@@ -1,332 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.allocations.impl;
-
-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.sysml.SysmlPackage;
-import org.eclipse.papyrus.sysml.activities.ActivitiesPackage;
-import org.eclipse.papyrus.sysml.activities.impl.ActivitiesPackageImpl;
-import org.eclipse.papyrus.sysml.allocations.Allocate;
-import org.eclipse.papyrus.sysml.allocations.AllocateActivityPartition;
-import org.eclipse.papyrus.sysml.allocations.Allocated;
-import org.eclipse.papyrus.sysml.allocations.AllocationsFactory;
-import org.eclipse.papyrus.sysml.allocations.AllocationsPackage;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-import org.eclipse.papyrus.sysml.blocks.impl.BlocksPackageImpl;
-import org.eclipse.papyrus.sysml.constraints.ConstraintsPackage;
-import org.eclipse.papyrus.sysml.constraints.impl.ConstraintsPackageImpl;
-import org.eclipse.papyrus.sysml.impl.SysmlPackageImpl;
-import org.eclipse.papyrus.sysml.interactions.InteractionsPackage;
-import org.eclipse.papyrus.sysml.interactions.impl.InteractionsPackageImpl;
-import org.eclipse.papyrus.sysml.modelelements.ModelelementsPackage;
-import org.eclipse.papyrus.sysml.modelelements.impl.ModelelementsPackageImpl;
-import org.eclipse.papyrus.sysml.portandflows.PortandflowsPackage;
-import org.eclipse.papyrus.sysml.portandflows.impl.PortandflowsPackageImpl;
-import org.eclipse.papyrus.sysml.requirements.RequirementsPackage;
-import org.eclipse.papyrus.sysml.requirements.impl.RequirementsPackageImpl;
-import org.eclipse.papyrus.sysml.statemachines.StatemachinesPackage;
-import org.eclipse.papyrus.sysml.statemachines.impl.StatemachinesPackageImpl;
-import org.eclipse.papyrus.sysml.usecases.UsecasesPackage;
-import org.eclipse.papyrus.sysml.usecases.impl.UsecasesPackageImpl;
-import org.eclipse.uml2.uml.UMLPackage;
-import org.eclipse.uml2.uml.profile.l2.L2Package;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class AllocationsPackageImpl extends EPackageImpl implements AllocationsPackage {
-
- /**
- * <!-- 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 AllocationsPackage#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 AllocationsPackage init() {
- if(isInited)
- return (AllocationsPackage)EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI);
-
- // Obtain or create and register package
- AllocationsPackageImpl theAllocationsPackage = (AllocationsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof AllocationsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new AllocationsPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- L2Package.eINSTANCE.eClass();
-
- // Obtain or create and register interdependencies
- SysmlPackageImpl theSysmlPackage = (SysmlPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SysmlPackage.eNS_URI) instanceof SysmlPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SysmlPackage.eNS_URI) : SysmlPackage.eINSTANCE);
- ModelelementsPackageImpl theModelelementsPackage = (ModelelementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) instanceof ModelelementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) : ModelelementsPackage.eINSTANCE);
- BlocksPackageImpl theBlocksPackage = (BlocksPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI) instanceof BlocksPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI) : BlocksPackage.eINSTANCE);
- PortandflowsPackageImpl thePortandflowsPackage = (PortandflowsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) instanceof PortandflowsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) : PortandflowsPackage.eINSTANCE);
- ConstraintsPackageImpl theConstraintsPackage = (ConstraintsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI) instanceof ConstraintsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI) : ConstraintsPackage.eINSTANCE);
- ActivitiesPackageImpl theActivitiesPackage = (ActivitiesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) instanceof ActivitiesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) : ActivitiesPackage.eINSTANCE);
- RequirementsPackageImpl theRequirementsPackage = (RequirementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) instanceof RequirementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) : RequirementsPackage.eINSTANCE);
- InteractionsPackageImpl theInteractionsPackage = (InteractionsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI) instanceof InteractionsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI) : InteractionsPackage.eINSTANCE);
- StatemachinesPackageImpl theStatemachinesPackage = (StatemachinesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI) instanceof StatemachinesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI) : StatemachinesPackage.eINSTANCE);
- UsecasesPackageImpl theUsecasesPackage = (UsecasesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) instanceof UsecasesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) : UsecasesPackage.eINSTANCE);
-
- // Create package meta-data objects
- theAllocationsPackage.createPackageContents();
- theSysmlPackage.createPackageContents();
- theModelelementsPackage.createPackageContents();
- theBlocksPackage.createPackageContents();
- thePortandflowsPackage.createPackageContents();
- theConstraintsPackage.createPackageContents();
- theActivitiesPackage.createPackageContents();
- theRequirementsPackage.createPackageContents();
- theInteractionsPackage.createPackageContents();
- theStatemachinesPackage.createPackageContents();
- theUsecasesPackage.createPackageContents();
-
- // Initialize created meta-data
- theAllocationsPackage.initializePackageContents();
- theSysmlPackage.initializePackageContents();
- theModelelementsPackage.initializePackageContents();
- theBlocksPackage.initializePackageContents();
- thePortandflowsPackage.initializePackageContents();
- theConstraintsPackage.initializePackageContents();
- theActivitiesPackage.initializePackageContents();
- theRequirementsPackage.initializePackageContents();
- theInteractionsPackage.initializePackageContents();
- theStatemachinesPackage.initializePackageContents();
- theUsecasesPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theAllocationsPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(AllocationsPackage.eNS_URI, theAllocationsPackage);
- return theAllocationsPackage;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass allocateEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass allocatedEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass allocateActivityPartitionEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * 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.sysml.allocations.AllocationsPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private AllocationsPackageImpl() {
- super(eNS_URI, AllocationsFactory.eINSTANCE);
- }
-
- /**
- * 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
- allocateEClass = createEClass(ALLOCATE);
- createEReference(allocateEClass, ALLOCATE__BASE_ABSTRACTION);
-
- allocatedEClass = createEClass(ALLOCATED);
- createEReference(allocatedEClass, ALLOCATED__BASE_NAMED_ELEMENT);
- createEReference(allocatedEClass, ALLOCATED__ALLOCATED_FROM);
- createEReference(allocatedEClass, ALLOCATED__ALLOCATED_TO);
-
- allocateActivityPartitionEClass = createEClass(ALLOCATE_ACTIVITY_PARTITION);
- createEReference(allocateActivityPartitionEClass, ALLOCATE_ACTIVITY_PARTITION__BASE_ACTIVITY_PARTITION);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getAllocate() {
- return allocateEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getAllocate_Base_Abstraction() {
- return (EReference)allocateEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getAllocateActivityPartition() {
- return allocateActivityPartitionEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getAllocateActivityPartition_Base_ActivityPartition() {
- return (EReference)allocateActivityPartitionEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getAllocated() {
- return allocatedEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getAllocated_AllocatedFrom() {
- return (EReference)allocatedEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getAllocated_AllocatedTo() {
- return (EReference)allocatedEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getAllocated_Base_NamedElement() {
- return (EReference)allocatedEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public AllocationsFactory getAllocationsFactory() {
- return (AllocationsFactory)getEFactoryInstance();
- }
-
- /**
- * 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
- UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
-
- // Initialize classes and features; add operations and parameters
- initEClass(allocateEClass, Allocate.class, "Allocate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getAllocate_Base_Abstraction(), theUMLPackage.getAbstraction(), null, "base_Abstraction", null, 1, 1, Allocate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(allocatedEClass, Allocated.class, "Allocated", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getAllocated_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 1, 1, Allocated.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getAllocated_AllocatedFrom(), theUMLPackage.getNamedElement(), null, "allocatedFrom", null, 0, -1, Allocated.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
- initEReference(getAllocated_AllocatedTo(), theUMLPackage.getNamedElement(), null, "allocatedTo", null, 0, -1, Allocated.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
-
- initEClass(allocateActivityPartitionEClass, AllocateActivityPartition.class, "AllocateActivityPartition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getAllocateActivityPartition_Base_ActivityPartition(), theUMLPackage.getActivityPartition(), null, "base_ActivityPartition", null, 1, 1, AllocateActivityPartition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- }
-
-} // AllocationsPackageImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/BindingConnectorImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/BindingConnectorImpl.java
deleted file mode 100644
index c5f9cae5844..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/BindingConnectorImpl.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.blocks.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.blocks.BindingConnector;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-import org.eclipse.uml2.uml.Connector;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Binding Connector</b></em> '. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.blocks.impl.BindingConnectorImpl#getBase_Connector <em>Base Connector</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class BindingConnectorImpl extends EObjectImpl implements BindingConnector {
-
- /**
- * The cached value of the '{@link #getBase_Connector() <em>Base Connector</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_Connector()
- * @generated
- * @ordered
- */
- protected Connector base_Connector;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected BindingConnectorImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Connector basicGetBase_Connector() {
- return base_Connector;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case BlocksPackage.BINDING_CONNECTOR__BASE_CONNECTOR:
- if(resolve)
- return getBase_Connector();
- return basicGetBase_Connector();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case BlocksPackage.BINDING_CONNECTOR__BASE_CONNECTOR:
- return base_Connector != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case BlocksPackage.BINDING_CONNECTOR__BASE_CONNECTOR:
- setBase_Connector((Connector)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return BlocksPackage.Literals.BINDING_CONNECTOR;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case BlocksPackage.BINDING_CONNECTOR__BASE_CONNECTOR:
- setBase_Connector((Connector)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Connector getBase_Connector() {
- if(base_Connector != null && base_Connector.eIsProxy()) {
- InternalEObject oldBase_Connector = (InternalEObject)base_Connector;
- base_Connector = (Connector)eResolveProxy(oldBase_Connector);
- if(base_Connector != oldBase_Connector) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.BINDING_CONNECTOR__BASE_CONNECTOR, oldBase_Connector, base_Connector));
- }
- }
- return base_Connector;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Connector(Connector newBase_Connector) {
- Connector oldBase_Connector = base_Connector;
- base_Connector = newBase_Connector;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.BINDING_CONNECTOR__BASE_CONNECTOR, oldBase_Connector, base_Connector));
- }
-
-} // BindingConnectorImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/BlockImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/BlockImpl.java
deleted file mode 100644
index b8df60b0a10..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/BlockImpl.java
+++ /dev/null
@@ -1,235 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.blocks.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.blocks.Block;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Block</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.blocks.impl.BlockImpl#isIsEncapsulated <em>Is Encapsulated</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.blocks.impl.BlockImpl#getBase_Class <em>Base Class</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class BlockImpl extends EObjectImpl implements Block {
-
- /**
- * The default value of the '{@link #isIsEncapsulated() <em>Is Encapsulated</em>}' attribute.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #isIsEncapsulated()
- * @generated
- * @ordered
- */
- protected static final boolean IS_ENCAPSULATED_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isIsEncapsulated() <em>Is Encapsulated</em>}' attribute.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #isIsEncapsulated()
- * @generated
- * @ordered
- */
- protected boolean isEncapsulated = IS_ENCAPSULATED_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getBase_Class() <em>Base Class</em>}' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getBase_Class()
- * @generated
- * @ordered
- */
- protected org.eclipse.uml2.uml.Class base_Class;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected BlockImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public org.eclipse.uml2.uml.Class basicGetBase_Class() {
- return base_Class;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case BlocksPackage.BLOCK__IS_ENCAPSULATED:
- return isIsEncapsulated();
- case BlocksPackage.BLOCK__BASE_CLASS:
- if(resolve)
- return getBase_Class();
- return basicGetBase_Class();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case BlocksPackage.BLOCK__IS_ENCAPSULATED:
- return isEncapsulated != IS_ENCAPSULATED_EDEFAULT;
- case BlocksPackage.BLOCK__BASE_CLASS:
- return base_Class != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case BlocksPackage.BLOCK__IS_ENCAPSULATED:
- setIsEncapsulated((Boolean)newValue);
- return;
- case BlocksPackage.BLOCK__BASE_CLASS:
- setBase_Class((org.eclipse.uml2.uml.Class)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return BlocksPackage.Literals.BLOCK;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case BlocksPackage.BLOCK__IS_ENCAPSULATED:
- setIsEncapsulated(IS_ENCAPSULATED_EDEFAULT);
- return;
- case BlocksPackage.BLOCK__BASE_CLASS:
- setBase_Class((org.eclipse.uml2.uml.Class)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public org.eclipse.uml2.uml.Class getBase_Class() {
- if(base_Class != null && base_Class.eIsProxy()) {
- InternalEObject oldBase_Class = (InternalEObject)base_Class;
- base_Class = (org.eclipse.uml2.uml.Class)eResolveProxy(oldBase_Class);
- if(base_Class != oldBase_Class) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.BLOCK__BASE_CLASS, oldBase_Class, base_Class));
- }
- }
- return base_Class;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isIsEncapsulated() {
- return isEncapsulated;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Class(org.eclipse.uml2.uml.Class newBase_Class) {
- org.eclipse.uml2.uml.Class oldBase_Class = base_Class;
- base_Class = newBase_Class;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.BLOCK__BASE_CLASS, oldBase_Class, base_Class));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setIsEncapsulated(boolean newIsEncapsulated) {
- boolean oldIsEncapsulated = isEncapsulated;
- isEncapsulated = newIsEncapsulated;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.BLOCK__IS_ENCAPSULATED, oldIsEncapsulated, isEncapsulated));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if(eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (isEncapsulated: ");
- result.append(isEncapsulated);
- result.append(')');
- return result.toString();
- }
-
-} // BlockImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/BlocksFactoryImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/BlocksFactoryImpl.java
deleted file mode 100644
index d5e63c1f098..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/BlocksFactoryImpl.java
+++ /dev/null
@@ -1,225 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.blocks.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.sysml.blocks.BindingConnector;
-import org.eclipse.papyrus.sysml.blocks.Block;
-import org.eclipse.papyrus.sysml.blocks.BlocksFactory;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-import org.eclipse.papyrus.sysml.blocks.ConnectorProperty;
-import org.eclipse.papyrus.sysml.blocks.Dimension;
-import org.eclipse.papyrus.sysml.blocks.DistributedProperty;
-import org.eclipse.papyrus.sysml.blocks.NestedConnectorEnd;
-import org.eclipse.papyrus.sysml.blocks.ParticipantProperty;
-import org.eclipse.papyrus.sysml.blocks.PropertySpecificType;
-import org.eclipse.papyrus.sysml.blocks.Unit;
-import org.eclipse.papyrus.sysml.blocks.ValueType;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class BlocksFactoryImpl extends EFactoryImpl implements BlocksFactory {
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static BlocksPackage getPackage() {
- return BlocksPackage.eINSTANCE;
- }
-
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public static BlocksFactory init() {
- try {
- BlocksFactory theBlocksFactory = (BlocksFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/0.7.0/SysML/Blocks");
- if(theBlocksFactory != null) {
- return theBlocksFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new BlocksFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public BlocksFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch(eClass.getClassifierID()) {
- case BlocksPackage.BLOCK:
- return createBlock();
- case BlocksPackage.DISTRIBUTED_PROPERTY:
- return createDistributedProperty();
- case BlocksPackage.DIMENSION:
- return createDimension();
- case BlocksPackage.UNIT:
- return createUnit();
- case BlocksPackage.VALUE_TYPE:
- return createValueType();
- case BlocksPackage.NESTED_CONNECTOR_END:
- return createNestedConnectorEnd();
- case BlocksPackage.PARTICIPANT_PROPERTY:
- return createParticipantProperty();
- case BlocksPackage.CONNECTOR_PROPERTY:
- return createConnectorProperty();
- case BlocksPackage.BINDING_CONNECTOR:
- return createBindingConnector();
- case BlocksPackage.PROPERTY_SPECIFIC_TYPE:
- return createPropertySpecificType();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public BindingConnector createBindingConnector() {
- BindingConnectorImpl bindingConnector = new BindingConnectorImpl();
- return bindingConnector;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Block createBlock() {
- BlockImpl block = new BlockImpl();
- return block;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ConnectorProperty createConnectorProperty() {
- ConnectorPropertyImpl connectorProperty = new ConnectorPropertyImpl();
- return connectorProperty;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Dimension createDimension() {
- DimensionImpl dimension = new DimensionImpl();
- return dimension;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public DistributedProperty createDistributedProperty() {
- DistributedPropertyImpl distributedProperty = new DistributedPropertyImpl();
- return distributedProperty;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NestedConnectorEnd createNestedConnectorEnd() {
- NestedConnectorEndImpl nestedConnectorEnd = new NestedConnectorEndImpl();
- return nestedConnectorEnd;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ParticipantProperty createParticipantProperty() {
- ParticipantPropertyImpl participantProperty = new ParticipantPropertyImpl();
- return participantProperty;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public PropertySpecificType createPropertySpecificType() {
- PropertySpecificTypeImpl propertySpecificType = new PropertySpecificTypeImpl();
- return propertySpecificType;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Unit createUnit() {
- UnitImpl unit = new UnitImpl();
- return unit;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ValueType createValueType() {
- ValueTypeImpl valueType = new ValueTypeImpl();
- return valueType;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public BlocksPackage getBlocksPackage() {
- return (BlocksPackage)getEPackage();
- }
-
-} // BlocksFactoryImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/BlocksPackageImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/BlocksPackageImpl.java
deleted file mode 100644
index d97fae1c3ce..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/BlocksPackageImpl.java
+++ /dev/null
@@ -1,612 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.blocks.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.sysml.SysmlPackage;
-import org.eclipse.papyrus.sysml.activities.ActivitiesPackage;
-import org.eclipse.papyrus.sysml.activities.impl.ActivitiesPackageImpl;
-import org.eclipse.papyrus.sysml.allocations.AllocationsPackage;
-import org.eclipse.papyrus.sysml.allocations.impl.AllocationsPackageImpl;
-import org.eclipse.papyrus.sysml.blocks.BindingConnector;
-import org.eclipse.papyrus.sysml.blocks.Block;
-import org.eclipse.papyrus.sysml.blocks.BlocksFactory;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-import org.eclipse.papyrus.sysml.blocks.ConnectorProperty;
-import org.eclipse.papyrus.sysml.blocks.Dimension;
-import org.eclipse.papyrus.sysml.blocks.DistributedProperty;
-import org.eclipse.papyrus.sysml.blocks.NestedConnectorEnd;
-import org.eclipse.papyrus.sysml.blocks.ParticipantProperty;
-import org.eclipse.papyrus.sysml.blocks.PropertySpecificType;
-import org.eclipse.papyrus.sysml.blocks.Unit;
-import org.eclipse.papyrus.sysml.blocks.ValueType;
-import org.eclipse.papyrus.sysml.constraints.ConstraintsPackage;
-import org.eclipse.papyrus.sysml.constraints.impl.ConstraintsPackageImpl;
-import org.eclipse.papyrus.sysml.impl.SysmlPackageImpl;
-import org.eclipse.papyrus.sysml.interactions.InteractionsPackage;
-import org.eclipse.papyrus.sysml.interactions.impl.InteractionsPackageImpl;
-import org.eclipse.papyrus.sysml.modelelements.ModelelementsPackage;
-import org.eclipse.papyrus.sysml.modelelements.impl.ModelelementsPackageImpl;
-import org.eclipse.papyrus.sysml.portandflows.PortandflowsPackage;
-import org.eclipse.papyrus.sysml.portandflows.impl.PortandflowsPackageImpl;
-import org.eclipse.papyrus.sysml.requirements.RequirementsPackage;
-import org.eclipse.papyrus.sysml.requirements.impl.RequirementsPackageImpl;
-import org.eclipse.papyrus.sysml.statemachines.StatemachinesPackage;
-import org.eclipse.papyrus.sysml.statemachines.impl.StatemachinesPackageImpl;
-import org.eclipse.papyrus.sysml.usecases.UsecasesPackage;
-import org.eclipse.papyrus.sysml.usecases.impl.UsecasesPackageImpl;
-import org.eclipse.uml2.uml.UMLPackage;
-import org.eclipse.uml2.uml.profile.l2.L2Package;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class BlocksPackageImpl extends EPackageImpl implements BlocksPackage {
-
- /**
- * <!-- 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 BlocksPackage#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 BlocksPackage init() {
- if(isInited)
- return (BlocksPackage)EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI);
-
- // Obtain or create and register package
- BlocksPackageImpl theBlocksPackage = (BlocksPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof BlocksPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new BlocksPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- L2Package.eINSTANCE.eClass();
-
- // Obtain or create and register interdependencies
- SysmlPackageImpl theSysmlPackage = (SysmlPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SysmlPackage.eNS_URI) instanceof SysmlPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SysmlPackage.eNS_URI) : SysmlPackage.eINSTANCE);
- ModelelementsPackageImpl theModelelementsPackage = (ModelelementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) instanceof ModelelementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) : ModelelementsPackage.eINSTANCE);
- PortandflowsPackageImpl thePortandflowsPackage = (PortandflowsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) instanceof PortandflowsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) : PortandflowsPackage.eINSTANCE);
- ConstraintsPackageImpl theConstraintsPackage = (ConstraintsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI) instanceof ConstraintsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI) : ConstraintsPackage.eINSTANCE);
- ActivitiesPackageImpl theActivitiesPackage = (ActivitiesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) instanceof ActivitiesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) : ActivitiesPackage.eINSTANCE);
- AllocationsPackageImpl theAllocationsPackage = (AllocationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) instanceof AllocationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) : AllocationsPackage.eINSTANCE);
- RequirementsPackageImpl theRequirementsPackage = (RequirementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) instanceof RequirementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) : RequirementsPackage.eINSTANCE);
- InteractionsPackageImpl theInteractionsPackage = (InteractionsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI) instanceof InteractionsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI) : InteractionsPackage.eINSTANCE);
- StatemachinesPackageImpl theStatemachinesPackage = (StatemachinesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI) instanceof StatemachinesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI) : StatemachinesPackage.eINSTANCE);
- UsecasesPackageImpl theUsecasesPackage = (UsecasesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) instanceof UsecasesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) : UsecasesPackage.eINSTANCE);
-
- // Create package meta-data objects
- theBlocksPackage.createPackageContents();
- theSysmlPackage.createPackageContents();
- theModelelementsPackage.createPackageContents();
- thePortandflowsPackage.createPackageContents();
- theConstraintsPackage.createPackageContents();
- theActivitiesPackage.createPackageContents();
- theAllocationsPackage.createPackageContents();
- theRequirementsPackage.createPackageContents();
- theInteractionsPackage.createPackageContents();
- theStatemachinesPackage.createPackageContents();
- theUsecasesPackage.createPackageContents();
-
- // Initialize created meta-data
- theBlocksPackage.initializePackageContents();
- theSysmlPackage.initializePackageContents();
- theModelelementsPackage.initializePackageContents();
- thePortandflowsPackage.initializePackageContents();
- theConstraintsPackage.initializePackageContents();
- theActivitiesPackage.initializePackageContents();
- theAllocationsPackage.initializePackageContents();
- theRequirementsPackage.initializePackageContents();
- theInteractionsPackage.initializePackageContents();
- theStatemachinesPackage.initializePackageContents();
- theUsecasesPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theBlocksPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(BlocksPackage.eNS_URI, theBlocksPackage);
- return theBlocksPackage;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass blockEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass distributedPropertyEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass dimensionEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass unitEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass valueTypeEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass nestedConnectorEndEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass participantPropertyEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass connectorPropertyEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass bindingConnectorEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass propertySpecificTypeEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * 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.sysml.blocks.BlocksPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private BlocksPackageImpl() {
- super(eNS_URI, BlocksFactory.eINSTANCE);
- }
-
- /**
- * 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
- blockEClass = createEClass(BLOCK);
- createEAttribute(blockEClass, BLOCK__IS_ENCAPSULATED);
- createEReference(blockEClass, BLOCK__BASE_CLASS);
-
- distributedPropertyEClass = createEClass(DISTRIBUTED_PROPERTY);
- createEReference(distributedPropertyEClass, DISTRIBUTED_PROPERTY__BASE_PROPERTY);
-
- dimensionEClass = createEClass(DIMENSION);
- createEReference(dimensionEClass, DIMENSION__BASE_INSTANCE_SPECIFICATION);
-
- unitEClass = createEClass(UNIT);
- createEReference(unitEClass, UNIT__BASE_INSTANCE_SPECIFICATION);
- createEReference(unitEClass, UNIT__DIMENSION);
-
- valueTypeEClass = createEClass(VALUE_TYPE);
- createEReference(valueTypeEClass, VALUE_TYPE__BASE_DATA_TYPE);
- createEReference(valueTypeEClass, VALUE_TYPE__UNIT);
- createEReference(valueTypeEClass, VALUE_TYPE__DIMENSION);
-
- nestedConnectorEndEClass = createEClass(NESTED_CONNECTOR_END);
- createEReference(nestedConnectorEndEClass, NESTED_CONNECTOR_END__PROPERTY_PATH);
- createEReference(nestedConnectorEndEClass, NESTED_CONNECTOR_END__BASE_CONNECTOR_END);
-
- participantPropertyEClass = createEClass(PARTICIPANT_PROPERTY);
- createEReference(participantPropertyEClass, PARTICIPANT_PROPERTY__BASE_PROPERTY);
- createEReference(participantPropertyEClass, PARTICIPANT_PROPERTY__END);
-
- connectorPropertyEClass = createEClass(CONNECTOR_PROPERTY);
- createEReference(connectorPropertyEClass, CONNECTOR_PROPERTY__BASE_PROPERTY);
- createEReference(connectorPropertyEClass, CONNECTOR_PROPERTY__CONNECTOR);
-
- bindingConnectorEClass = createEClass(BINDING_CONNECTOR);
- createEReference(bindingConnectorEClass, BINDING_CONNECTOR__BASE_CONNECTOR);
-
- propertySpecificTypeEClass = createEClass(PROPERTY_SPECIFIC_TYPE);
- createEReference(propertySpecificTypeEClass, PROPERTY_SPECIFIC_TYPE__BASE_CLASSIFIER);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getBindingConnector() {
- return bindingConnectorEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getBindingConnector_Base_Connector() {
- return (EReference)bindingConnectorEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getBlock() {
- return blockEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getBlock_Base_Class() {
- return (EReference)blockEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getBlock_IsEncapsulated() {
- return (EAttribute)blockEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public BlocksFactory getBlocksFactory() {
- return (BlocksFactory)getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getConnectorProperty() {
- return connectorPropertyEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getConnectorProperty_Base_Property() {
- return (EReference)connectorPropertyEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getConnectorProperty_Connector() {
- return (EReference)connectorPropertyEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getDimension() {
- return dimensionEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getDimension_Base_InstanceSpecification() {
- return (EReference)dimensionEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getDistributedProperty() {
- return distributedPropertyEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getDistributedProperty_Base_Property() {
- return (EReference)distributedPropertyEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getNestedConnectorEnd() {
- return nestedConnectorEndEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getNestedConnectorEnd_Base_ConnectorEnd() {
- return (EReference)nestedConnectorEndEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getNestedConnectorEnd_PropertyPath() {
- return (EReference)nestedConnectorEndEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getParticipantProperty() {
- return participantPropertyEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getParticipantProperty_Base_Property() {
- return (EReference)participantPropertyEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getParticipantProperty_End() {
- return (EReference)participantPropertyEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getPropertySpecificType() {
- return propertySpecificTypeEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getPropertySpecificType_Base_Classifier() {
- return (EReference)propertySpecificTypeEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getUnit() {
- return unitEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getUnit_Base_InstanceSpecification() {
- return (EReference)unitEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getUnit_Dimension() {
- return (EReference)unitEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getValueType() {
- return valueTypeEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getValueType_Base_DataType() {
- return (EReference)valueTypeEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getValueType_Dimension() {
- return (EReference)valueTypeEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getValueType_Unit() {
- return (EReference)valueTypeEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * 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
- UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
-
- // Initialize classes and features; add operations and parameters
- initEClass(blockEClass, Block.class, "Block", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getBlock_IsEncapsulated(), ecorePackage.getEBoolean(), "isEncapsulated", null, 0, 1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getBlock_Base_Class(), theUMLPackage.getClass_(), null, "base_Class", null, 1, 1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(distributedPropertyEClass, DistributedProperty.class, "DistributedProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getDistributedProperty_Base_Property(), theUMLPackage.getProperty(), null, "base_Property", null, 1, 1, DistributedProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(dimensionEClass, Dimension.class, "Dimension", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getDimension_Base_InstanceSpecification(), theUMLPackage.getInstanceSpecification(), null, "base_InstanceSpecification", null, 1, 1, Dimension.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(unitEClass, Unit.class, "Unit", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getUnit_Base_InstanceSpecification(), theUMLPackage.getInstanceSpecification(), null, "base_InstanceSpecification", null, 1, 1, Unit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getUnit_Dimension(), this.getDimension(), null, "dimension", null, 0, 1, Unit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(valueTypeEClass, ValueType.class, "ValueType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getValueType_Base_DataType(), theUMLPackage.getDataType(), null, "base_DataType", null, 1, 1, ValueType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getValueType_Unit(), this.getUnit(), null, "unit", null, 0, 1, ValueType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getValueType_Dimension(), this.getDimension(), null, "dimension", null, 0, 1, ValueType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(nestedConnectorEndEClass, NestedConnectorEnd.class, "NestedConnectorEnd", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getNestedConnectorEnd_PropertyPath(), theUMLPackage.getProperty(), null, "propertyPath", null, 1, -1, NestedConnectorEnd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getNestedConnectorEnd_Base_ConnectorEnd(), theUMLPackage.getConnectorEnd(), null, "base_ConnectorEnd", null, 1, 1, NestedConnectorEnd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(participantPropertyEClass, ParticipantProperty.class, "ParticipantProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getParticipantProperty_Base_Property(), theUMLPackage.getProperty(), null, "base_Property", null, 1, 1, ParticipantProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getParticipantProperty_End(), theUMLPackage.getProperty(), null, "end", null, 1, 1, ParticipantProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(connectorPropertyEClass, ConnectorProperty.class, "ConnectorProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getConnectorProperty_Base_Property(), theUMLPackage.getProperty(), null, "base_Property", null, 1, 1, ConnectorProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getConnectorProperty_Connector(), theUMLPackage.getConnector(), null, "connector", null, 1, 1, ConnectorProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(bindingConnectorEClass, BindingConnector.class, "BindingConnector", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getBindingConnector_Base_Connector(), theUMLPackage.getConnector(), null, "base_Connector", null, 1, 1, BindingConnector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(propertySpecificTypeEClass, PropertySpecificType.class, "PropertySpecificType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getPropertySpecificType_Base_Classifier(), theUMLPackage.getClassifier(), null, "base_Classifier", null, 1, 1, PropertySpecificType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- }
-
-} // BlocksPackageImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/ConnectorPropertyImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/ConnectorPropertyImpl.java
deleted file mode 100644
index 8670bba7d04..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/ConnectorPropertyImpl.java
+++ /dev/null
@@ -1,228 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.blocks.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-import org.eclipse.papyrus.sysml.blocks.ConnectorProperty;
-import org.eclipse.uml2.uml.Connector;
-import org.eclipse.uml2.uml.Property;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Connector Property</b></em> '. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.blocks.impl.ConnectorPropertyImpl#getBase_Property <em>Base Property</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.blocks.impl.ConnectorPropertyImpl#getConnector <em>Connector</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ConnectorPropertyImpl extends EObjectImpl implements ConnectorProperty {
-
- /**
- * The cached value of the '{@link #getBase_Property() <em>Base Property</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_Property()
- * @generated
- * @ordered
- */
- protected Property base_Property;
-
- /**
- * The cached value of the '{@link #getConnector() <em>Connector</em>}' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getConnector()
- * @generated
- * @ordered
- */
- protected Connector connector;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ConnectorPropertyImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Property basicGetBase_Property() {
- return base_Property;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Connector basicGetConnector() {
- return connector;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case BlocksPackage.CONNECTOR_PROPERTY__BASE_PROPERTY:
- if(resolve)
- return getBase_Property();
- return basicGetBase_Property();
- case BlocksPackage.CONNECTOR_PROPERTY__CONNECTOR:
- if(resolve)
- return getConnector();
- return basicGetConnector();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case BlocksPackage.CONNECTOR_PROPERTY__BASE_PROPERTY:
- return base_Property != null;
- case BlocksPackage.CONNECTOR_PROPERTY__CONNECTOR:
- return connector != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case BlocksPackage.CONNECTOR_PROPERTY__BASE_PROPERTY:
- setBase_Property((Property)newValue);
- return;
- case BlocksPackage.CONNECTOR_PROPERTY__CONNECTOR:
- setConnector((Connector)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return BlocksPackage.Literals.CONNECTOR_PROPERTY;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case BlocksPackage.CONNECTOR_PROPERTY__BASE_PROPERTY:
- setBase_Property((Property)null);
- return;
- case BlocksPackage.CONNECTOR_PROPERTY__CONNECTOR:
- setConnector((Connector)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Property getBase_Property() {
- if(base_Property != null && base_Property.eIsProxy()) {
- InternalEObject oldBase_Property = (InternalEObject)base_Property;
- base_Property = (Property)eResolveProxy(oldBase_Property);
- if(base_Property != oldBase_Property) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.CONNECTOR_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property));
- }
- }
- return base_Property;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Connector getConnector() {
- if(connector != null && connector.eIsProxy()) {
- InternalEObject oldConnector = (InternalEObject)connector;
- connector = (Connector)eResolveProxy(oldConnector);
- if(connector != oldConnector) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.CONNECTOR_PROPERTY__CONNECTOR, oldConnector, connector));
- }
- }
- return connector;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Property(Property newBase_Property) {
- Property oldBase_Property = base_Property;
- base_Property = newBase_Property;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.CONNECTOR_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setConnector(Connector newConnector) {
- Connector oldConnector = connector;
- connector = newConnector;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.CONNECTOR_PROPERTY__CONNECTOR, oldConnector, connector));
- }
-
-} // ConnectorPropertyImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/DimensionImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/DimensionImpl.java
deleted file mode 100644
index caa08926255..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/DimensionImpl.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.blocks.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-import org.eclipse.papyrus.sysml.blocks.Dimension;
-import org.eclipse.uml2.uml.InstanceSpecification;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Dimension</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.blocks.impl.DimensionImpl#getBase_InstanceSpecification <em>Base Instance Specification</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class DimensionImpl extends EObjectImpl implements Dimension {
-
- /**
- * The cached value of the '{@link #getBase_InstanceSpecification() <em>Base Instance Specification</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getBase_InstanceSpecification()
- * @generated
- * @ordered
- */
- protected InstanceSpecification base_InstanceSpecification;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected DimensionImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public InstanceSpecification basicGetBase_InstanceSpecification() {
- return base_InstanceSpecification;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case BlocksPackage.DIMENSION__BASE_INSTANCE_SPECIFICATION:
- if(resolve)
- return getBase_InstanceSpecification();
- return basicGetBase_InstanceSpecification();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case BlocksPackage.DIMENSION__BASE_INSTANCE_SPECIFICATION:
- return base_InstanceSpecification != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case BlocksPackage.DIMENSION__BASE_INSTANCE_SPECIFICATION:
- setBase_InstanceSpecification((InstanceSpecification)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return BlocksPackage.Literals.DIMENSION;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case BlocksPackage.DIMENSION__BASE_INSTANCE_SPECIFICATION:
- setBase_InstanceSpecification((InstanceSpecification)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public InstanceSpecification getBase_InstanceSpecification() {
- if(base_InstanceSpecification != null && base_InstanceSpecification.eIsProxy()) {
- InternalEObject oldBase_InstanceSpecification = (InternalEObject)base_InstanceSpecification;
- base_InstanceSpecification = (InstanceSpecification)eResolveProxy(oldBase_InstanceSpecification);
- if(base_InstanceSpecification != oldBase_InstanceSpecification) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.DIMENSION__BASE_INSTANCE_SPECIFICATION, oldBase_InstanceSpecification, base_InstanceSpecification));
- }
- }
- return base_InstanceSpecification;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_InstanceSpecification(InstanceSpecification newBase_InstanceSpecification) {
- InstanceSpecification oldBase_InstanceSpecification = base_InstanceSpecification;
- base_InstanceSpecification = newBase_InstanceSpecification;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.DIMENSION__BASE_INSTANCE_SPECIFICATION, oldBase_InstanceSpecification, base_InstanceSpecification));
- }
-
-} // DimensionImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/DistributedPropertyImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/DistributedPropertyImpl.java
deleted file mode 100644
index 2b01a832c38..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/DistributedPropertyImpl.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.blocks.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-import org.eclipse.papyrus.sysml.blocks.DistributedProperty;
-import org.eclipse.uml2.uml.Property;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Distributed Property</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.blocks.impl.DistributedPropertyImpl#getBase_Property <em>Base Property</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class DistributedPropertyImpl extends EObjectImpl implements DistributedProperty {
-
- /**
- * The cached value of the '{@link #getBase_Property() <em>Base Property</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_Property()
- * @generated
- * @ordered
- */
- protected Property base_Property;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected DistributedPropertyImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Property basicGetBase_Property() {
- return base_Property;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case BlocksPackage.DISTRIBUTED_PROPERTY__BASE_PROPERTY:
- if(resolve)
- return getBase_Property();
- return basicGetBase_Property();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case BlocksPackage.DISTRIBUTED_PROPERTY__BASE_PROPERTY:
- return base_Property != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case BlocksPackage.DISTRIBUTED_PROPERTY__BASE_PROPERTY:
- setBase_Property((Property)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return BlocksPackage.Literals.DISTRIBUTED_PROPERTY;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case BlocksPackage.DISTRIBUTED_PROPERTY__BASE_PROPERTY:
- setBase_Property((Property)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Property getBase_Property() {
- if(base_Property != null && base_Property.eIsProxy()) {
- InternalEObject oldBase_Property = (InternalEObject)base_Property;
- base_Property = (Property)eResolveProxy(oldBase_Property);
- if(base_Property != oldBase_Property) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.DISTRIBUTED_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property));
- }
- }
- return base_Property;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Property(Property newBase_Property) {
- Property oldBase_Property = base_Property;
- base_Property = newBase_Property;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.DISTRIBUTED_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property));
- }
-
-} // DistributedPropertyImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/NestedConnectorEndImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/NestedConnectorEndImpl.java
deleted file mode 100644
index 8b2539e03d3..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/NestedConnectorEndImpl.java
+++ /dev/null
@@ -1,207 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.blocks.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-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.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EObjectResolvingEList;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-import org.eclipse.papyrus.sysml.blocks.NestedConnectorEnd;
-import org.eclipse.uml2.uml.ConnectorEnd;
-import org.eclipse.uml2.uml.Property;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Nested Connector End</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.blocks.impl.NestedConnectorEndImpl#getPropertyPath <em>Property Path</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.blocks.impl.NestedConnectorEndImpl#getBase_ConnectorEnd <em>Base Connector End</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class NestedConnectorEndImpl extends EObjectImpl implements NestedConnectorEnd {
-
- /**
- * The cached value of the '{@link #getPropertyPath() <em>Property Path</em>}' reference list.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getPropertyPath()
- * @generated
- * @ordered
- */
- protected EList<Property> propertyPath;
-
- /**
- * The cached value of the '{@link #getBase_ConnectorEnd() <em>Base Connector End</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_ConnectorEnd()
- * @generated
- * @ordered
- */
- protected ConnectorEnd base_ConnectorEnd;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected NestedConnectorEndImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ConnectorEnd basicGetBase_ConnectorEnd() {
- return base_ConnectorEnd;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case BlocksPackage.NESTED_CONNECTOR_END__PROPERTY_PATH:
- return getPropertyPath();
- case BlocksPackage.NESTED_CONNECTOR_END__BASE_CONNECTOR_END:
- if(resolve)
- return getBase_ConnectorEnd();
- return basicGetBase_ConnectorEnd();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case BlocksPackage.NESTED_CONNECTOR_END__PROPERTY_PATH:
- return propertyPath != null && !propertyPath.isEmpty();
- case BlocksPackage.NESTED_CONNECTOR_END__BASE_CONNECTOR_END:
- return base_ConnectorEnd != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case BlocksPackage.NESTED_CONNECTOR_END__PROPERTY_PATH:
- getPropertyPath().clear();
- getPropertyPath().addAll((Collection<? extends Property>)newValue);
- return;
- case BlocksPackage.NESTED_CONNECTOR_END__BASE_CONNECTOR_END:
- setBase_ConnectorEnd((ConnectorEnd)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return BlocksPackage.Literals.NESTED_CONNECTOR_END;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case BlocksPackage.NESTED_CONNECTOR_END__PROPERTY_PATH:
- getPropertyPath().clear();
- return;
- case BlocksPackage.NESTED_CONNECTOR_END__BASE_CONNECTOR_END:
- setBase_ConnectorEnd((ConnectorEnd)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ConnectorEnd getBase_ConnectorEnd() {
- if(base_ConnectorEnd != null && base_ConnectorEnd.eIsProxy()) {
- InternalEObject oldBase_ConnectorEnd = (InternalEObject)base_ConnectorEnd;
- base_ConnectorEnd = (ConnectorEnd)eResolveProxy(oldBase_ConnectorEnd);
- if(base_ConnectorEnd != oldBase_ConnectorEnd) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.NESTED_CONNECTOR_END__BASE_CONNECTOR_END, oldBase_ConnectorEnd, base_ConnectorEnd));
- }
- }
- return base_ConnectorEnd;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<Property> getPropertyPath() {
- if(propertyPath == null) {
- propertyPath = new EObjectResolvingEList<Property>(Property.class, this, BlocksPackage.NESTED_CONNECTOR_END__PROPERTY_PATH);
- }
- return propertyPath;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_ConnectorEnd(ConnectorEnd newBase_ConnectorEnd) {
- ConnectorEnd oldBase_ConnectorEnd = base_ConnectorEnd;
- base_ConnectorEnd = newBase_ConnectorEnd;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.NESTED_CONNECTOR_END__BASE_CONNECTOR_END, oldBase_ConnectorEnd, base_ConnectorEnd));
- }
-
-} // NestedConnectorEndImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/ParticipantPropertyImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/ParticipantPropertyImpl.java
deleted file mode 100644
index 00327227f50..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/ParticipantPropertyImpl.java
+++ /dev/null
@@ -1,227 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.blocks.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-import org.eclipse.papyrus.sysml.blocks.ParticipantProperty;
-import org.eclipse.uml2.uml.Property;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Participant Property</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.blocks.impl.ParticipantPropertyImpl#getBase_Property <em>Base Property</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.blocks.impl.ParticipantPropertyImpl#getEnd <em>End</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ParticipantPropertyImpl extends EObjectImpl implements ParticipantProperty {
-
- /**
- * The cached value of the '{@link #getBase_Property() <em>Base Property</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_Property()
- * @generated
- * @ordered
- */
- protected Property base_Property;
-
- /**
- * The cached value of the '{@link #getEnd() <em>End</em>}' reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getEnd()
- * @generated
- * @ordered
- */
- protected Property end;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ParticipantPropertyImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Property basicGetBase_Property() {
- return base_Property;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Property basicGetEnd() {
- return end;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case BlocksPackage.PARTICIPANT_PROPERTY__BASE_PROPERTY:
- if(resolve)
- return getBase_Property();
- return basicGetBase_Property();
- case BlocksPackage.PARTICIPANT_PROPERTY__END:
- if(resolve)
- return getEnd();
- return basicGetEnd();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case BlocksPackage.PARTICIPANT_PROPERTY__BASE_PROPERTY:
- return base_Property != null;
- case BlocksPackage.PARTICIPANT_PROPERTY__END:
- return end != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case BlocksPackage.PARTICIPANT_PROPERTY__BASE_PROPERTY:
- setBase_Property((Property)newValue);
- return;
- case BlocksPackage.PARTICIPANT_PROPERTY__END:
- setEnd((Property)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return BlocksPackage.Literals.PARTICIPANT_PROPERTY;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case BlocksPackage.PARTICIPANT_PROPERTY__BASE_PROPERTY:
- setBase_Property((Property)null);
- return;
- case BlocksPackage.PARTICIPANT_PROPERTY__END:
- setEnd((Property)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Property getBase_Property() {
- if(base_Property != null && base_Property.eIsProxy()) {
- InternalEObject oldBase_Property = (InternalEObject)base_Property;
- base_Property = (Property)eResolveProxy(oldBase_Property);
- if(base_Property != oldBase_Property) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.PARTICIPANT_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property));
- }
- }
- return base_Property;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Property getEnd() {
- if(end != null && end.eIsProxy()) {
- InternalEObject oldEnd = (InternalEObject)end;
- end = (Property)eResolveProxy(oldEnd);
- if(end != oldEnd) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.PARTICIPANT_PROPERTY__END, oldEnd, end));
- }
- }
- return end;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Property(Property newBase_Property) {
- Property oldBase_Property = base_Property;
- base_Property = newBase_Property;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.PARTICIPANT_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setEnd(Property newEnd) {
- Property oldEnd = end;
- end = newEnd;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.PARTICIPANT_PROPERTY__END, oldEnd, end));
- }
-
-} // ParticipantPropertyImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/PropertySpecificTypeImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/PropertySpecificTypeImpl.java
deleted file mode 100644
index 7d2c3e36133..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/PropertySpecificTypeImpl.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.blocks.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-import org.eclipse.papyrus.sysml.blocks.PropertySpecificType;
-import org.eclipse.uml2.uml.Classifier;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Property Specific Type</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.blocks.impl.PropertySpecificTypeImpl#getBase_Classifier <em>Base Classifier</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class PropertySpecificTypeImpl extends EObjectImpl implements PropertySpecificType {
-
- /**
- * The cached value of the '{@link #getBase_Classifier() <em>Base Classifier</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_Classifier()
- * @generated
- * @ordered
- */
- protected Classifier base_Classifier;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected PropertySpecificTypeImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Classifier basicGetBase_Classifier() {
- return base_Classifier;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case BlocksPackage.PROPERTY_SPECIFIC_TYPE__BASE_CLASSIFIER:
- if(resolve)
- return getBase_Classifier();
- return basicGetBase_Classifier();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case BlocksPackage.PROPERTY_SPECIFIC_TYPE__BASE_CLASSIFIER:
- return base_Classifier != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case BlocksPackage.PROPERTY_SPECIFIC_TYPE__BASE_CLASSIFIER:
- setBase_Classifier((Classifier)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return BlocksPackage.Literals.PROPERTY_SPECIFIC_TYPE;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case BlocksPackage.PROPERTY_SPECIFIC_TYPE__BASE_CLASSIFIER:
- setBase_Classifier((Classifier)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Classifier getBase_Classifier() {
- if(base_Classifier != null && base_Classifier.eIsProxy()) {
- InternalEObject oldBase_Classifier = (InternalEObject)base_Classifier;
- base_Classifier = (Classifier)eResolveProxy(oldBase_Classifier);
- if(base_Classifier != oldBase_Classifier) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.PROPERTY_SPECIFIC_TYPE__BASE_CLASSIFIER, oldBase_Classifier, base_Classifier));
- }
- }
- return base_Classifier;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Classifier(Classifier newBase_Classifier) {
- Classifier oldBase_Classifier = base_Classifier;
- base_Classifier = newBase_Classifier;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.PROPERTY_SPECIFIC_TYPE__BASE_CLASSIFIER, oldBase_Classifier, base_Classifier));
- }
-
-} // PropertySpecificTypeImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/UnitImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/UnitImpl.java
deleted file mode 100644
index 5242e6c3a6b..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/UnitImpl.java
+++ /dev/null
@@ -1,228 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.blocks.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-import org.eclipse.papyrus.sysml.blocks.Dimension;
-import org.eclipse.papyrus.sysml.blocks.Unit;
-import org.eclipse.uml2.uml.InstanceSpecification;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Unit</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.blocks.impl.UnitImpl#getBase_InstanceSpecification <em>Base Instance Specification</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.blocks.impl.UnitImpl#getDimension <em>Dimension</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class UnitImpl extends EObjectImpl implements Unit {
-
- /**
- * The cached value of the '{@link #getBase_InstanceSpecification() <em>Base Instance Specification</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getBase_InstanceSpecification()
- * @generated
- * @ordered
- */
- protected InstanceSpecification base_InstanceSpecification;
-
- /**
- * The cached value of the '{@link #getDimension() <em>Dimension</em>}' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDimension()
- * @generated
- * @ordered
- */
- protected Dimension dimension;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected UnitImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public InstanceSpecification basicGetBase_InstanceSpecification() {
- return base_InstanceSpecification;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Dimension basicGetDimension() {
- return dimension;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case BlocksPackage.UNIT__BASE_INSTANCE_SPECIFICATION:
- if(resolve)
- return getBase_InstanceSpecification();
- return basicGetBase_InstanceSpecification();
- case BlocksPackage.UNIT__DIMENSION:
- if(resolve)
- return getDimension();
- return basicGetDimension();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case BlocksPackage.UNIT__BASE_INSTANCE_SPECIFICATION:
- return base_InstanceSpecification != null;
- case BlocksPackage.UNIT__DIMENSION:
- return dimension != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case BlocksPackage.UNIT__BASE_INSTANCE_SPECIFICATION:
- setBase_InstanceSpecification((InstanceSpecification)newValue);
- return;
- case BlocksPackage.UNIT__DIMENSION:
- setDimension((Dimension)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return BlocksPackage.Literals.UNIT;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case BlocksPackage.UNIT__BASE_INSTANCE_SPECIFICATION:
- setBase_InstanceSpecification((InstanceSpecification)null);
- return;
- case BlocksPackage.UNIT__DIMENSION:
- setDimension((Dimension)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public InstanceSpecification getBase_InstanceSpecification() {
- if(base_InstanceSpecification != null && base_InstanceSpecification.eIsProxy()) {
- InternalEObject oldBase_InstanceSpecification = (InternalEObject)base_InstanceSpecification;
- base_InstanceSpecification = (InstanceSpecification)eResolveProxy(oldBase_InstanceSpecification);
- if(base_InstanceSpecification != oldBase_InstanceSpecification) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.UNIT__BASE_INSTANCE_SPECIFICATION, oldBase_InstanceSpecification, base_InstanceSpecification));
- }
- }
- return base_InstanceSpecification;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Dimension getDimension() {
- if(dimension != null && dimension.eIsProxy()) {
- InternalEObject oldDimension = (InternalEObject)dimension;
- dimension = (Dimension)eResolveProxy(oldDimension);
- if(dimension != oldDimension) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.UNIT__DIMENSION, oldDimension, dimension));
- }
- }
- return dimension;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_InstanceSpecification(InstanceSpecification newBase_InstanceSpecification) {
- InstanceSpecification oldBase_InstanceSpecification = base_InstanceSpecification;
- base_InstanceSpecification = newBase_InstanceSpecification;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.UNIT__BASE_INSTANCE_SPECIFICATION, oldBase_InstanceSpecification, base_InstanceSpecification));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setDimension(Dimension newDimension) {
- Dimension oldDimension = dimension;
- dimension = newDimension;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.UNIT__DIMENSION, oldDimension, dimension));
- }
-
-} // UnitImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/ValueTypeImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/ValueTypeImpl.java
deleted file mode 100644
index 1229ac71eb8..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/blocks/impl/ValueTypeImpl.java
+++ /dev/null
@@ -1,290 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.blocks.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-import org.eclipse.papyrus.sysml.blocks.Dimension;
-import org.eclipse.papyrus.sysml.blocks.Unit;
-import org.eclipse.papyrus.sysml.blocks.ValueType;
-import org.eclipse.uml2.uml.DataType;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Value Type</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.blocks.impl.ValueTypeImpl#getBase_DataType <em>Base Data Type</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.blocks.impl.ValueTypeImpl#getUnit <em>Unit</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.blocks.impl.ValueTypeImpl#getDimension <em>Dimension</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ValueTypeImpl extends EObjectImpl implements ValueType {
-
- /**
- * The cached value of the '{@link #getBase_DataType() <em>Base Data Type</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_DataType()
- * @generated
- * @ordered
- */
- protected DataType base_DataType;
-
- /**
- * The cached value of the '{@link #getUnit() <em>Unit</em>}' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getUnit()
- * @generated
- * @ordered
- */
- protected Unit unit;
-
- /**
- * The cached value of the '{@link #getDimension() <em>Dimension</em>}' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDimension()
- * @generated
- * @ordered
- */
- protected Dimension dimension;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ValueTypeImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public DataType basicGetBase_DataType() {
- return base_DataType;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Dimension basicGetDimension() {
- return dimension;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Unit basicGetUnit() {
- return unit;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case BlocksPackage.VALUE_TYPE__BASE_DATA_TYPE:
- if(resolve)
- return getBase_DataType();
- return basicGetBase_DataType();
- case BlocksPackage.VALUE_TYPE__UNIT:
- if(resolve)
- return getUnit();
- return basicGetUnit();
- case BlocksPackage.VALUE_TYPE__DIMENSION:
- if(resolve)
- return getDimension();
- return basicGetDimension();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case BlocksPackage.VALUE_TYPE__BASE_DATA_TYPE:
- return base_DataType != null;
- case BlocksPackage.VALUE_TYPE__UNIT:
- return unit != null;
- case BlocksPackage.VALUE_TYPE__DIMENSION:
- return dimension != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case BlocksPackage.VALUE_TYPE__BASE_DATA_TYPE:
- setBase_DataType((DataType)newValue);
- return;
- case BlocksPackage.VALUE_TYPE__UNIT:
- setUnit((Unit)newValue);
- return;
- case BlocksPackage.VALUE_TYPE__DIMENSION:
- setDimension((Dimension)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return BlocksPackage.Literals.VALUE_TYPE;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case BlocksPackage.VALUE_TYPE__BASE_DATA_TYPE:
- setBase_DataType((DataType)null);
- return;
- case BlocksPackage.VALUE_TYPE__UNIT:
- setUnit((Unit)null);
- return;
- case BlocksPackage.VALUE_TYPE__DIMENSION:
- setDimension((Dimension)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public DataType getBase_DataType() {
- if(base_DataType != null && base_DataType.eIsProxy()) {
- InternalEObject oldBase_DataType = (InternalEObject)base_DataType;
- base_DataType = (DataType)eResolveProxy(oldBase_DataType);
- if(base_DataType != oldBase_DataType) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.VALUE_TYPE__BASE_DATA_TYPE, oldBase_DataType, base_DataType));
- }
- }
- return base_DataType;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Dimension getDimension() {
- if(dimension != null && dimension.eIsProxy()) {
- InternalEObject oldDimension = (InternalEObject)dimension;
- dimension = (Dimension)eResolveProxy(oldDimension);
- if(dimension != oldDimension) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.VALUE_TYPE__DIMENSION, oldDimension, dimension));
- }
- }
- return dimension;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Unit getUnit() {
- if(unit != null && unit.eIsProxy()) {
- InternalEObject oldUnit = (InternalEObject)unit;
- unit = (Unit)eResolveProxy(oldUnit);
- if(unit != oldUnit) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, BlocksPackage.VALUE_TYPE__UNIT, oldUnit, unit));
- }
- }
- return unit;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_DataType(DataType newBase_DataType) {
- DataType oldBase_DataType = base_DataType;
- base_DataType = newBase_DataType;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.VALUE_TYPE__BASE_DATA_TYPE, oldBase_DataType, base_DataType));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setDimension(Dimension newDimension) {
- Dimension oldDimension = dimension;
- dimension = newDimension;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.VALUE_TYPE__DIMENSION, oldDimension, dimension));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setUnit(Unit newUnit) {
- Unit oldUnit = unit;
- unit = newUnit;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, BlocksPackage.VALUE_TYPE__UNIT, oldUnit, unit));
- }
-
-} // ValueTypeImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/constraints/impl/ConstraintBlockImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/constraints/impl/ConstraintBlockImpl.java
deleted file mode 100644
index e03a0ab675e..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/constraints/impl/ConstraintBlockImpl.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.constraints.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.papyrus.sysml.blocks.impl.BlockImpl;
-import org.eclipse.papyrus.sysml.constraints.ConstraintBlock;
-import org.eclipse.papyrus.sysml.constraints.ConstraintsPackage;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Constraint Block</b></em>'. <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class ConstraintBlockImpl extends BlockImpl implements ConstraintBlock {
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ConstraintBlockImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ConstraintsPackage.Literals.CONSTRAINT_BLOCK;
- }
-
-} // ConstraintBlockImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/constraints/impl/ConstraintPropertyImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/constraints/impl/ConstraintPropertyImpl.java
deleted file mode 100644
index 188d090a6bc..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/constraints/impl/ConstraintPropertyImpl.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.constraints.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.constraints.ConstraintProperty;
-import org.eclipse.papyrus.sysml.constraints.ConstraintsPackage;
-import org.eclipse.uml2.uml.Property;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Constraint Property</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.constraints.impl.ConstraintPropertyImpl#getBase_Property <em>Base Property</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ConstraintPropertyImpl extends EObjectImpl implements ConstraintProperty {
-
- /**
- * The cached value of the '{@link #getBase_Property() <em>Base Property</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_Property()
- * @generated
- * @ordered
- */
- protected Property base_Property;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ConstraintPropertyImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Property basicGetBase_Property() {
- return base_Property;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case ConstraintsPackage.CONSTRAINT_PROPERTY__BASE_PROPERTY:
- if(resolve)
- return getBase_Property();
- return basicGetBase_Property();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case ConstraintsPackage.CONSTRAINT_PROPERTY__BASE_PROPERTY:
- return base_Property != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case ConstraintsPackage.CONSTRAINT_PROPERTY__BASE_PROPERTY:
- setBase_Property((Property)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ConstraintsPackage.Literals.CONSTRAINT_PROPERTY;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case ConstraintsPackage.CONSTRAINT_PROPERTY__BASE_PROPERTY:
- setBase_Property((Property)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Property getBase_Property() {
- if(base_Property != null && base_Property.eIsProxy()) {
- InternalEObject oldBase_Property = (InternalEObject)base_Property;
- base_Property = (Property)eResolveProxy(oldBase_Property);
- if(base_Property != oldBase_Property) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ConstraintsPackage.CONSTRAINT_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property));
- }
- }
- return base_Property;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Property(Property newBase_Property) {
- Property oldBase_Property = base_Property;
- base_Property = newBase_Property;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ConstraintsPackage.CONSTRAINT_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property));
- }
-
-} // ConstraintPropertyImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/constraints/impl/ConstraintsFactoryImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/constraints/impl/ConstraintsFactoryImpl.java
deleted file mode 100644
index b0e27d47321..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/constraints/impl/ConstraintsFactoryImpl.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.constraints.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.sysml.constraints.ConstraintBlock;
-import org.eclipse.papyrus.sysml.constraints.ConstraintProperty;
-import org.eclipse.papyrus.sysml.constraints.ConstraintsFactory;
-import org.eclipse.papyrus.sysml.constraints.ConstraintsPackage;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class ConstraintsFactoryImpl extends EFactoryImpl implements ConstraintsFactory {
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static ConstraintsPackage getPackage() {
- return ConstraintsPackage.eINSTANCE;
- }
-
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public static ConstraintsFactory init() {
- try {
- ConstraintsFactory theConstraintsFactory = (ConstraintsFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/0.7.0/SysML/Constraints");
- if(theConstraintsFactory != null) {
- return theConstraintsFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new ConstraintsFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public ConstraintsFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch(eClass.getClassifierID()) {
- case ConstraintsPackage.CONSTRAINT_BLOCK:
- return createConstraintBlock();
- case ConstraintsPackage.CONSTRAINT_PROPERTY:
- return createConstraintProperty();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ConstraintBlock createConstraintBlock() {
- ConstraintBlockImpl constraintBlock = new ConstraintBlockImpl();
- return constraintBlock;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ConstraintProperty createConstraintProperty() {
- ConstraintPropertyImpl constraintProperty = new ConstraintPropertyImpl();
- return constraintProperty;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ConstraintsPackage getConstraintsPackage() {
- return (ConstraintsPackage)getEPackage();
- }
-
-} // ConstraintsFactoryImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/constraints/impl/ConstraintsPackageImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/constraints/impl/ConstraintsPackageImpl.java
deleted file mode 100644
index 8f87257626b..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/constraints/impl/ConstraintsPackageImpl.java
+++ /dev/null
@@ -1,269 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.constraints.impl;
-
-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.sysml.SysmlPackage;
-import org.eclipse.papyrus.sysml.activities.ActivitiesPackage;
-import org.eclipse.papyrus.sysml.activities.impl.ActivitiesPackageImpl;
-import org.eclipse.papyrus.sysml.allocations.AllocationsPackage;
-import org.eclipse.papyrus.sysml.allocations.impl.AllocationsPackageImpl;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-import org.eclipse.papyrus.sysml.blocks.impl.BlocksPackageImpl;
-import org.eclipse.papyrus.sysml.constraints.ConstraintBlock;
-import org.eclipse.papyrus.sysml.constraints.ConstraintProperty;
-import org.eclipse.papyrus.sysml.constraints.ConstraintsFactory;
-import org.eclipse.papyrus.sysml.constraints.ConstraintsPackage;
-import org.eclipse.papyrus.sysml.impl.SysmlPackageImpl;
-import org.eclipse.papyrus.sysml.interactions.InteractionsPackage;
-import org.eclipse.papyrus.sysml.interactions.impl.InteractionsPackageImpl;
-import org.eclipse.papyrus.sysml.modelelements.ModelelementsPackage;
-import org.eclipse.papyrus.sysml.modelelements.impl.ModelelementsPackageImpl;
-import org.eclipse.papyrus.sysml.portandflows.PortandflowsPackage;
-import org.eclipse.papyrus.sysml.portandflows.impl.PortandflowsPackageImpl;
-import org.eclipse.papyrus.sysml.requirements.RequirementsPackage;
-import org.eclipse.papyrus.sysml.requirements.impl.RequirementsPackageImpl;
-import org.eclipse.papyrus.sysml.statemachines.StatemachinesPackage;
-import org.eclipse.papyrus.sysml.statemachines.impl.StatemachinesPackageImpl;
-import org.eclipse.papyrus.sysml.usecases.UsecasesPackage;
-import org.eclipse.papyrus.sysml.usecases.impl.UsecasesPackageImpl;
-import org.eclipse.uml2.uml.UMLPackage;
-import org.eclipse.uml2.uml.profile.l2.L2Package;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class ConstraintsPackageImpl extends EPackageImpl implements ConstraintsPackage {
-
- /**
- * <!-- 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 ConstraintsPackage#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 ConstraintsPackage init() {
- if(isInited)
- return (ConstraintsPackage)EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI);
-
- // Obtain or create and register package
- ConstraintsPackageImpl theConstraintsPackage = (ConstraintsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ConstraintsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ConstraintsPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- L2Package.eINSTANCE.eClass();
-
- // Obtain or create and register interdependencies
- SysmlPackageImpl theSysmlPackage = (SysmlPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SysmlPackage.eNS_URI) instanceof SysmlPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SysmlPackage.eNS_URI) : SysmlPackage.eINSTANCE);
- ModelelementsPackageImpl theModelelementsPackage = (ModelelementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) instanceof ModelelementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) : ModelelementsPackage.eINSTANCE);
- BlocksPackageImpl theBlocksPackage = (BlocksPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI) instanceof BlocksPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI) : BlocksPackage.eINSTANCE);
- PortandflowsPackageImpl thePortandflowsPackage = (PortandflowsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) instanceof PortandflowsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) : PortandflowsPackage.eINSTANCE);
- ActivitiesPackageImpl theActivitiesPackage = (ActivitiesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) instanceof ActivitiesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) : ActivitiesPackage.eINSTANCE);
- AllocationsPackageImpl theAllocationsPackage = (AllocationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) instanceof AllocationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) : AllocationsPackage.eINSTANCE);
- RequirementsPackageImpl theRequirementsPackage = (RequirementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) instanceof RequirementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) : RequirementsPackage.eINSTANCE);
- InteractionsPackageImpl theInteractionsPackage = (InteractionsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI) instanceof InteractionsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI) : InteractionsPackage.eINSTANCE);
- StatemachinesPackageImpl theStatemachinesPackage = (StatemachinesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI) instanceof StatemachinesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI) : StatemachinesPackage.eINSTANCE);
- UsecasesPackageImpl theUsecasesPackage = (UsecasesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) instanceof UsecasesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) : UsecasesPackage.eINSTANCE);
-
- // Create package meta-data objects
- theConstraintsPackage.createPackageContents();
- theSysmlPackage.createPackageContents();
- theModelelementsPackage.createPackageContents();
- theBlocksPackage.createPackageContents();
- thePortandflowsPackage.createPackageContents();
- theActivitiesPackage.createPackageContents();
- theAllocationsPackage.createPackageContents();
- theRequirementsPackage.createPackageContents();
- theInteractionsPackage.createPackageContents();
- theStatemachinesPackage.createPackageContents();
- theUsecasesPackage.createPackageContents();
-
- // Initialize created meta-data
- theConstraintsPackage.initializePackageContents();
- theSysmlPackage.initializePackageContents();
- theModelelementsPackage.initializePackageContents();
- theBlocksPackage.initializePackageContents();
- thePortandflowsPackage.initializePackageContents();
- theActivitiesPackage.initializePackageContents();
- theAllocationsPackage.initializePackageContents();
- theRequirementsPackage.initializePackageContents();
- theInteractionsPackage.initializePackageContents();
- theStatemachinesPackage.initializePackageContents();
- theUsecasesPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theConstraintsPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(ConstraintsPackage.eNS_URI, theConstraintsPackage);
- return theConstraintsPackage;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass constraintBlockEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass constraintPropertyEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * 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.sysml.constraints.ConstraintsPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private ConstraintsPackageImpl() {
- super(eNS_URI, ConstraintsFactory.eINSTANCE);
- }
-
- /**
- * 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
- constraintBlockEClass = createEClass(CONSTRAINT_BLOCK);
-
- constraintPropertyEClass = createEClass(CONSTRAINT_PROPERTY);
- createEReference(constraintPropertyEClass, CONSTRAINT_PROPERTY__BASE_PROPERTY);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getConstraintBlock() {
- return constraintBlockEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getConstraintProperty() {
- return constraintPropertyEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getConstraintProperty_Base_Property() {
- return (EReference)constraintPropertyEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ConstraintsFactory getConstraintsFactory() {
- return (ConstraintsFactory)getEFactoryInstance();
- }
-
- /**
- * 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
- BlocksPackage theBlocksPackage = (BlocksPackage)EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI);
- UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- constraintBlockEClass.getESuperTypes().add(theBlocksPackage.getBlock());
-
- // Initialize classes and features; add operations and parameters
- initEClass(constraintBlockEClass, ConstraintBlock.class, "ConstraintBlock", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(constraintPropertyEClass, ConstraintProperty.class, "ConstraintProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getConstraintProperty_Base_Property(), theUMLPackage.getProperty(), null, "base_Property", null, 1, 1, ConstraintProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- }
-
-} // ConstraintsPackageImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/impl/SysmlFactoryImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/impl/SysmlFactoryImpl.java
deleted file mode 100644
index 66119fdba36..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/impl/SysmlFactoryImpl.java
+++ /dev/null
@@ -1,144 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-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.sysml.SysmlFactory;
-import org.eclipse.papyrus.sysml.SysmlPackage;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class SysmlFactoryImpl extends EFactoryImpl implements SysmlFactory {
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static SysmlPackage getPackage() {
- return SysmlPackage.eINSTANCE;
- }
-
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public static SysmlFactory init() {
- try {
- SysmlFactory theSysmlFactory = (SysmlFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/0.7.0/SysML");
- if(theSysmlFactory != null) {
- return theSysmlFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new SysmlFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public SysmlFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String convertDummyToString(EDataType eDataType, Object instanceValue) {
- return super.convertToString(eDataType, instanceValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String convertToString(EDataType eDataType, Object instanceValue) {
- switch(eDataType.getClassifierID()) {
- case SysmlPackage.DUMMY:
- return convertDummyToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch(eClass.getClassifierID()) {
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String createDummyFromString(EDataType eDataType, String initialValue) {
- return (String)super.createFromString(eDataType, initialValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object createFromString(EDataType eDataType, String initialValue) {
- switch(eDataType.getClassifierID()) {
- case SysmlPackage.DUMMY:
- return createDummyFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public SysmlPackage getSysmlPackage() {
- return (SysmlPackage)getEPackage();
- }
-
-} // SysmlFactoryImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/impl/SysmlPackageImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/impl/SysmlPackageImpl.java
deleted file mode 100644
index b1c4f0e1023..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/impl/SysmlPackageImpl.java
+++ /dev/null
@@ -1,250 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.impl;
-
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-import org.eclipse.papyrus.sysml.SysmlFactory;
-import org.eclipse.papyrus.sysml.SysmlPackage;
-import org.eclipse.papyrus.sysml.activities.ActivitiesPackage;
-import org.eclipse.papyrus.sysml.activities.impl.ActivitiesPackageImpl;
-import org.eclipse.papyrus.sysml.allocations.AllocationsPackage;
-import org.eclipse.papyrus.sysml.allocations.impl.AllocationsPackageImpl;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-import org.eclipse.papyrus.sysml.blocks.impl.BlocksPackageImpl;
-import org.eclipse.papyrus.sysml.constraints.ConstraintsPackage;
-import org.eclipse.papyrus.sysml.constraints.impl.ConstraintsPackageImpl;
-import org.eclipse.papyrus.sysml.interactions.InteractionsPackage;
-import org.eclipse.papyrus.sysml.interactions.impl.InteractionsPackageImpl;
-import org.eclipse.papyrus.sysml.modelelements.ModelelementsPackage;
-import org.eclipse.papyrus.sysml.modelelements.impl.ModelelementsPackageImpl;
-import org.eclipse.papyrus.sysml.portandflows.PortandflowsPackage;
-import org.eclipse.papyrus.sysml.portandflows.impl.PortandflowsPackageImpl;
-import org.eclipse.papyrus.sysml.requirements.RequirementsPackage;
-import org.eclipse.papyrus.sysml.requirements.impl.RequirementsPackageImpl;
-import org.eclipse.papyrus.sysml.statemachines.StatemachinesPackage;
-import org.eclipse.papyrus.sysml.statemachines.impl.StatemachinesPackageImpl;
-import org.eclipse.papyrus.sysml.usecases.UsecasesPackage;
-import org.eclipse.papyrus.sysml.usecases.impl.UsecasesPackageImpl;
-import org.eclipse.uml2.uml.profile.l2.L2Package;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class SysmlPackageImpl extends EPackageImpl implements SysmlPackage {
-
- /**
- * <!-- 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 SysmlPackage#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 SysmlPackage init() {
- if(isInited)
- return (SysmlPackage)EPackage.Registry.INSTANCE.getEPackage(SysmlPackage.eNS_URI);
-
- // Obtain or create and register package
- SysmlPackageImpl theSysmlPackage = (SysmlPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof SysmlPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new SysmlPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- L2Package.eINSTANCE.eClass();
-
- // Obtain or create and register interdependencies
- ModelelementsPackageImpl theModelelementsPackage = (ModelelementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) instanceof ModelelementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) : ModelelementsPackage.eINSTANCE);
- BlocksPackageImpl theBlocksPackage = (BlocksPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI) instanceof BlocksPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI) : BlocksPackage.eINSTANCE);
- PortandflowsPackageImpl thePortandflowsPackage = (PortandflowsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) instanceof PortandflowsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) : PortandflowsPackage.eINSTANCE);
- ConstraintsPackageImpl theConstraintsPackage = (ConstraintsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI) instanceof ConstraintsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI) : ConstraintsPackage.eINSTANCE);
- ActivitiesPackageImpl theActivitiesPackage = (ActivitiesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) instanceof ActivitiesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) : ActivitiesPackage.eINSTANCE);
- AllocationsPackageImpl theAllocationsPackage = (AllocationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) instanceof AllocationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) : AllocationsPackage.eINSTANCE);
- RequirementsPackageImpl theRequirementsPackage = (RequirementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) instanceof RequirementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) : RequirementsPackage.eINSTANCE);
- InteractionsPackageImpl theInteractionsPackage = (InteractionsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI) instanceof InteractionsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI) : InteractionsPackage.eINSTANCE);
- StatemachinesPackageImpl theStatemachinesPackage = (StatemachinesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI) instanceof StatemachinesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI) : StatemachinesPackage.eINSTANCE);
- UsecasesPackageImpl theUsecasesPackage = (UsecasesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) instanceof UsecasesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) : UsecasesPackage.eINSTANCE);
-
- // Create package meta-data objects
- theSysmlPackage.createPackageContents();
- theModelelementsPackage.createPackageContents();
- theBlocksPackage.createPackageContents();
- thePortandflowsPackage.createPackageContents();
- theConstraintsPackage.createPackageContents();
- theActivitiesPackage.createPackageContents();
- theAllocationsPackage.createPackageContents();
- theRequirementsPackage.createPackageContents();
- theInteractionsPackage.createPackageContents();
- theStatemachinesPackage.createPackageContents();
- theUsecasesPackage.createPackageContents();
-
- // Initialize created meta-data
- theSysmlPackage.initializePackageContents();
- theModelelementsPackage.initializePackageContents();
- theBlocksPackage.initializePackageContents();
- thePortandflowsPackage.initializePackageContents();
- theConstraintsPackage.initializePackageContents();
- theActivitiesPackage.initializePackageContents();
- theAllocationsPackage.initializePackageContents();
- theRequirementsPackage.initializePackageContents();
- theInteractionsPackage.initializePackageContents();
- theStatemachinesPackage.initializePackageContents();
- theUsecasesPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theSysmlPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(SysmlPackage.eNS_URI, theSysmlPackage);
- return theSysmlPackage;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EDataType dummyEDataType = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * 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.sysml.SysmlPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private SysmlPackageImpl() {
- super(eNS_URI, SysmlFactory.eINSTANCE);
- }
-
- /**
- * 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 data types
- dummyEDataType = createEDataType(DUMMY);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EDataType getDummy() {
- return dummyEDataType;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public SysmlFactory getSysmlFactory() {
- return (SysmlFactory)getEFactoryInstance();
- }
-
- /**
- * 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
- ModelelementsPackage theModelelementsPackage = (ModelelementsPackage)EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI);
- BlocksPackage theBlocksPackage = (BlocksPackage)EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI);
- PortandflowsPackage thePortandflowsPackage = (PortandflowsPackage)EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI);
- ConstraintsPackage theConstraintsPackage = (ConstraintsPackage)EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI);
- ActivitiesPackage theActivitiesPackage = (ActivitiesPackage)EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI);
- AllocationsPackage theAllocationsPackage = (AllocationsPackage)EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI);
- RequirementsPackage theRequirementsPackage = (RequirementsPackage)EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI);
- InteractionsPackage theInteractionsPackage = (InteractionsPackage)EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI);
- StatemachinesPackage theStatemachinesPackage = (StatemachinesPackage)EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI);
- UsecasesPackage theUsecasesPackage = (UsecasesPackage)EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI);
-
- // Add subpackages
- getESubpackages().add(theModelelementsPackage);
- getESubpackages().add(theBlocksPackage);
- getESubpackages().add(thePortandflowsPackage);
- getESubpackages().add(theConstraintsPackage);
- getESubpackages().add(theActivitiesPackage);
- getESubpackages().add(theAllocationsPackage);
- getESubpackages().add(theRequirementsPackage);
- getESubpackages().add(theInteractionsPackage);
- getESubpackages().add(theStatemachinesPackage);
- getESubpackages().add(theUsecasesPackage);
-
- // Initialize data types
- initEDataType(dummyEDataType, String.class, "Dummy", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} // SysmlPackageImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/interactions/impl/InteractionsFactoryImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/interactions/impl/InteractionsFactoryImpl.java
deleted file mode 100644
index 3c5bda3bd3c..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/interactions/impl/InteractionsFactoryImpl.java
+++ /dev/null
@@ -1,144 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.interactions.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-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.sysml.interactions.InteractionsFactory;
-import org.eclipse.papyrus.sysml.interactions.InteractionsPackage;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class InteractionsFactoryImpl extends EFactoryImpl implements InteractionsFactory {
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static InteractionsPackage getPackage() {
- return InteractionsPackage.eINSTANCE;
- }
-
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public static InteractionsFactory init() {
- try {
- InteractionsFactory theInteractionsFactory = (InteractionsFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/0.7.0/SysML/Interactions");
- if(theInteractionsFactory != null) {
- return theInteractionsFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new InteractionsFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public InteractionsFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String convertDummyToString(EDataType eDataType, Object instanceValue) {
- return super.convertToString(eDataType, instanceValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String convertToString(EDataType eDataType, Object instanceValue) {
- switch(eDataType.getClassifierID()) {
- case InteractionsPackage.DUMMY:
- return convertDummyToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch(eClass.getClassifierID()) {
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String createDummyFromString(EDataType eDataType, String initialValue) {
- return (String)super.createFromString(eDataType, initialValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object createFromString(EDataType eDataType, String initialValue) {
- switch(eDataType.getClassifierID()) {
- case InteractionsPackage.DUMMY:
- return createDummyFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public InteractionsPackage getInteractionsPackage() {
- return (InteractionsPackage)getEPackage();
- }
-
-} // InteractionsFactoryImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/interactions/impl/InteractionsPackageImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/interactions/impl/InteractionsPackageImpl.java
deleted file mode 100644
index 60a2064ba63..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/interactions/impl/InteractionsPackageImpl.java
+++ /dev/null
@@ -1,223 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.interactions.impl;
-
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-import org.eclipse.papyrus.sysml.SysmlPackage;
-import org.eclipse.papyrus.sysml.activities.ActivitiesPackage;
-import org.eclipse.papyrus.sysml.activities.impl.ActivitiesPackageImpl;
-import org.eclipse.papyrus.sysml.allocations.AllocationsPackage;
-import org.eclipse.papyrus.sysml.allocations.impl.AllocationsPackageImpl;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-import org.eclipse.papyrus.sysml.blocks.impl.BlocksPackageImpl;
-import org.eclipse.papyrus.sysml.constraints.ConstraintsPackage;
-import org.eclipse.papyrus.sysml.constraints.impl.ConstraintsPackageImpl;
-import org.eclipse.papyrus.sysml.impl.SysmlPackageImpl;
-import org.eclipse.papyrus.sysml.interactions.InteractionsFactory;
-import org.eclipse.papyrus.sysml.interactions.InteractionsPackage;
-import org.eclipse.papyrus.sysml.modelelements.ModelelementsPackage;
-import org.eclipse.papyrus.sysml.modelelements.impl.ModelelementsPackageImpl;
-import org.eclipse.papyrus.sysml.portandflows.PortandflowsPackage;
-import org.eclipse.papyrus.sysml.portandflows.impl.PortandflowsPackageImpl;
-import org.eclipse.papyrus.sysml.requirements.RequirementsPackage;
-import org.eclipse.papyrus.sysml.requirements.impl.RequirementsPackageImpl;
-import org.eclipse.papyrus.sysml.statemachines.StatemachinesPackage;
-import org.eclipse.papyrus.sysml.statemachines.impl.StatemachinesPackageImpl;
-import org.eclipse.papyrus.sysml.usecases.UsecasesPackage;
-import org.eclipse.papyrus.sysml.usecases.impl.UsecasesPackageImpl;
-import org.eclipse.uml2.uml.profile.l2.L2Package;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class InteractionsPackageImpl extends EPackageImpl implements InteractionsPackage {
-
- /**
- * <!-- 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 InteractionsPackage#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 InteractionsPackage init() {
- if(isInited)
- return (InteractionsPackage)EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI);
-
- // Obtain or create and register package
- InteractionsPackageImpl theInteractionsPackage = (InteractionsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof InteractionsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new InteractionsPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- L2Package.eINSTANCE.eClass();
-
- // Obtain or create and register interdependencies
- SysmlPackageImpl theSysmlPackage = (SysmlPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SysmlPackage.eNS_URI) instanceof SysmlPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SysmlPackage.eNS_URI) : SysmlPackage.eINSTANCE);
- ModelelementsPackageImpl theModelelementsPackage = (ModelelementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) instanceof ModelelementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) : ModelelementsPackage.eINSTANCE);
- BlocksPackageImpl theBlocksPackage = (BlocksPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI) instanceof BlocksPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI) : BlocksPackage.eINSTANCE);
- PortandflowsPackageImpl thePortandflowsPackage = (PortandflowsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) instanceof PortandflowsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) : PortandflowsPackage.eINSTANCE);
- ConstraintsPackageImpl theConstraintsPackage = (ConstraintsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI) instanceof ConstraintsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI) : ConstraintsPackage.eINSTANCE);
- ActivitiesPackageImpl theActivitiesPackage = (ActivitiesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) instanceof ActivitiesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) : ActivitiesPackage.eINSTANCE);
- AllocationsPackageImpl theAllocationsPackage = (AllocationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) instanceof AllocationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) : AllocationsPackage.eINSTANCE);
- RequirementsPackageImpl theRequirementsPackage = (RequirementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) instanceof RequirementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) : RequirementsPackage.eINSTANCE);
- StatemachinesPackageImpl theStatemachinesPackage = (StatemachinesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI) instanceof StatemachinesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI) : StatemachinesPackage.eINSTANCE);
- UsecasesPackageImpl theUsecasesPackage = (UsecasesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) instanceof UsecasesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) : UsecasesPackage.eINSTANCE);
-
- // Create package meta-data objects
- theInteractionsPackage.createPackageContents();
- theSysmlPackage.createPackageContents();
- theModelelementsPackage.createPackageContents();
- theBlocksPackage.createPackageContents();
- thePortandflowsPackage.createPackageContents();
- theConstraintsPackage.createPackageContents();
- theActivitiesPackage.createPackageContents();
- theAllocationsPackage.createPackageContents();
- theRequirementsPackage.createPackageContents();
- theStatemachinesPackage.createPackageContents();
- theUsecasesPackage.createPackageContents();
-
- // Initialize created meta-data
- theInteractionsPackage.initializePackageContents();
- theSysmlPackage.initializePackageContents();
- theModelelementsPackage.initializePackageContents();
- theBlocksPackage.initializePackageContents();
- thePortandflowsPackage.initializePackageContents();
- theConstraintsPackage.initializePackageContents();
- theActivitiesPackage.initializePackageContents();
- theAllocationsPackage.initializePackageContents();
- theRequirementsPackage.initializePackageContents();
- theStatemachinesPackage.initializePackageContents();
- theUsecasesPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theInteractionsPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(InteractionsPackage.eNS_URI, theInteractionsPackage);
- return theInteractionsPackage;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EDataType dummyEDataType = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * 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.sysml.interactions.InteractionsPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private InteractionsPackageImpl() {
- super(eNS_URI, InteractionsFactory.eINSTANCE);
- }
-
- /**
- * 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 data types
- dummyEDataType = createEDataType(DUMMY);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EDataType getDummy() {
- return dummyEDataType;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public InteractionsFactory getInteractionsFactory() {
- return (InteractionsFactory)getEFactoryInstance();
- }
-
- /**
- * 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);
-
- // Initialize data types
- initEDataType(dummyEDataType, String.class, "Dummy", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
- }
-
-} // InteractionsPackageImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ConformImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ConformImpl.java
deleted file mode 100644
index 6dfd44c3f81..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ConformImpl.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.modelelements.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.modelelements.Conform;
-import org.eclipse.papyrus.sysml.modelelements.ModelelementsPackage;
-import org.eclipse.uml2.uml.Dependency;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Conform</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.modelelements.impl.ConformImpl#getBase_Dependency <em>Base Dependency</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ConformImpl extends EObjectImpl implements Conform {
-
- /**
- * The cached value of the '{@link #getBase_Dependency() <em>Base Dependency</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_Dependency()
- * @generated
- * @ordered
- */
- protected Dependency base_Dependency;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ConformImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Dependency basicGetBase_Dependency() {
- return base_Dependency;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case ModelelementsPackage.CONFORM__BASE_DEPENDENCY:
- if(resolve)
- return getBase_Dependency();
- return basicGetBase_Dependency();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case ModelelementsPackage.CONFORM__BASE_DEPENDENCY:
- return base_Dependency != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case ModelelementsPackage.CONFORM__BASE_DEPENDENCY:
- setBase_Dependency((Dependency)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ModelelementsPackage.Literals.CONFORM;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case ModelelementsPackage.CONFORM__BASE_DEPENDENCY:
- setBase_Dependency((Dependency)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Dependency getBase_Dependency() {
- if(base_Dependency != null && base_Dependency.eIsProxy()) {
- InternalEObject oldBase_Dependency = (InternalEObject)base_Dependency;
- base_Dependency = (Dependency)eResolveProxy(oldBase_Dependency);
- if(base_Dependency != oldBase_Dependency) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ModelelementsPackage.CONFORM__BASE_DEPENDENCY, oldBase_Dependency, base_Dependency));
- }
- }
- return base_Dependency;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Dependency(Dependency newBase_Dependency) {
- Dependency oldBase_Dependency = base_Dependency;
- base_Dependency = newBase_Dependency;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ModelelementsPackage.CONFORM__BASE_DEPENDENCY, oldBase_Dependency, base_Dependency));
- }
-
-} // ConformImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ModelelementsFactoryImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ModelelementsFactoryImpl.java
deleted file mode 100644
index 17b68c71db6..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ModelelementsFactoryImpl.java
+++ /dev/null
@@ -1,160 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.modelelements.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.sysml.modelelements.Conform;
-import org.eclipse.papyrus.sysml.modelelements.ModelelementsFactory;
-import org.eclipse.papyrus.sysml.modelelements.ModelelementsPackage;
-import org.eclipse.papyrus.sysml.modelelements.Problem;
-import org.eclipse.papyrus.sysml.modelelements.Rationale;
-import org.eclipse.papyrus.sysml.modelelements.View;
-import org.eclipse.papyrus.sysml.modelelements.ViewPoint;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class ModelelementsFactoryImpl extends EFactoryImpl implements ModelelementsFactory {
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static ModelelementsPackage getPackage() {
- return ModelelementsPackage.eINSTANCE;
- }
-
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public static ModelelementsFactory init() {
- try {
- ModelelementsFactory theModelelementsFactory = (ModelelementsFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/0.7.0/SysML/ModelElements");
- if(theModelelementsFactory != null) {
- return theModelelementsFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new ModelelementsFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public ModelelementsFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch(eClass.getClassifierID()) {
- case ModelelementsPackage.CONFORM:
- return createConform();
- case ModelelementsPackage.VIEW:
- return createView();
- case ModelelementsPackage.VIEW_POINT:
- return createViewPoint();
- case ModelelementsPackage.RATIONALE:
- return createRationale();
- case ModelelementsPackage.PROBLEM:
- return createProblem();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Conform createConform() {
- ConformImpl conform = new ConformImpl();
- return conform;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Problem createProblem() {
- ProblemImpl problem = new ProblemImpl();
- return problem;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Rationale createRationale() {
- RationaleImpl rationale = new RationaleImpl();
- return rationale;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public View createView() {
- ViewImpl view = new ViewImpl();
- return view;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ViewPoint createViewPoint() {
- ViewPointImpl viewPoint = new ViewPointImpl();
- return viewPoint;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ModelelementsPackage getModelelementsPackage() {
- return (ModelelementsPackage)getEPackage();
- }
-
-} // ModelelementsFactoryImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ModelelementsPackageImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ModelelementsPackageImpl.java
deleted file mode 100644
index 7f3840dbcbd..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ModelelementsPackageImpl.java
+++ /dev/null
@@ -1,441 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.modelelements.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.sysml.SysmlPackage;
-import org.eclipse.papyrus.sysml.activities.ActivitiesPackage;
-import org.eclipse.papyrus.sysml.activities.impl.ActivitiesPackageImpl;
-import org.eclipse.papyrus.sysml.allocations.AllocationsPackage;
-import org.eclipse.papyrus.sysml.allocations.impl.AllocationsPackageImpl;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-import org.eclipse.papyrus.sysml.blocks.impl.BlocksPackageImpl;
-import org.eclipse.papyrus.sysml.constraints.ConstraintsPackage;
-import org.eclipse.papyrus.sysml.constraints.impl.ConstraintsPackageImpl;
-import org.eclipse.papyrus.sysml.impl.SysmlPackageImpl;
-import org.eclipse.papyrus.sysml.interactions.InteractionsPackage;
-import org.eclipse.papyrus.sysml.interactions.impl.InteractionsPackageImpl;
-import org.eclipse.papyrus.sysml.modelelements.Conform;
-import org.eclipse.papyrus.sysml.modelelements.ModelelementsFactory;
-import org.eclipse.papyrus.sysml.modelelements.ModelelementsPackage;
-import org.eclipse.papyrus.sysml.modelelements.Problem;
-import org.eclipse.papyrus.sysml.modelelements.Rationale;
-import org.eclipse.papyrus.sysml.modelelements.View;
-import org.eclipse.papyrus.sysml.modelelements.ViewPoint;
-import org.eclipse.papyrus.sysml.portandflows.PortandflowsPackage;
-import org.eclipse.papyrus.sysml.portandflows.impl.PortandflowsPackageImpl;
-import org.eclipse.papyrus.sysml.requirements.RequirementsPackage;
-import org.eclipse.papyrus.sysml.requirements.impl.RequirementsPackageImpl;
-import org.eclipse.papyrus.sysml.statemachines.StatemachinesPackage;
-import org.eclipse.papyrus.sysml.statemachines.impl.StatemachinesPackageImpl;
-import org.eclipse.papyrus.sysml.usecases.UsecasesPackage;
-import org.eclipse.papyrus.sysml.usecases.impl.UsecasesPackageImpl;
-import org.eclipse.uml2.uml.UMLPackage;
-import org.eclipse.uml2.uml.profile.l2.L2Package;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class ModelelementsPackageImpl extends EPackageImpl implements ModelelementsPackage {
-
- /**
- * <!-- 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 ModelelementsPackage#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 ModelelementsPackage init() {
- if(isInited)
- return (ModelelementsPackage)EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI);
-
- // Obtain or create and register package
- ModelelementsPackageImpl theModelelementsPackage = (ModelelementsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ModelelementsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ModelelementsPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- L2Package.eINSTANCE.eClass();
-
- // Obtain or create and register interdependencies
- SysmlPackageImpl theSysmlPackage = (SysmlPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SysmlPackage.eNS_URI) instanceof SysmlPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SysmlPackage.eNS_URI) : SysmlPackage.eINSTANCE);
- BlocksPackageImpl theBlocksPackage = (BlocksPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI) instanceof BlocksPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI) : BlocksPackage.eINSTANCE);
- PortandflowsPackageImpl thePortandflowsPackage = (PortandflowsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) instanceof PortandflowsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) : PortandflowsPackage.eINSTANCE);
- ConstraintsPackageImpl theConstraintsPackage = (ConstraintsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI) instanceof ConstraintsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI) : ConstraintsPackage.eINSTANCE);
- ActivitiesPackageImpl theActivitiesPackage = (ActivitiesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) instanceof ActivitiesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) : ActivitiesPackage.eINSTANCE);
- AllocationsPackageImpl theAllocationsPackage = (AllocationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) instanceof AllocationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) : AllocationsPackage.eINSTANCE);
- RequirementsPackageImpl theRequirementsPackage = (RequirementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) instanceof RequirementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) : RequirementsPackage.eINSTANCE);
- InteractionsPackageImpl theInteractionsPackage = (InteractionsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI) instanceof InteractionsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI) : InteractionsPackage.eINSTANCE);
- StatemachinesPackageImpl theStatemachinesPackage = (StatemachinesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI) instanceof StatemachinesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI) : StatemachinesPackage.eINSTANCE);
- UsecasesPackageImpl theUsecasesPackage = (UsecasesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) instanceof UsecasesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) : UsecasesPackage.eINSTANCE);
-
- // Create package meta-data objects
- theModelelementsPackage.createPackageContents();
- theSysmlPackage.createPackageContents();
- theBlocksPackage.createPackageContents();
- thePortandflowsPackage.createPackageContents();
- theConstraintsPackage.createPackageContents();
- theActivitiesPackage.createPackageContents();
- theAllocationsPackage.createPackageContents();
- theRequirementsPackage.createPackageContents();
- theInteractionsPackage.createPackageContents();
- theStatemachinesPackage.createPackageContents();
- theUsecasesPackage.createPackageContents();
-
- // Initialize created meta-data
- theModelelementsPackage.initializePackageContents();
- theSysmlPackage.initializePackageContents();
- theBlocksPackage.initializePackageContents();
- thePortandflowsPackage.initializePackageContents();
- theConstraintsPackage.initializePackageContents();
- theActivitiesPackage.initializePackageContents();
- theAllocationsPackage.initializePackageContents();
- theRequirementsPackage.initializePackageContents();
- theInteractionsPackage.initializePackageContents();
- theStatemachinesPackage.initializePackageContents();
- theUsecasesPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theModelelementsPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(ModelelementsPackage.eNS_URI, theModelelementsPackage);
- return theModelelementsPackage;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass conformEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass viewEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass viewPointEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass rationaleEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass problemEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * 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.sysml.modelelements.ModelelementsPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private ModelelementsPackageImpl() {
- super(eNS_URI, ModelelementsFactory.eINSTANCE);
- }
-
- /**
- * 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
- conformEClass = createEClass(CONFORM);
- createEReference(conformEClass, CONFORM__BASE_DEPENDENCY);
-
- viewEClass = createEClass(VIEW);
- createEReference(viewEClass, VIEW__VIEW_POINT);
- createEReference(viewEClass, VIEW__BASE_PACKAGE);
-
- viewPointEClass = createEClass(VIEW_POINT);
- createEReference(viewPointEClass, VIEW_POINT__BASE_CLASS);
- createEAttribute(viewPointEClass, VIEW_POINT__STAKE_HOLDERS);
- createEAttribute(viewPointEClass, VIEW_POINT__PURPOSE);
- createEAttribute(viewPointEClass, VIEW_POINT__CONCERNS);
- createEAttribute(viewPointEClass, VIEW_POINT__LANGUAGES);
- createEAttribute(viewPointEClass, VIEW_POINT__METHODS);
-
- rationaleEClass = createEClass(RATIONALE);
- createEReference(rationaleEClass, RATIONALE__BASE_COMMENT);
-
- problemEClass = createEClass(PROBLEM);
- createEReference(problemEClass, PROBLEM__BASE_COMMENT);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getConform() {
- return conformEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getConform_Base_Dependency() {
- return (EReference)conformEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ModelelementsFactory getModelelementsFactory() {
- return (ModelelementsFactory)getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getProblem() {
- return problemEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getProblem_Base_Comment() {
- return (EReference)problemEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getRationale() {
- return rationaleEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRationale_Base_Comment() {
- return (EReference)rationaleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getView() {
- return viewEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getView_Base_Package() {
- return (EReference)viewEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getView_ViewPoint() {
- return (EReference)viewEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getViewPoint() {
- return viewPointEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getViewPoint_Base_Class() {
- return (EReference)viewPointEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getViewPoint_Concerns() {
- return (EAttribute)viewPointEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getViewPoint_Languages() {
- return (EAttribute)viewPointEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getViewPoint_Methods() {
- return (EAttribute)viewPointEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getViewPoint_Purpose() {
- return (EAttribute)viewPointEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getViewPoint_StakeHolders() {
- return (EAttribute)viewPointEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * 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
- UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
-
- // Initialize classes and features; add operations and parameters
- initEClass(conformEClass, Conform.class, "Conform", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getConform_Base_Dependency(), theUMLPackage.getDependency(), null, "base_Dependency", null, 1, 1, Conform.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(viewEClass, View.class, "View", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getView_ViewPoint(), this.getViewPoint(), null, "viewPoint", null, 1, 1, View.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
- initEReference(getView_Base_Package(), theUMLPackage.getPackage(), null, "base_Package", null, 1, 1, View.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(viewPointEClass, ViewPoint.class, "ViewPoint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getViewPoint_Base_Class(), theUMLPackage.getClass_(), null, "base_Class", null, 1, 1, ViewPoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getViewPoint_StakeHolders(), ecorePackage.getEString(), "stakeHolders", null, 0, -1, ViewPoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getViewPoint_Purpose(), ecorePackage.getEString(), "purpose", null, 0, 1, ViewPoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getViewPoint_Concerns(), ecorePackage.getEString(), "concerns", null, 0, -1, ViewPoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getViewPoint_Languages(), ecorePackage.getEString(), "languages", null, 0, -1, ViewPoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getViewPoint_Methods(), ecorePackage.getEString(), "methods", null, 0, -1, ViewPoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(rationaleEClass, Rationale.class, "Rationale", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getRationale_Base_Comment(), theUMLPackage.getComment(), null, "base_Comment", null, 1, 1, Rationale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(problemEClass, Problem.class, "Problem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getProblem_Base_Comment(), theUMLPackage.getComment(), null, "base_Comment", null, 1, 1, Problem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- }
-
-} // ModelelementsPackageImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ProblemImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ProblemImpl.java
deleted file mode 100644
index c258cc0c383..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ProblemImpl.java
+++ /dev/null
@@ -1,165 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.modelelements.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.modelelements.ModelelementsPackage;
-import org.eclipse.papyrus.sysml.modelelements.Problem;
-import org.eclipse.uml2.uml.Comment;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Problem</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.modelelements.impl.ProblemImpl#getBase_Comment <em>Base Comment</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ProblemImpl extends EObjectImpl implements Problem {
-
- /**
- * The cached value of the '{@link #getBase_Comment() <em>Base Comment</em>}' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getBase_Comment()
- * @generated
- * @ordered
- */
- protected Comment base_Comment;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ProblemImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Comment basicGetBase_Comment() {
- return base_Comment;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case ModelelementsPackage.PROBLEM__BASE_COMMENT:
- if(resolve)
- return getBase_Comment();
- return basicGetBase_Comment();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case ModelelementsPackage.PROBLEM__BASE_COMMENT:
- return base_Comment != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case ModelelementsPackage.PROBLEM__BASE_COMMENT:
- setBase_Comment((Comment)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ModelelementsPackage.Literals.PROBLEM;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case ModelelementsPackage.PROBLEM__BASE_COMMENT:
- setBase_Comment((Comment)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Comment getBase_Comment() {
- if(base_Comment != null && base_Comment.eIsProxy()) {
- InternalEObject oldBase_Comment = (InternalEObject)base_Comment;
- base_Comment = (Comment)eResolveProxy(oldBase_Comment);
- if(base_Comment != oldBase_Comment) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ModelelementsPackage.PROBLEM__BASE_COMMENT, oldBase_Comment, base_Comment));
- }
- }
- return base_Comment;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Comment(Comment newBase_Comment) {
- Comment oldBase_Comment = base_Comment;
- base_Comment = newBase_Comment;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ModelelementsPackage.PROBLEM__BASE_COMMENT, oldBase_Comment, base_Comment));
- }
-
-} // ProblemImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/RationaleImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/RationaleImpl.java
deleted file mode 100644
index 2d20937fc9a..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/RationaleImpl.java
+++ /dev/null
@@ -1,165 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.modelelements.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.modelelements.ModelelementsPackage;
-import org.eclipse.papyrus.sysml.modelelements.Rationale;
-import org.eclipse.uml2.uml.Comment;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Rationale</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.modelelements.impl.RationaleImpl#getBase_Comment <em>Base Comment</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class RationaleImpl extends EObjectImpl implements Rationale {
-
- /**
- * The cached value of the '{@link #getBase_Comment() <em>Base Comment</em>}' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getBase_Comment()
- * @generated
- * @ordered
- */
- protected Comment base_Comment;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected RationaleImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Comment basicGetBase_Comment() {
- return base_Comment;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case ModelelementsPackage.RATIONALE__BASE_COMMENT:
- if(resolve)
- return getBase_Comment();
- return basicGetBase_Comment();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case ModelelementsPackage.RATIONALE__BASE_COMMENT:
- return base_Comment != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case ModelelementsPackage.RATIONALE__BASE_COMMENT:
- setBase_Comment((Comment)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ModelelementsPackage.Literals.RATIONALE;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case ModelelementsPackage.RATIONALE__BASE_COMMENT:
- setBase_Comment((Comment)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Comment getBase_Comment() {
- if(base_Comment != null && base_Comment.eIsProxy()) {
- InternalEObject oldBase_Comment = (InternalEObject)base_Comment;
- base_Comment = (Comment)eResolveProxy(oldBase_Comment);
- if(base_Comment != oldBase_Comment) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ModelelementsPackage.RATIONALE__BASE_COMMENT, oldBase_Comment, base_Comment));
- }
- }
- return base_Comment;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Comment(Comment newBase_Comment) {
- Comment oldBase_Comment = base_Comment;
- base_Comment = newBase_Comment;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ModelelementsPackage.RATIONALE__BASE_COMMENT, oldBase_Comment, base_Comment));
- }
-
-} // RationaleImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ViewImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ViewImpl.java
deleted file mode 100644
index bd3a050e7e5..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ViewImpl.java
+++ /dev/null
@@ -1,231 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.modelelements.impl;
-
-import java.util.Iterator;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.modelelements.Conform;
-import org.eclipse.papyrus.sysml.modelelements.ModelelementsPackage;
-import org.eclipse.papyrus.sysml.modelelements.View;
-import org.eclipse.papyrus.sysml.modelelements.ViewPoint;
-import org.eclipse.uml2.uml.Dependency;
-import org.eclipse.uml2.uml.Element;
-import org.eclipse.uml2.uml.util.UMLUtil;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>View</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.modelelements.impl.ViewImpl#getViewPoint <em>View Point</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.modelelements.impl.ViewImpl#getBase_Package <em>Base Package</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ViewImpl extends EObjectImpl implements View {
-
- /**
- * The cached value of the '{@link #getBase_Package() <em>Base Package</em>}' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getBase_Package()
- * @generated
- * @ordered
- */
- protected org.eclipse.uml2.uml.Package base_Package;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ViewImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public org.eclipse.uml2.uml.Package basicGetBase_Package() {
- return base_Package;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public ViewPoint basicGetViewPoint() {
- // ViewPoint is related to View via a Conform dependency
- ViewPoint viewPoint = null;
- Conform conform = null;
-
- if(getBase_Package() != null) {
- // Find Conform link
- Iterator<Dependency> itDep = getBase_Package().getClientDependencies().iterator();
- while(itDep.hasNext() && (conform == null)) {
- Dependency currentDependency = itDep.next();
- conform = UMLUtil.getStereotypeApplication(currentDependency, Conform.class);
- }
-
- // Find ViewPoint
- if(conform != null) {
- Iterator<Element> itElt = conform.getBase_Dependency().getTargets().iterator();
- while(itElt.hasNext()) {
- Element currentElt = itElt.next();
- viewPoint = UMLUtil.getStereotypeApplication(currentElt, ViewPoint.class);
- }
- }
- }
- return viewPoint;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case ModelelementsPackage.VIEW__VIEW_POINT:
- if(resolve)
- return getViewPoint();
- return basicGetViewPoint();
- case ModelelementsPackage.VIEW__BASE_PACKAGE:
- if(resolve)
- return getBase_Package();
- return basicGetBase_Package();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case ModelelementsPackage.VIEW__VIEW_POINT:
- return basicGetViewPoint() != null;
- case ModelelementsPackage.VIEW__BASE_PACKAGE:
- return base_Package != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case ModelelementsPackage.VIEW__BASE_PACKAGE:
- setBase_Package((org.eclipse.uml2.uml.Package)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ModelelementsPackage.Literals.VIEW;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case ModelelementsPackage.VIEW__BASE_PACKAGE:
- setBase_Package((org.eclipse.uml2.uml.Package)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public org.eclipse.uml2.uml.Package getBase_Package() {
- if(base_Package != null && base_Package.eIsProxy()) {
- InternalEObject oldBase_Package = (InternalEObject)base_Package;
- base_Package = (org.eclipse.uml2.uml.Package)eResolveProxy(oldBase_Package);
- if(base_Package != oldBase_Package) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ModelelementsPackage.VIEW__BASE_PACKAGE, oldBase_Package, base_Package));
- }
- }
- return base_Package;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ViewPoint getViewPoint() {
- ViewPoint viewPoint = basicGetViewPoint();
- return viewPoint != null && viewPoint.eIsProxy() ? (ViewPoint)eResolveProxy((InternalEObject)viewPoint) : viewPoint;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Package(org.eclipse.uml2.uml.Package newBase_Package) {
- org.eclipse.uml2.uml.Package oldBase_Package = base_Package;
- base_Package = newBase_Package;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ModelelementsPackage.VIEW__BASE_PACKAGE, oldBase_Package, base_Package));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public void setViewPoint(ViewPoint newViewPoint) {
- // TODO: implement this method to set the 'View Point' reference
- // Ensure that you remove @generated or mark it @generated NOT
-
- // The exception makes the model opening to fail...
- // throw new UnsupportedOperationException();
- }
-
-} // ViewImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ViewPointImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ViewPointImpl.java
deleted file mode 100644
index e07844744f9..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/modelelements/impl/ViewPointImpl.java
+++ /dev/null
@@ -1,383 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.modelelements.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-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.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EDataTypeEList;
-import org.eclipse.papyrus.sysml.modelelements.ModelelementsPackage;
-import org.eclipse.papyrus.sysml.modelelements.ViewPoint;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>View Point</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.modelelements.impl.ViewPointImpl#getBase_Class <em>Base Class</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.modelelements.impl.ViewPointImpl#getStakeHolders <em>Stake Holders</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.modelelements.impl.ViewPointImpl#getPurpose <em>Purpose</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.modelelements.impl.ViewPointImpl#getConcerns <em>Concerns</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.modelelements.impl.ViewPointImpl#getLanguages <em>Languages</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.modelelements.impl.ViewPointImpl#getMethods <em>Methods</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ViewPointImpl extends EObjectImpl implements ViewPoint {
-
- /**
- * The cached value of the '{@link #getBase_Class() <em>Base Class</em>}' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getBase_Class()
- * @generated
- * @ordered
- */
- protected org.eclipse.uml2.uml.Class base_Class;
-
- /**
- * The cached value of the '{@link #getStakeHolders() <em>Stake Holders</em>}' attribute list.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getStakeHolders()
- * @generated
- * @ordered
- */
- protected EList<String> stakeHolders;
-
- /**
- * The default value of the '{@link #getPurpose() <em>Purpose</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getPurpose()
- * @generated
- * @ordered
- */
- protected static final String PURPOSE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getPurpose() <em>Purpose</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getPurpose()
- * @generated
- * @ordered
- */
- protected String purpose = PURPOSE_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getConcerns() <em>Concerns</em>}' attribute list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getConcerns()
- * @generated
- * @ordered
- */
- protected EList<String> concerns;
-
- /**
- * The cached value of the '{@link #getLanguages() <em>Languages</em>}' attribute list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getLanguages()
- * @generated
- * @ordered
- */
- protected EList<String> languages;
-
- /**
- * The cached value of the '{@link #getMethods() <em>Methods</em>}' attribute list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getMethods()
- * @generated
- * @ordered
- */
- protected EList<String> methods;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ViewPointImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public org.eclipse.uml2.uml.Class basicGetBase_Class() {
- return base_Class;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case ModelelementsPackage.VIEW_POINT__BASE_CLASS:
- if(resolve)
- return getBase_Class();
- return basicGetBase_Class();
- case ModelelementsPackage.VIEW_POINT__STAKE_HOLDERS:
- return getStakeHolders();
- case ModelelementsPackage.VIEW_POINT__PURPOSE:
- return getPurpose();
- case ModelelementsPackage.VIEW_POINT__CONCERNS:
- return getConcerns();
- case ModelelementsPackage.VIEW_POINT__LANGUAGES:
- return getLanguages();
- case ModelelementsPackage.VIEW_POINT__METHODS:
- return getMethods();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case ModelelementsPackage.VIEW_POINT__BASE_CLASS:
- return base_Class != null;
- case ModelelementsPackage.VIEW_POINT__STAKE_HOLDERS:
- return stakeHolders != null && !stakeHolders.isEmpty();
- case ModelelementsPackage.VIEW_POINT__PURPOSE:
- return PURPOSE_EDEFAULT == null ? purpose != null : !PURPOSE_EDEFAULT.equals(purpose);
- case ModelelementsPackage.VIEW_POINT__CONCERNS:
- return concerns != null && !concerns.isEmpty();
- case ModelelementsPackage.VIEW_POINT__LANGUAGES:
- return languages != null && !languages.isEmpty();
- case ModelelementsPackage.VIEW_POINT__METHODS:
- return methods != null && !methods.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case ModelelementsPackage.VIEW_POINT__BASE_CLASS:
- setBase_Class((org.eclipse.uml2.uml.Class)newValue);
- return;
- case ModelelementsPackage.VIEW_POINT__STAKE_HOLDERS:
- getStakeHolders().clear();
- getStakeHolders().addAll((Collection<? extends String>)newValue);
- return;
- case ModelelementsPackage.VIEW_POINT__PURPOSE:
- setPurpose((String)newValue);
- return;
- case ModelelementsPackage.VIEW_POINT__CONCERNS:
- getConcerns().clear();
- getConcerns().addAll((Collection<? extends String>)newValue);
- return;
- case ModelelementsPackage.VIEW_POINT__LANGUAGES:
- getLanguages().clear();
- getLanguages().addAll((Collection<? extends String>)newValue);
- return;
- case ModelelementsPackage.VIEW_POINT__METHODS:
- getMethods().clear();
- getMethods().addAll((Collection<? extends String>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ModelelementsPackage.Literals.VIEW_POINT;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case ModelelementsPackage.VIEW_POINT__BASE_CLASS:
- setBase_Class((org.eclipse.uml2.uml.Class)null);
- return;
- case ModelelementsPackage.VIEW_POINT__STAKE_HOLDERS:
- getStakeHolders().clear();
- return;
- case ModelelementsPackage.VIEW_POINT__PURPOSE:
- setPurpose(PURPOSE_EDEFAULT);
- return;
- case ModelelementsPackage.VIEW_POINT__CONCERNS:
- getConcerns().clear();
- return;
- case ModelelementsPackage.VIEW_POINT__LANGUAGES:
- getLanguages().clear();
- return;
- case ModelelementsPackage.VIEW_POINT__METHODS:
- getMethods().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public org.eclipse.uml2.uml.Class getBase_Class() {
- if(base_Class != null && base_Class.eIsProxy()) {
- InternalEObject oldBase_Class = (InternalEObject)base_Class;
- base_Class = (org.eclipse.uml2.uml.Class)eResolveProxy(oldBase_Class);
- if(base_Class != oldBase_Class) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ModelelementsPackage.VIEW_POINT__BASE_CLASS, oldBase_Class, base_Class));
- }
- }
- return base_Class;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<String> getConcerns() {
- if(concerns == null) {
- concerns = new EDataTypeEList<String>(String.class, this, ModelelementsPackage.VIEW_POINT__CONCERNS);
- }
- return concerns;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<String> getLanguages() {
- if(languages == null) {
- languages = new EDataTypeEList<String>(String.class, this, ModelelementsPackage.VIEW_POINT__LANGUAGES);
- }
- return languages;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<String> getMethods() {
- if(methods == null) {
- methods = new EDataTypeEList<String>(String.class, this, ModelelementsPackage.VIEW_POINT__METHODS);
- }
- return methods;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getPurpose() {
- return purpose;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<String> getStakeHolders() {
- if(stakeHolders == null) {
- stakeHolders = new EDataTypeEList<String>(String.class, this, ModelelementsPackage.VIEW_POINT__STAKE_HOLDERS);
- }
- return stakeHolders;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Class(org.eclipse.uml2.uml.Class newBase_Class) {
- org.eclipse.uml2.uml.Class oldBase_Class = base_Class;
- base_Class = newBase_Class;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ModelelementsPackage.VIEW_POINT__BASE_CLASS, oldBase_Class, base_Class));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setPurpose(String newPurpose) {
- String oldPurpose = purpose;
- purpose = newPurpose;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ModelelementsPackage.VIEW_POINT__PURPOSE, oldPurpose, purpose));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if(eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (stakeHolders: ");
- result.append(stakeHolders);
- result.append(", purpose: ");
- result.append(purpose);
- result.append(", concerns: ");
- result.append(concerns);
- result.append(", languages: ");
- result.append(languages);
- result.append(", methods: ");
- result.append(methods);
- result.append(')');
- return result.toString();
- }
-
-} // ViewPointImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/FlowPortImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/FlowPortImpl.java
deleted file mode 100644
index 0af65e3dee1..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/FlowPortImpl.java
+++ /dev/null
@@ -1,383 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.portandflows.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.portandflows.FlowDirection;
-import org.eclipse.papyrus.sysml.portandflows.FlowPort;
-import org.eclipse.papyrus.sysml.portandflows.FlowSpecification;
-import org.eclipse.papyrus.sysml.portandflows.PortandflowsPackage;
-import org.eclipse.uml2.uml.Image;
-import org.eclipse.uml2.uml.Interface;
-import org.eclipse.uml2.uml.Port;
-import org.eclipse.uml2.uml.Stereotype;
-import org.eclipse.uml2.uml.Type;
-import org.eclipse.uml2.uml.util.UMLUtil;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Flow Port</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.portandflows.impl.FlowPortImpl#getBase_Port <em>Base Port</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.portandflows.impl.FlowPortImpl#isIsAtomic <em>Is Atomic</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.portandflows.impl.FlowPortImpl#isIsConjugated <em>Is Conjugated</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.portandflows.impl.FlowPortImpl#getDirection <em>Direction</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class FlowPortImpl extends EObjectImpl implements FlowPort {
-
- /**
- * The cached value of the '{@link #getBase_Port() <em>Base Port</em>}' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getBase_Port()
- * @generated
- * @ordered
- */
- protected Port base_Port;
-
- /**
- * The default value of the '{@link #isIsAtomic() <em>Is Atomic</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isIsAtomic()
- * @generated
- * @ordered
- */
- protected static final boolean IS_ATOMIC_EDEFAULT = false;
-
- /**
- * The default value of the '{@link #isIsConjugated() <em>Is Conjugated</em>}' attribute.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #isIsConjugated()
- * @generated
- * @ordered
- */
- protected static final boolean IS_CONJUGATED_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isIsConjugated() <em>Is Conjugated</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isIsConjugated()
- * @generated
- * @ordered
- */
- protected boolean isConjugated = IS_CONJUGATED_EDEFAULT;
-
- /**
- * The default value of the '{@link #getDirection() <em>Direction</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDirection()
- * @generated
- * @ordered
- */
- protected static final FlowDirection DIRECTION_EDEFAULT = FlowDirection.INOUT;
-
- /**
- * The cached value of the '{@link #getDirection() <em>Direction</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDirection()
- * @generated
- * @ordered
- */
- protected FlowDirection direction = DIRECTION_EDEFAULT;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected FlowPortImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Port basicGetBase_Port() {
- return base_Port;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case PortandflowsPackage.FLOW_PORT__BASE_PORT:
- if(resolve)
- return getBase_Port();
- return basicGetBase_Port();
- case PortandflowsPackage.FLOW_PORT__IS_ATOMIC:
- return isIsAtomic();
- case PortandflowsPackage.FLOW_PORT__IS_CONJUGATED:
- return isIsConjugated();
- case PortandflowsPackage.FLOW_PORT__DIRECTION:
- return getDirection();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case PortandflowsPackage.FLOW_PORT__BASE_PORT:
- return base_Port != null;
- case PortandflowsPackage.FLOW_PORT__IS_ATOMIC:
- return isIsAtomic() != IS_ATOMIC_EDEFAULT;
- case PortandflowsPackage.FLOW_PORT__IS_CONJUGATED:
- return isConjugated != IS_CONJUGATED_EDEFAULT;
- case PortandflowsPackage.FLOW_PORT__DIRECTION:
- return direction != DIRECTION_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case PortandflowsPackage.FLOW_PORT__BASE_PORT:
- setBase_Port((Port)newValue);
- return;
- case PortandflowsPackage.FLOW_PORT__IS_CONJUGATED:
- setIsConjugated((Boolean)newValue);
- return;
- case PortandflowsPackage.FLOW_PORT__DIRECTION:
- setDirection((FlowDirection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PortandflowsPackage.Literals.FLOW_PORT;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case PortandflowsPackage.FLOW_PORT__BASE_PORT:
- setBase_Port((Port)null);
- return;
- case PortandflowsPackage.FLOW_PORT__IS_CONJUGATED:
- setIsConjugated(IS_CONJUGATED_EDEFAULT);
- return;
- case PortandflowsPackage.FLOW_PORT__DIRECTION:
- setDirection(DIRECTION_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Port getBase_Port() {
- if(base_Port != null && base_Port.eIsProxy()) {
- InternalEObject oldBase_Port = (InternalEObject)base_Port;
- base_Port = (Port)eResolveProxy(oldBase_Port);
- if(base_Port != oldBase_Port) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, PortandflowsPackage.FLOW_PORT__BASE_PORT, oldBase_Port, base_Port));
- }
- }
- return base_Port;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public FlowDirection getDirection() {
- return direction;
- }
-
- /**
- * <!-- begin-user-doc --> Images registered in Profile are : 0 - FlowPort
- * (default, similar to INOUT) 1 - FlowPort IN 2 - FlowPort OUT 3 - FlowPort
- * INOUT 4 - FlowPort NA (Non Atomic) <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public Image getIcon() {
-
- Image ImageNotFound = null;
-
- if(getBase_Port() != null) {
-
- Stereotype st = UMLUtil.getStereotype(this);
-
- Image image = st.getIcons().get(0);
-
- if(isIsAtomic()) {
- if(getDirection() == FlowDirection.IN) {
- image = st.getIcons().get(1);
- } else if(getDirection() == FlowDirection.OUT) {
- image = st.getIcons().get(2);
- } else if(getDirection() == FlowDirection.INOUT) {
- image = st.getIcons().get(3);
- }
-
- } else {
- image = st.getIcons().get(4);
- }
-
- return image;
-
- } else {
- return ImageNotFound;
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public boolean isIsAtomic() {
- // The FlowPort is Atomic if it is not typed by a FlowSpecification
- Boolean isAtomic = true;
- FlowSpecification flowSpec = null;
-
- if(getBase_Port() != null) {
- // Find FlowPort type
- Type type = getBase_Port().getType();
- if((type != null) && (type instanceof Interface)) {
- flowSpec = UMLUtil.getStereotypeApplication(type, FlowSpecification.class);
- }
-
- if(flowSpec != null) {
- isAtomic = false;
- }
- }
- return isAtomic;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isIsConjugated() {
- return isConjugated;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Port(Port newBase_Port) {
- Port oldBase_Port = base_Port;
- base_Port = newBase_Port;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, PortandflowsPackage.FLOW_PORT__BASE_PORT, oldBase_Port, base_Port));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setDirection(FlowDirection newDirection) {
- FlowDirection oldDirection = direction;
- direction = newDirection == null ? DIRECTION_EDEFAULT : newDirection;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, PortandflowsPackage.FLOW_PORT__DIRECTION, oldDirection, direction));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public void setIsAtomic(boolean newIsAtomic) {
- // TODO: implement this method to set the 'Is Atomic' attribute
- // Ensure that you remove @generated or mark it @generated NOT
- // throw new UnsupportedOperationException();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setIsConjugated(boolean newIsConjugated) {
- boolean oldIsConjugated = isConjugated;
- isConjugated = newIsConjugated;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, PortandflowsPackage.FLOW_PORT__IS_CONJUGATED, oldIsConjugated, isConjugated));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if(eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (isConjugated: ");
- result.append(isConjugated);
- result.append(", direction: ");
- result.append(direction);
- result.append(')');
- return result.toString();
- }
-
-} // FlowPortImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/FlowPropertyImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/FlowPropertyImpl.java
deleted file mode 100644
index 2b1305bcb46..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/FlowPropertyImpl.java
+++ /dev/null
@@ -1,270 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.portandflows.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.portandflows.FlowDirection;
-import org.eclipse.papyrus.sysml.portandflows.FlowProperty;
-import org.eclipse.papyrus.sysml.portandflows.PortandflowsPackage;
-import org.eclipse.uml2.uml.Image;
-import org.eclipse.uml2.uml.Property;
-import org.eclipse.uml2.uml.Stereotype;
-import org.eclipse.uml2.uml.util.UMLUtil;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Flow Property</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.portandflows.impl.FlowPropertyImpl#getBase_Property <em>Base Property</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.portandflows.impl.FlowPropertyImpl#getDirection <em>Direction</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class FlowPropertyImpl extends EObjectImpl implements FlowProperty {
-
- /**
- * The cached value of the '{@link #getBase_Property() <em>Base Property</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_Property()
- * @generated
- * @ordered
- */
- protected Property base_Property;
-
- /**
- * The default value of the '{@link #getDirection() <em>Direction</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDirection()
- * @generated
- * @ordered
- */
- protected static final FlowDirection DIRECTION_EDEFAULT = FlowDirection.INOUT;
-
- /**
- * The cached value of the '{@link #getDirection() <em>Direction</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDirection()
- * @generated
- * @ordered
- */
- protected FlowDirection direction = DIRECTION_EDEFAULT;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected FlowPropertyImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Property basicGetBase_Property() {
- return base_Property;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case PortandflowsPackage.FLOW_PROPERTY__BASE_PROPERTY:
- if(resolve)
- return getBase_Property();
- return basicGetBase_Property();
- case PortandflowsPackage.FLOW_PROPERTY__DIRECTION:
- return getDirection();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case PortandflowsPackage.FLOW_PROPERTY__BASE_PROPERTY:
- return base_Property != null;
- case PortandflowsPackage.FLOW_PROPERTY__DIRECTION:
- return direction != DIRECTION_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case PortandflowsPackage.FLOW_PROPERTY__BASE_PROPERTY:
- setBase_Property((Property)newValue);
- return;
- case PortandflowsPackage.FLOW_PROPERTY__DIRECTION:
- setDirection((FlowDirection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PortandflowsPackage.Literals.FLOW_PROPERTY;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case PortandflowsPackage.FLOW_PROPERTY__BASE_PROPERTY:
- setBase_Property((Property)null);
- return;
- case PortandflowsPackage.FLOW_PROPERTY__DIRECTION:
- setDirection(DIRECTION_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Property getBase_Property() {
- if(base_Property != null && base_Property.eIsProxy()) {
- InternalEObject oldBase_Property = (InternalEObject)base_Property;
- base_Property = (Property)eResolveProxy(oldBase_Property);
- if(base_Property != oldBase_Property) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, PortandflowsPackage.FLOW_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property));
- }
- }
- return base_Property;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public FlowDirection getDirection() {
- return direction;
- }
-
- /**
- * <!-- begin-user-doc --> Images registered in Profile are : 0 - FlowPort
- * (default, similar to INOUT) 1 - FlowPort IN 2 - FlowPort OUT 3 - FlowPort
- * INOUT <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public Image getIcon() {
-
- Image ImageNotFound = null;
-
- if(getBase_Property() != null) {
- Stereotype st = UMLUtil.getStereotype(this);
-
- Image image = st.getIcons().get(0);
-
- if(getDirection() == FlowDirection.IN) {
- image = st.getIcons().get(1);
- } else if(getDirection() == FlowDirection.OUT) {
- image = st.getIcons().get(2);
- } else if(getDirection() == FlowDirection.INOUT) {
- image = st.getIcons().get(3);
- }
-
- return image;
-
- } else {
- return ImageNotFound;
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Property(Property newBase_Property) {
- Property oldBase_Property = base_Property;
- base_Property = newBase_Property;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, PortandflowsPackage.FLOW_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setDirection(FlowDirection newDirection) {
- FlowDirection oldDirection = direction;
- direction = newDirection == null ? DIRECTION_EDEFAULT : newDirection;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, PortandflowsPackage.FLOW_PROPERTY__DIRECTION, oldDirection, direction));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if(eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (direction: ");
- result.append(direction);
- result.append(')');
- return result.toString();
- }
-
-} // FlowPropertyImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/FlowSpecificationImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/FlowSpecificationImpl.java
deleted file mode 100644
index 9f455b57121..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/FlowSpecificationImpl.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.portandflows.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.portandflows.FlowSpecification;
-import org.eclipse.papyrus.sysml.portandflows.PortandflowsPackage;
-import org.eclipse.uml2.uml.Interface;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Flow Specification</b></em> '. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.portandflows.impl.FlowSpecificationImpl#getBase_Interface <em>Base Interface</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class FlowSpecificationImpl extends EObjectImpl implements FlowSpecification {
-
- /**
- * The cached value of the '{@link #getBase_Interface() <em>Base Interface</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_Interface()
- * @generated
- * @ordered
- */
- protected Interface base_Interface;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected FlowSpecificationImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Interface basicGetBase_Interface() {
- return base_Interface;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case PortandflowsPackage.FLOW_SPECIFICATION__BASE_INTERFACE:
- if(resolve)
- return getBase_Interface();
- return basicGetBase_Interface();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case PortandflowsPackage.FLOW_SPECIFICATION__BASE_INTERFACE:
- return base_Interface != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case PortandflowsPackage.FLOW_SPECIFICATION__BASE_INTERFACE:
- setBase_Interface((Interface)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PortandflowsPackage.Literals.FLOW_SPECIFICATION;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case PortandflowsPackage.FLOW_SPECIFICATION__BASE_INTERFACE:
- setBase_Interface((Interface)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Interface getBase_Interface() {
- if(base_Interface != null && base_Interface.eIsProxy()) {
- InternalEObject oldBase_Interface = (InternalEObject)base_Interface;
- base_Interface = (Interface)eResolveProxy(oldBase_Interface);
- if(base_Interface != oldBase_Interface) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, PortandflowsPackage.FLOW_SPECIFICATION__BASE_INTERFACE, oldBase_Interface, base_Interface));
- }
- }
- return base_Interface;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Interface(Interface newBase_Interface) {
- Interface oldBase_Interface = base_Interface;
- base_Interface = newBase_Interface;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, PortandflowsPackage.FLOW_SPECIFICATION__BASE_INTERFACE, oldBase_Interface, base_Interface));
- }
-
-} // FlowSpecificationImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/ItemFlowImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/ItemFlowImpl.java
deleted file mode 100644
index e30a1b3ac18..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/ItemFlowImpl.java
+++ /dev/null
@@ -1,229 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.portandflows.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.sysml.portandflows.ItemFlow;
-import org.eclipse.papyrus.sysml.portandflows.PortandflowsPackage;
-import org.eclipse.uml2.uml.InformationFlow;
-import org.eclipse.uml2.uml.Property;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Item Flow</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.portandflows.impl.ItemFlowImpl#getBase_InformationFlow <em>Base Information Flow</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.portandflows.impl.ItemFlowImpl#getItemProperty <em>Item Property</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ItemFlowImpl extends EObjectImpl implements ItemFlow {
-
- /**
- * The cached value of the '{@link #getBase_InformationFlow() <em>Base Information Flow</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_InformationFlow()
- * @generated
- * @ordered
- */
- protected InformationFlow base_InformationFlow;
-
- /**
- * The cached value of the '{@link #getItemProperty() <em>Item Property</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getItemProperty()
- * @generated
- * @ordered
- */
- protected Property itemProperty;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ItemFlowImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public InformationFlow basicGetBase_InformationFlow() {
- return base_InformationFlow;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Property basicGetItemProperty() {
- return itemProperty;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case PortandflowsPackage.ITEM_FLOW__BASE_INFORMATION_FLOW:
- if(resolve)
- return getBase_InformationFlow();
- return basicGetBase_InformationFlow();
- case PortandflowsPackage.ITEM_FLOW__ITEM_PROPERTY:
- if(resolve)
- return getItemProperty();
- return basicGetItemProperty();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case PortandflowsPackage.ITEM_FLOW__BASE_INFORMATION_FLOW:
- return base_InformationFlow != null;
- case PortandflowsPackage.ITEM_FLOW__ITEM_PROPERTY:
- return itemProperty != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case PortandflowsPackage.ITEM_FLOW__BASE_INFORMATION_FLOW:
- setBase_InformationFlow((InformationFlow)newValue);
- return;
- case PortandflowsPackage.ITEM_FLOW__ITEM_PROPERTY:
- setItemProperty((Property)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PortandflowsPackage.Literals.ITEM_FLOW;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case PortandflowsPackage.ITEM_FLOW__BASE_INFORMATION_FLOW:
- setBase_InformationFlow((InformationFlow)null);
- return;
- case PortandflowsPackage.ITEM_FLOW__ITEM_PROPERTY:
- setItemProperty((Property)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public InformationFlow getBase_InformationFlow() {
- if(base_InformationFlow != null && base_InformationFlow.eIsProxy()) {
- InternalEObject oldBase_InformationFlow = (InternalEObject)base_InformationFlow;
- base_InformationFlow = (InformationFlow)eResolveProxy(oldBase_InformationFlow);
- if(base_InformationFlow != oldBase_InformationFlow) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, PortandflowsPackage.ITEM_FLOW__BASE_INFORMATION_FLOW, oldBase_InformationFlow, base_InformationFlow));
- }
- }
- return base_InformationFlow;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Property getItemProperty() {
- if(itemProperty != null && itemProperty.eIsProxy()) {
- InternalEObject oldItemProperty = (InternalEObject)itemProperty;
- itemProperty = (Property)eResolveProxy(oldItemProperty);
- if(itemProperty != oldItemProperty) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, PortandflowsPackage.ITEM_FLOW__ITEM_PROPERTY, oldItemProperty, itemProperty));
- }
- }
- return itemProperty;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_InformationFlow(InformationFlow newBase_InformationFlow) {
- InformationFlow oldBase_InformationFlow = base_InformationFlow;
- base_InformationFlow = newBase_InformationFlow;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, PortandflowsPackage.ITEM_FLOW__BASE_INFORMATION_FLOW, oldBase_InformationFlow, base_InformationFlow));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setItemProperty(Property newItemProperty) {
- Property oldItemProperty = itemProperty;
- itemProperty = newItemProperty;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, PortandflowsPackage.ITEM_FLOW__ITEM_PROPERTY, oldItemProperty, itemProperty));
- }
-
-} // ItemFlowImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/PortandflowsFactoryImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/PortandflowsFactoryImpl.java
deleted file mode 100644
index 3853d36a692..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/PortandflowsFactoryImpl.java
+++ /dev/null
@@ -1,200 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.portandflows.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-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.sysml.portandflows.FlowDirection;
-import org.eclipse.papyrus.sysml.portandflows.FlowPort;
-import org.eclipse.papyrus.sysml.portandflows.FlowProperty;
-import org.eclipse.papyrus.sysml.portandflows.FlowSpecification;
-import org.eclipse.papyrus.sysml.portandflows.ItemFlow;
-import org.eclipse.papyrus.sysml.portandflows.PortandflowsFactory;
-import org.eclipse.papyrus.sysml.portandflows.PortandflowsPackage;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class PortandflowsFactoryImpl extends EFactoryImpl implements PortandflowsFactory {
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static PortandflowsPackage getPackage() {
- return PortandflowsPackage.eINSTANCE;
- }
-
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public static PortandflowsFactory init() {
- try {
- PortandflowsFactory thePortandflowsFactory = (PortandflowsFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/0.7.0/SysML/PortAndFlows");
- if(thePortandflowsFactory != null) {
- return thePortandflowsFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new PortandflowsFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public PortandflowsFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String convertFlowDirectionToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String convertToString(EDataType eDataType, Object instanceValue) {
- switch(eDataType.getClassifierID()) {
- case PortandflowsPackage.FLOW_DIRECTION:
- return convertFlowDirectionToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch(eClass.getClassifierID()) {
- case PortandflowsPackage.FLOW_PORT:
- return createFlowPort();
- case PortandflowsPackage.FLOW_PROPERTY:
- return createFlowProperty();
- case PortandflowsPackage.FLOW_SPECIFICATION:
- return createFlowSpecification();
- case PortandflowsPackage.ITEM_FLOW:
- return createItemFlow();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public FlowDirection createFlowDirectionFromString(EDataType eDataType, String initialValue) {
- FlowDirection result = FlowDirection.get(initialValue);
- if(result == null)
- throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- return result;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public FlowPort createFlowPort() {
- FlowPortImpl flowPort = new FlowPortImpl();
- return flowPort;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public FlowProperty createFlowProperty() {
- FlowPropertyImpl flowProperty = new FlowPropertyImpl();
- return flowProperty;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public FlowSpecification createFlowSpecification() {
- FlowSpecificationImpl flowSpecification = new FlowSpecificationImpl();
- return flowSpecification;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object createFromString(EDataType eDataType, String initialValue) {
- switch(eDataType.getClassifierID()) {
- case PortandflowsPackage.FLOW_DIRECTION:
- return createFlowDirectionFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ItemFlow createItemFlow() {
- ItemFlowImpl itemFlow = new ItemFlowImpl();
- return itemFlow;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public PortandflowsPackage getPortandflowsPackage() {
- return (PortandflowsPackage)getEPackage();
- }
-
-} // PortandflowsFactoryImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/PortandflowsPackageImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/PortandflowsPackageImpl.java
deleted file mode 100644
index 9f8cb777dfc..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/portandflows/impl/PortandflowsPackageImpl.java
+++ /dev/null
@@ -1,429 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.portandflows.impl;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EEnum;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-import org.eclipse.papyrus.sysml.SysmlPackage;
-import org.eclipse.papyrus.sysml.activities.ActivitiesPackage;
-import org.eclipse.papyrus.sysml.activities.impl.ActivitiesPackageImpl;
-import org.eclipse.papyrus.sysml.allocations.AllocationsPackage;
-import org.eclipse.papyrus.sysml.allocations.impl.AllocationsPackageImpl;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-import org.eclipse.papyrus.sysml.blocks.impl.BlocksPackageImpl;
-import org.eclipse.papyrus.sysml.constraints.ConstraintsPackage;
-import org.eclipse.papyrus.sysml.constraints.impl.ConstraintsPackageImpl;
-import org.eclipse.papyrus.sysml.impl.SysmlPackageImpl;
-import org.eclipse.papyrus.sysml.interactions.InteractionsPackage;
-import org.eclipse.papyrus.sysml.interactions.impl.InteractionsPackageImpl;
-import org.eclipse.papyrus.sysml.modelelements.ModelelementsPackage;
-import org.eclipse.papyrus.sysml.modelelements.impl.ModelelementsPackageImpl;
-import org.eclipse.papyrus.sysml.portandflows.FlowDirection;
-import org.eclipse.papyrus.sysml.portandflows.FlowPort;
-import org.eclipse.papyrus.sysml.portandflows.FlowProperty;
-import org.eclipse.papyrus.sysml.portandflows.FlowSpecification;
-import org.eclipse.papyrus.sysml.portandflows.ItemFlow;
-import org.eclipse.papyrus.sysml.portandflows.PortandflowsFactory;
-import org.eclipse.papyrus.sysml.portandflows.PortandflowsPackage;
-import org.eclipse.papyrus.sysml.requirements.RequirementsPackage;
-import org.eclipse.papyrus.sysml.requirements.impl.RequirementsPackageImpl;
-import org.eclipse.papyrus.sysml.statemachines.StatemachinesPackage;
-import org.eclipse.papyrus.sysml.statemachines.impl.StatemachinesPackageImpl;
-import org.eclipse.papyrus.sysml.usecases.UsecasesPackage;
-import org.eclipse.papyrus.sysml.usecases.impl.UsecasesPackageImpl;
-import org.eclipse.uml2.uml.UMLPackage;
-import org.eclipse.uml2.uml.profile.l2.L2Package;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class PortandflowsPackageImpl extends EPackageImpl implements PortandflowsPackage {
-
- /**
- * <!-- 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 PortandflowsPackage#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 PortandflowsPackage init() {
- if(isInited)
- return (PortandflowsPackage)EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI);
-
- // Obtain or create and register package
- PortandflowsPackageImpl thePortandflowsPackage = (PortandflowsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof PortandflowsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new PortandflowsPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- L2Package.eINSTANCE.eClass();
-
- // Obtain or create and register interdependencies
- SysmlPackageImpl theSysmlPackage = (SysmlPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SysmlPackage.eNS_URI) instanceof SysmlPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SysmlPackage.eNS_URI) : SysmlPackage.eINSTANCE);
- ModelelementsPackageImpl theModelelementsPackage = (ModelelementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) instanceof ModelelementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) : ModelelementsPackage.eINSTANCE);
- BlocksPackageImpl theBlocksPackage = (BlocksPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI) instanceof BlocksPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI) : BlocksPackage.eINSTANCE);
- ConstraintsPackageImpl theConstraintsPackage = (ConstraintsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI) instanceof ConstraintsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI) : ConstraintsPackage.eINSTANCE);
- ActivitiesPackageImpl theActivitiesPackage = (ActivitiesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) instanceof ActivitiesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) : ActivitiesPackage.eINSTANCE);
- AllocationsPackageImpl theAllocationsPackage = (AllocationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) instanceof AllocationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) : AllocationsPackage.eINSTANCE);
- RequirementsPackageImpl theRequirementsPackage = (RequirementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) instanceof RequirementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) : RequirementsPackage.eINSTANCE);
- InteractionsPackageImpl theInteractionsPackage = (InteractionsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI) instanceof InteractionsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI) : InteractionsPackage.eINSTANCE);
- StatemachinesPackageImpl theStatemachinesPackage = (StatemachinesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI) instanceof StatemachinesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI) : StatemachinesPackage.eINSTANCE);
- UsecasesPackageImpl theUsecasesPackage = (UsecasesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) instanceof UsecasesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) : UsecasesPackage.eINSTANCE);
-
- // Create package meta-data objects
- thePortandflowsPackage.createPackageContents();
- theSysmlPackage.createPackageContents();
- theModelelementsPackage.createPackageContents();
- theBlocksPackage.createPackageContents();
- theConstraintsPackage.createPackageContents();
- theActivitiesPackage.createPackageContents();
- theAllocationsPackage.createPackageContents();
- theRequirementsPackage.createPackageContents();
- theInteractionsPackage.createPackageContents();
- theStatemachinesPackage.createPackageContents();
- theUsecasesPackage.createPackageContents();
-
- // Initialize created meta-data
- thePortandflowsPackage.initializePackageContents();
- theSysmlPackage.initializePackageContents();
- theModelelementsPackage.initializePackageContents();
- theBlocksPackage.initializePackageContents();
- theConstraintsPackage.initializePackageContents();
- theActivitiesPackage.initializePackageContents();
- theAllocationsPackage.initializePackageContents();
- theRequirementsPackage.initializePackageContents();
- theInteractionsPackage.initializePackageContents();
- theStatemachinesPackage.initializePackageContents();
- theUsecasesPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- thePortandflowsPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(PortandflowsPackage.eNS_URI, thePortandflowsPackage);
- return thePortandflowsPackage;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass flowPortEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass flowPropertyEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass flowSpecificationEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass itemFlowEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EEnum flowDirectionEEnum = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * 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.sysml.portandflows.PortandflowsPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private PortandflowsPackageImpl() {
- super(eNS_URI, PortandflowsFactory.eINSTANCE);
- }
-
- /**
- * 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
- flowPortEClass = createEClass(FLOW_PORT);
- createEReference(flowPortEClass, FLOW_PORT__BASE_PORT);
- createEAttribute(flowPortEClass, FLOW_PORT__IS_ATOMIC);
- createEAttribute(flowPortEClass, FLOW_PORT__IS_CONJUGATED);
- createEAttribute(flowPortEClass, FLOW_PORT__DIRECTION);
-
- flowPropertyEClass = createEClass(FLOW_PROPERTY);
- createEReference(flowPropertyEClass, FLOW_PROPERTY__BASE_PROPERTY);
- createEAttribute(flowPropertyEClass, FLOW_PROPERTY__DIRECTION);
-
- flowSpecificationEClass = createEClass(FLOW_SPECIFICATION);
- createEReference(flowSpecificationEClass, FLOW_SPECIFICATION__BASE_INTERFACE);
-
- itemFlowEClass = createEClass(ITEM_FLOW);
- createEReference(itemFlowEClass, ITEM_FLOW__BASE_INFORMATION_FLOW);
- createEReference(itemFlowEClass, ITEM_FLOW__ITEM_PROPERTY);
-
- // Create enums
- flowDirectionEEnum = createEEnum(FLOW_DIRECTION);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EEnum getFlowDirection() {
- return flowDirectionEEnum;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getFlowPort() {
- return flowPortEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getFlowPort_Base_Port() {
- return (EReference)flowPortEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getFlowPort_Direction() {
- return (EAttribute)flowPortEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getFlowPort_IsAtomic() {
- return (EAttribute)flowPortEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getFlowPort_IsConjugated() {
- return (EAttribute)flowPortEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getFlowProperty() {
- return flowPropertyEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getFlowProperty_Base_Property() {
- return (EReference)flowPropertyEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getFlowProperty_Direction() {
- return (EAttribute)flowPropertyEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getFlowSpecification() {
- return flowSpecificationEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getFlowSpecification_Base_Interface() {
- return (EReference)flowSpecificationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getItemFlow() {
- return itemFlowEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getItemFlow_Base_InformationFlow() {
- return (EReference)itemFlowEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getItemFlow_ItemProperty() {
- return (EReference)itemFlowEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public PortandflowsFactory getPortandflowsFactory() {
- return (PortandflowsFactory)getEFactoryInstance();
- }
-
- /**
- * 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
- UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
-
- // Initialize classes and features; add operations and parameters
- initEClass(flowPortEClass, FlowPort.class, "FlowPort", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getFlowPort_Base_Port(), theUMLPackage.getPort(), null, "base_Port", null, 1, 1, FlowPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getFlowPort_IsAtomic(), ecorePackage.getEBoolean(), "isAtomic", "false", 1, 1, FlowPort.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
- initEAttribute(getFlowPort_IsConjugated(), ecorePackage.getEBoolean(), "isConjugated", null, 0, 1, FlowPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getFlowPort_Direction(), this.getFlowDirection(), "direction", "inout", 1, 1, FlowPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- addEOperation(flowPortEClass, theUMLPackage.getImage(), "getIcon", 1, 1, IS_UNIQUE, !IS_ORDERED);
-
- initEClass(flowPropertyEClass, FlowProperty.class, "FlowProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getFlowProperty_Base_Property(), theUMLPackage.getProperty(), null, "base_Property", null, 1, 1, FlowProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getFlowProperty_Direction(), this.getFlowDirection(), "direction", "inout", 1, 1, FlowProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- addEOperation(flowPropertyEClass, theUMLPackage.getImage(), "getIcon", 1, 1, IS_UNIQUE, !IS_ORDERED);
-
- initEClass(flowSpecificationEClass, FlowSpecification.class, "FlowSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getFlowSpecification_Base_Interface(), theUMLPackage.getInterface(), null, "base_Interface", null, 1, 1, FlowSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(itemFlowEClass, ItemFlow.class, "ItemFlow", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getItemFlow_Base_InformationFlow(), theUMLPackage.getInformationFlow(), null, "base_InformationFlow", null, 1, 1, ItemFlow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getItemFlow_ItemProperty(), theUMLPackage.getProperty(), null, "itemProperty", null, 0, 1, ItemFlow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- // Initialize enums and add enum literals
- initEEnum(flowDirectionEEnum, FlowDirection.class, "FlowDirection");
- addEEnumLiteral(flowDirectionEEnum, FlowDirection.IN);
- addEEnumLiteral(flowDirectionEEnum, FlowDirection.OUT);
- addEEnumLiteral(flowDirectionEEnum, FlowDirection.INOUT);
- }
-
-} // PortandflowsPackageImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/CopyImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/CopyImpl.java
deleted file mode 100644
index 2b4f9671f8a..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/CopyImpl.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.requirements.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.papyrus.sysml.requirements.Copy;
-import org.eclipse.papyrus.sysml.requirements.RequirementsPackage;
-import org.eclipse.uml2.uml.profile.l2.internal.impl.TraceImpl;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Copy</b></em>'. <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class CopyImpl extends TraceImpl implements Copy {
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected CopyImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return RequirementsPackage.Literals.COPY;
- }
-
-} // CopyImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/DeriveReqtImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/DeriveReqtImpl.java
deleted file mode 100644
index 2854d7dd4a4..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/DeriveReqtImpl.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.requirements.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.papyrus.sysml.requirements.DeriveReqt;
-import org.eclipse.papyrus.sysml.requirements.RequirementsPackage;
-import org.eclipse.uml2.uml.profile.l2.internal.impl.TraceImpl;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Derive Reqt</b></em>'. <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class DeriveReqtImpl extends TraceImpl implements DeriveReqt {
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected DeriveReqtImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return RequirementsPackage.Literals.DERIVE_REQT;
- }
-
-} // DeriveReqtImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/RequirementImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/RequirementImpl.java
deleted file mode 100644
index 1a0532661cc..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/RequirementImpl.java
+++ /dev/null
@@ -1,579 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.requirements.impl;
-
-import java.util.Iterator;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.BasicEList;
-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.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.BasicInternalEList;
-import org.eclipse.papyrus.sysml.requirements.Copy;
-import org.eclipse.papyrus.sysml.requirements.DeriveReqt;
-import org.eclipse.papyrus.sysml.requirements.Requirement;
-import org.eclipse.papyrus.sysml.requirements.RequirementsPackage;
-import org.eclipse.papyrus.sysml.requirements.Satisfy;
-import org.eclipse.papyrus.sysml.requirements.Verify;
-import org.eclipse.uml2.uml.Dependency;
-import org.eclipse.uml2.uml.DirectedRelationship;
-import org.eclipse.uml2.uml.NamedElement;
-import org.eclipse.uml2.uml.profile.l2.L2Package;
-import org.eclipse.uml2.uml.profile.l2.Refine;
-import org.eclipse.uml2.uml.profile.l2.Trace;
-import org.eclipse.uml2.uml.util.UMLUtil;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Requirement</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.requirements.impl.RequirementImpl#getText <em>Text</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.requirements.impl.RequirementImpl#getId <em>Id</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.requirements.impl.RequirementImpl#getDerived <em>Derived</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.requirements.impl.RequirementImpl#getDerivedFrom <em>Derived From</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.requirements.impl.RequirementImpl#getSatisfiedBy <em>Satisfied By</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.requirements.impl.RequirementImpl#getRefinedBy <em>Refined By</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.requirements.impl.RequirementImpl#getTracedTo <em>Traced To</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.requirements.impl.RequirementImpl#getVerifiedBy <em>Verified By</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.requirements.impl.RequirementImpl#getMaster <em>Master</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.requirements.impl.RequirementImpl#getBase_Class <em>Base Class</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class RequirementImpl extends EObjectImpl implements Requirement {
-
- /**
- * The default value of the '{@link #getText() <em>Text</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getText()
- * @generated
- * @ordered
- */
- protected static final String TEXT_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getText() <em>Text</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getText()
- * @generated
- * @ordered
- */
- protected String text = TEXT_EDEFAULT;
-
- /**
- * The default value of the '{@link #getId() <em>Id</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getId()
- * @generated
- * @ordered
- */
- protected static final String ID_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getId() <em>Id</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getId()
- * @generated
- * @ordered
- */
- protected String id = ID_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getBase_Class() <em>Base Class</em>}' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getBase_Class()
- * @generated
- * @ordered
- */
- protected org.eclipse.uml2.uml.Class base_Class;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected RequirementImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public org.eclipse.uml2.uml.Class basicGetBase_Class() {
- return base_Class;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public Requirement basicGetMaster() {
- // The Requirement is the supplier of the Copy link between the master
- // Requirement and
- // current
- // This should return the TestCase verifying current Requirement
- Requirement master = null;
- Copy currentCopy = null;
-
- if(getBase_Class() != null) {
- Iterator<Dependency> itDep = getBase_Class().getClientDependencies().iterator();
-
- // Find Copy link
- while(itDep.hasNext()) {
- Dependency currentDep = itDep.next();
- currentCopy = UMLUtil.getStereotypeApplication(currentDep, Copy.class);
-
- if(currentCopy != null) {
- EList<NamedElement> suppliers = currentCopy.getBase_Abstraction().getSuppliers();
- Iterator<NamedElement> it = suppliers.iterator();
- while(it.hasNext() && (master == null)) {
- Requirement currentRequirement = UMLUtil.getStereotypeApplication(it.next(), Requirement.class);
- if(currentRequirement != null) {
- master = currentRequirement;
- }
- }
- }
- }
- }
- return master;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case RequirementsPackage.REQUIREMENT__TEXT:
- return getText();
- case RequirementsPackage.REQUIREMENT__ID:
- return getId();
- case RequirementsPackage.REQUIREMENT__DERIVED:
- return getDerived();
- case RequirementsPackage.REQUIREMENT__DERIVED_FROM:
- return getDerivedFrom();
- case RequirementsPackage.REQUIREMENT__SATISFIED_BY:
- return getSatisfiedBy();
- case RequirementsPackage.REQUIREMENT__REFINED_BY:
- return getRefinedBy();
- case RequirementsPackage.REQUIREMENT__TRACED_TO:
- return getTracedTo();
- case RequirementsPackage.REQUIREMENT__VERIFIED_BY:
- return getVerifiedBy();
- case RequirementsPackage.REQUIREMENT__MASTER:
- if(resolve)
- return getMaster();
- return basicGetMaster();
- case RequirementsPackage.REQUIREMENT__BASE_CLASS:
- if(resolve)
- return getBase_Class();
- return basicGetBase_Class();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case RequirementsPackage.REQUIREMENT__TEXT:
- return TEXT_EDEFAULT == null ? text != null : !TEXT_EDEFAULT.equals(text);
- case RequirementsPackage.REQUIREMENT__ID:
- return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
- case RequirementsPackage.REQUIREMENT__DERIVED:
- return !getDerived().isEmpty();
- case RequirementsPackage.REQUIREMENT__DERIVED_FROM:
- return !getDerivedFrom().isEmpty();
- case RequirementsPackage.REQUIREMENT__SATISFIED_BY:
- return !getSatisfiedBy().isEmpty();
- case RequirementsPackage.REQUIREMENT__REFINED_BY:
- return !getRefinedBy().isEmpty();
- case RequirementsPackage.REQUIREMENT__TRACED_TO:
- return !getTracedTo().isEmpty();
- case RequirementsPackage.REQUIREMENT__VERIFIED_BY:
- return !getVerifiedBy().isEmpty();
- case RequirementsPackage.REQUIREMENT__MASTER:
- return basicGetMaster() != null;
- case RequirementsPackage.REQUIREMENT__BASE_CLASS:
- return base_Class != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case RequirementsPackage.REQUIREMENT__TEXT:
- setText((String)newValue);
- return;
- case RequirementsPackage.REQUIREMENT__ID:
- setId((String)newValue);
- return;
- case RequirementsPackage.REQUIREMENT__BASE_CLASS:
- setBase_Class((org.eclipse.uml2.uml.Class)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return RequirementsPackage.Literals.REQUIREMENT;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case RequirementsPackage.REQUIREMENT__TEXT:
- setText(TEXT_EDEFAULT);
- return;
- case RequirementsPackage.REQUIREMENT__ID:
- setId(ID_EDEFAULT);
- return;
- case RequirementsPackage.REQUIREMENT__BASE_CLASS:
- setBase_Class((org.eclipse.uml2.uml.Class)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public org.eclipse.uml2.uml.Class getBase_Class() {
- if(base_Class != null && base_Class.eIsProxy()) {
- InternalEObject oldBase_Class = (InternalEObject)base_Class;
- base_Class = (org.eclipse.uml2.uml.Class)eResolveProxy(oldBase_Class);
- if(base_Class != oldBase_Class) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, RequirementsPackage.REQUIREMENT__BASE_CLASS, oldBase_Class, base_Class));
- }
- }
- return base_Class;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public EList<Requirement> getDerived() {
- // This should return the Requirement(s) derived from current
- EList<Requirement> derived = new BasicEList<Requirement>();
- DeriveReqt currentDeriveReqt = null;
-
- if(getBase_Class() != null) {
- Iterator<DirectedRelationship> itDep = getBase_Class().getTargetDirectedRelationships().iterator();
-
- // Find DeriveReqt link
- while(itDep.hasNext()) {
- DirectedRelationship currentDirectedRelationship = itDep.next();
- currentDeriveReqt = UMLUtil.getStereotypeApplication(currentDirectedRelationship, DeriveReqt.class);
-
- if(currentDeriveReqt != null) {
- EList<NamedElement> clients = currentDeriveReqt.getBase_Abstraction().getClients();
- Iterator<NamedElement> it = clients.iterator();
- while(it.hasNext()) {
- Requirement currentRequirement = UMLUtil.getStereotypeApplication(it.next(), Requirement.class);
- if(currentRequirement != null) {
- derived.add(currentRequirement);
- }
- }
- }
- }
- }
- // Convert to InternalEList<?>
- return new BasicInternalEList<Requirement>(Requirement.class, derived.size(), derived.toArray());
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public EList<Requirement> getDerivedFrom() {
- // This should return the Requirement(s) this Requirement is derived
- // from
- EList<Requirement> derivedFrom = new BasicEList<Requirement>();
- DeriveReqt currentDeriveReqt = null;
- if(getBase_Class() != null) {
- Iterator<DirectedRelationship> itDep = getBase_Class().getSourceDirectedRelationships().iterator();
-
- // Find DeriveReqt link
- while(itDep.hasNext()) {
- DirectedRelationship currentDRelationship = itDep.next();
- currentDeriveReqt = UMLUtil.getStereotypeApplication(currentDRelationship, DeriveReqt.class);
-
- if(currentDeriveReqt != null) {
- EList<NamedElement> suppliers = currentDeriveReqt.getBase_Abstraction().getSuppliers();
- Iterator<NamedElement> it = suppliers.iterator();
- while(it.hasNext()) {
- Requirement currentRequirement = UMLUtil.getStereotypeApplication(it.next(), Requirement.class);
- if(currentRequirement != null) {
- derivedFrom.add(currentRequirement);
- }
- }
- }
- }
- }
- // Convert to InternalEList<?>
- return new BasicInternalEList<Requirement>(Requirement.class, derivedFrom.size(), derivedFrom.toArray());
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getId() {
- return id;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Requirement getMaster() {
- Requirement master = basicGetMaster();
- return master != null && master.eIsProxy() ? (Requirement)eResolveProxy((InternalEObject)master) : master;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public EList<NamedElement> getRefinedBy() {
- // This should return the NamedElement(s) that refine current
- // Requirement
- EList<NamedElement> refinedBy = new BasicEList<NamedElement>();
- Refine currentRefine = null;
-
- if(getBase_Class() != null) {
- Iterator<DirectedRelationship> itDep = getBase_Class().getTargetDirectedRelationships().iterator();
-
- // Find Refine link
- while(itDep.hasNext()) {
- DirectedRelationship currentDRelationship = itDep.next();
- currentRefine = UMLUtil.getStereotypeApplication(currentDRelationship, Refine.class);
-
- if(currentRefine != null) {
- refinedBy.addAll(currentRefine.getBase_Abstraction().getClients());
- }
- }
- }
- // Convert to InternalEList<?>
- return new BasicInternalEList<NamedElement>(NamedElement.class, refinedBy.size(), refinedBy.toArray());
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public EList<NamedElement> getSatisfiedBy() {
- // This should return the NamedElement(s) that satisfy current
- // Requirement
- EList<NamedElement> satisfyBy = new BasicEList<NamedElement>();
- Satisfy currentSatisfy = null;
-
- if(getBase_Class() != null) {
- Iterator<DirectedRelationship> itDep = getBase_Class().getTargetDirectedRelationships().iterator();
-
- // Find Satisfy link
- while(itDep.hasNext()) {
- DirectedRelationship currentDRelationship = itDep.next();
- currentSatisfy = UMLUtil.getStereotypeApplication(currentDRelationship, Satisfy.class);
-
- if(currentSatisfy != null) {
- satisfyBy.addAll(currentSatisfy.getBase_Abstraction().getClients());
- }
- }
- }
- // Convert to InternalEList<?>
- return new BasicInternalEList<NamedElement>(NamedElement.class, satisfyBy.size(), satisfyBy.toArray());
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getText() {
- return text;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public EList<NamedElement> getTracedTo() {
- // This should return the NamedElement(s) traced by current Requirement
- // SysML spec. : Derived from all elements that are the client of a
- // «trace» relationship
- // for which this requirement is a supplier.
- EList<NamedElement> tracedTo = new BasicEList<NamedElement>();
- Trace currentTrace = null;
-
- if(getBase_Class() != null) {
- Iterator<DirectedRelationship> itDep = getBase_Class().getTargetDirectedRelationships().iterator();
-
- // Find Trace link
- while(itDep.hasNext()) {
- DirectedRelationship currentDR = itDep.next();
- currentTrace = UMLUtil.getStereotypeApplication(currentDR, Trace.class);
-
- // Must be a Trace not a subtype (see bug #352563).
- if((currentTrace != null) && (currentTrace.eClass() == L2Package.eINSTANCE.getTrace())) {
- EList<NamedElement> suppliers = currentTrace.getBase_Abstraction().getClients();
- tracedTo.addAll(suppliers);
- }
- }
- }
- // Convert to InternalEList<?>
- return new BasicInternalEList<NamedElement>(NamedElement.class, tracedTo.size(), tracedTo.toArray());
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public EList<NamedElement> getVerifiedBy() {
- // This should return the list of NamedElement verifying current
- // Requirement
- EList<NamedElement> verifiedBy = new BasicEList<NamedElement>();
- Verify currentVerify = null;
-
- if(getBase_Class() != null) {
- Iterator<DirectedRelationship> itDep = getBase_Class().getTargetDirectedRelationships().iterator();
-
- // Find Verify link
- while(itDep.hasNext()) {
- DirectedRelationship currentDRelationship = itDep.next();
- currentVerify = UMLUtil.getStereotypeApplication(currentDRelationship, Verify.class);
-
- if(currentVerify != null) {
- verifiedBy.addAll(currentVerify.getBase_Abstraction().getClients());
- }
- }
- }
- // Convert to InternalEList<?>
- return new BasicInternalEList<NamedElement>(NamedElement.class, verifiedBy.size(), verifiedBy.toArray());
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Class(org.eclipse.uml2.uml.Class newBase_Class) {
- org.eclipse.uml2.uml.Class oldBase_Class = base_Class;
- base_Class = newBase_Class;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, RequirementsPackage.REQUIREMENT__BASE_CLASS, oldBase_Class, base_Class));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setId(String newId) {
- String oldId = id;
- id = newId;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, RequirementsPackage.REQUIREMENT__ID, oldId, id));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public void setMaster(Requirement newMaster) {
-
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setText(String newText) {
- String oldText = text;
- text = newText;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, RequirementsPackage.REQUIREMENT__TEXT, oldText, text));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if(eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (text: ");
- result.append(text);
- result.append(", id: ");
- result.append(id);
- result.append(')');
- return result.toString();
- }
-
-} // RequirementImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/RequirementRelatedImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/RequirementRelatedImpl.java
deleted file mode 100644
index 9f081619a3f..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/RequirementRelatedImpl.java
+++ /dev/null
@@ -1,342 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.requirements.impl;
-
-import java.util.Iterator;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.BasicEList;
-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.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.BasicInternalEList;
-import org.eclipse.papyrus.sysml.requirements.Requirement;
-import org.eclipse.papyrus.sysml.requirements.RequirementRelated;
-import org.eclipse.papyrus.sysml.requirements.RequirementsPackage;
-import org.eclipse.papyrus.sysml.requirements.Satisfy;
-import org.eclipse.papyrus.sysml.requirements.Verify;
-import org.eclipse.uml2.uml.Dependency;
-import org.eclipse.uml2.uml.DirectedRelationship;
-import org.eclipse.uml2.uml.NamedElement;
-import org.eclipse.uml2.uml.profile.l2.L2Package;
-import org.eclipse.uml2.uml.profile.l2.Refine;
-import org.eclipse.uml2.uml.profile.l2.Trace;
-import org.eclipse.uml2.uml.util.UMLUtil;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Requirement Related</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.requirements.impl.RequirementRelatedImpl#getBase_NamedElement <em>Base Named Element</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.requirements.impl.RequirementRelatedImpl#getTracedFrom <em>Traced From</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.requirements.impl.RequirementRelatedImpl#getSatisfies <em>Satisfies</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.requirements.impl.RequirementRelatedImpl#getRefines <em>Refines</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.requirements.impl.RequirementRelatedImpl#getVerifies <em>Verifies</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class RequirementRelatedImpl extends EObjectImpl implements RequirementRelated {
-
- /**
- * The cached value of the '{@link #getBase_NamedElement() <em>Base Named Element</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_NamedElement()
- * @generated
- * @ordered
- */
- protected NamedElement base_NamedElement;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected RequirementRelatedImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NamedElement basicGetBase_NamedElement() {
- return base_NamedElement;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case RequirementsPackage.REQUIREMENT_RELATED__BASE_NAMED_ELEMENT:
- if(resolve)
- return getBase_NamedElement();
- return basicGetBase_NamedElement();
- case RequirementsPackage.REQUIREMENT_RELATED__TRACED_FROM:
- return getTracedFrom();
- case RequirementsPackage.REQUIREMENT_RELATED__SATISFIES:
- return getSatisfies();
- case RequirementsPackage.REQUIREMENT_RELATED__REFINES:
- return getRefines();
- case RequirementsPackage.REQUIREMENT_RELATED__VERIFIES:
- return getVerifies();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case RequirementsPackage.REQUIREMENT_RELATED__BASE_NAMED_ELEMENT:
- return base_NamedElement != null;
- case RequirementsPackage.REQUIREMENT_RELATED__TRACED_FROM:
- return !getTracedFrom().isEmpty();
- case RequirementsPackage.REQUIREMENT_RELATED__SATISFIES:
- return !getSatisfies().isEmpty();
- case RequirementsPackage.REQUIREMENT_RELATED__REFINES:
- return !getRefines().isEmpty();
- case RequirementsPackage.REQUIREMENT_RELATED__VERIFIES:
- return !getVerifies().isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case RequirementsPackage.REQUIREMENT_RELATED__BASE_NAMED_ELEMENT:
- setBase_NamedElement((NamedElement)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return RequirementsPackage.Literals.REQUIREMENT_RELATED;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case RequirementsPackage.REQUIREMENT_RELATED__BASE_NAMED_ELEMENT:
- setBase_NamedElement((NamedElement)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NamedElement getBase_NamedElement() {
- if(base_NamedElement != null && base_NamedElement.eIsProxy()) {
- InternalEObject oldBase_NamedElement = (InternalEObject)base_NamedElement;
- base_NamedElement = (NamedElement)eResolveProxy(oldBase_NamedElement);
- if(base_NamedElement != oldBase_NamedElement) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, RequirementsPackage.REQUIREMENT_RELATED__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement));
- }
- }
- return base_NamedElement;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public EList<Requirement> getRefines() {
- // This should return the Requirement(s) refined by current element
- EList<Requirement> refines = new BasicEList<Requirement>();
- Refine currentRefine = null;
-
- if(getBase_NamedElement() != null) {
- // Find Refine link
- Iterator<Dependency> itDep = getBase_NamedElement().getClientDependencies().iterator();
-
- while(itDep.hasNext()) {
- Dependency currentDependency = itDep.next();
- currentRefine = UMLUtil.getStereotypeApplication(currentDependency, Refine.class);
-
- if(currentRefine != null) {
- EList<NamedElement> suppliers = currentRefine.getBase_Abstraction().getSuppliers();
- Iterator<NamedElement> it = suppliers.iterator();
- while(it.hasNext()) {
- Requirement currentRequirement = UMLUtil.getStereotypeApplication(it.next(), Requirement.class);
- if(currentRequirement != null) {
- refines.add(currentRequirement);
- }
- }
- }
- }
- }
- // Convert to InternalEList<?>
- return new BasicInternalEList<Requirement>(Requirement.class, refines.size(), refines.toArray());
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public EList<Requirement> getSatisfies() {
- // This should return the Requirement(s) satisfied by current element
- EList<Requirement> satisfies = new BasicEList<Requirement>();
- Satisfy currentSatisfy = null;
-
- if(getBase_NamedElement() != null) {
- // Find Satisfy link
- Iterator<Dependency> itDep = getBase_NamedElement().getClientDependencies().iterator();
-
- while(itDep.hasNext()) {
- Dependency currentDependency = itDep.next();
- currentSatisfy = UMLUtil.getStereotypeApplication(currentDependency, Satisfy.class);
-
- if(currentSatisfy != null) {
- EList<NamedElement> suppliers = currentSatisfy.getBase_Abstraction().getSuppliers();
- Iterator<NamedElement> it = suppliers.iterator();
- while(it.hasNext()) {
- Requirement currentRequirement = UMLUtil.getStereotypeApplication(it.next(), Requirement.class);
- if(currentRequirement != null) {
- satisfies.add(currentRequirement);
- }
- }
- }
- }
- }
- // Convert to InternalEList<?>
- return new BasicInternalEList<Requirement>(Requirement.class, satisfies.size(), satisfies.toArray());
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public EList<Requirement> getTracedFrom() {
-
- // Derived from all requirements that are supplier of a "trace"
- // relationship for
- // which this element is a client.
- // "trace" subtypes are not included (see bug #352563).
- EList<Requirement> tracedFrom = new BasicEList<Requirement>();
- Trace currentTrace = null;
-
- if(getBase_NamedElement() != null) {
- // Find Trace link
- EList<DirectedRelationship> relationships = getBase_NamedElement().getSourceDirectedRelationships();
- Iterator<DirectedRelationship> itDep = relationships.iterator();
-
- while(itDep.hasNext()) {
- DirectedRelationship currentDRelationship = itDep.next();
- currentTrace = UMLUtil.getStereotypeApplication(currentDRelationship, Trace.class);
-
- // Must be a Trace not a subtype (see bug #352563).
- if((currentTrace != null) && (currentTrace.eClass() == L2Package.eINSTANCE.getTrace())) {
- EList<NamedElement> clients = currentTrace.getBase_Abstraction().getSuppliers();
- Iterator<NamedElement> it = clients.iterator();
- while(it.hasNext()) {
- Requirement currentRequirement = UMLUtil.getStereotypeApplication(it.next(), Requirement.class);
- if(currentRequirement != null) {
- tracedFrom.add(currentRequirement);
- }
- }
- }
- }
- }
- // Convert to InternalEList<?>
- return new BasicInternalEList<Requirement>(Requirement.class, tracedFrom.size(), tracedFrom.toArray());
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public EList<Requirement> getVerifies() {
- // This should return the Requirement(s) verified by current element
- EList<Requirement> verifies = new BasicEList<Requirement>();
- Verify currentVerify = null;
-
- if(getBase_NamedElement() != null) {
- // Find Satisfy link
- Iterator<Dependency> itDep = getBase_NamedElement().getClientDependencies().iterator();
-
- while(itDep.hasNext()) {
- Dependency currentDependency = itDep.next();
- currentVerify = UMLUtil.getStereotypeApplication(currentDependency, Verify.class);
-
- if(currentVerify != null) {
- EList<NamedElement> suppliers = currentVerify.getBase_Abstraction().getSuppliers();
- Iterator<NamedElement> it = suppliers.iterator();
- while(it.hasNext()) {
- Requirement currentRequirement = UMLUtil.getStereotypeApplication(it.next(), Requirement.class);
- if(currentRequirement != null) {
- verifies.add(currentRequirement);
- }
- }
- }
- }
- }
- // Convert to InternalEList<?>
- return new BasicInternalEList<Requirement>(Requirement.class, verifies.size(), verifies.toArray());
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_NamedElement(NamedElement newBase_NamedElement) {
- NamedElement oldBase_NamedElement = base_NamedElement;
- base_NamedElement = newBase_NamedElement;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, RequirementsPackage.REQUIREMENT_RELATED__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement));
- }
-
-} // RequirementRelatedImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/RequirementsFactoryImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/RequirementsFactoryImpl.java
deleted file mode 100644
index 36551ca7299..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/RequirementsFactoryImpl.java
+++ /dev/null
@@ -1,186 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.requirements.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.sysml.requirements.Copy;
-import org.eclipse.papyrus.sysml.requirements.DeriveReqt;
-import org.eclipse.papyrus.sysml.requirements.Requirement;
-import org.eclipse.papyrus.sysml.requirements.RequirementRelated;
-import org.eclipse.papyrus.sysml.requirements.RequirementsFactory;
-import org.eclipse.papyrus.sysml.requirements.RequirementsPackage;
-import org.eclipse.papyrus.sysml.requirements.Satisfy;
-import org.eclipse.papyrus.sysml.requirements.TestCase;
-import org.eclipse.papyrus.sysml.requirements.Verify;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class RequirementsFactoryImpl extends EFactoryImpl implements RequirementsFactory {
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static RequirementsPackage getPackage() {
- return RequirementsPackage.eINSTANCE;
- }
-
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public static RequirementsFactory init() {
- try {
- RequirementsFactory theRequirementsFactory = (RequirementsFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/0.7.0/SysML/Requirements");
- if(theRequirementsFactory != null) {
- return theRequirementsFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new RequirementsFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public RequirementsFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch(eClass.getClassifierID()) {
- case RequirementsPackage.DERIVE_REQT:
- return createDeriveReqt();
- case RequirementsPackage.VERIFY:
- return createVerify();
- case RequirementsPackage.COPY:
- return createCopy();
- case RequirementsPackage.SATISFY:
- return createSatisfy();
- case RequirementsPackage.TEST_CASE:
- return createTestCase();
- case RequirementsPackage.REQUIREMENT:
- return createRequirement();
- case RequirementsPackage.REQUIREMENT_RELATED:
- return createRequirementRelated();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Copy createCopy() {
- CopyImpl copy = new CopyImpl();
- return copy;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public DeriveReqt createDeriveReqt() {
- DeriveReqtImpl deriveReqt = new DeriveReqtImpl();
- return deriveReqt;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Requirement createRequirement() {
- RequirementImpl requirement = new RequirementImpl();
- return requirement;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public RequirementRelated createRequirementRelated() {
- RequirementRelatedImpl requirementRelated = new RequirementRelatedImpl();
- return requirementRelated;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Satisfy createSatisfy() {
- SatisfyImpl satisfy = new SatisfyImpl();
- return satisfy;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public TestCase createTestCase() {
- TestCaseImpl testCase = new TestCaseImpl();
- return testCase;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Verify createVerify() {
- VerifyImpl verify = new VerifyImpl();
- return verify;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public RequirementsPackage getRequirementsPackage() {
- return (RequirementsPackage)getEPackage();
- }
-
-} // RequirementsFactoryImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/RequirementsPackageImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/RequirementsPackageImpl.java
deleted file mode 100644
index 145b81ba3c8..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/RequirementsPackageImpl.java
+++ /dev/null
@@ -1,565 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.requirements.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.sysml.SysmlPackage;
-import org.eclipse.papyrus.sysml.activities.ActivitiesPackage;
-import org.eclipse.papyrus.sysml.activities.impl.ActivitiesPackageImpl;
-import org.eclipse.papyrus.sysml.allocations.AllocationsPackage;
-import org.eclipse.papyrus.sysml.allocations.impl.AllocationsPackageImpl;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-import org.eclipse.papyrus.sysml.blocks.impl.BlocksPackageImpl;
-import org.eclipse.papyrus.sysml.constraints.ConstraintsPackage;
-import org.eclipse.papyrus.sysml.constraints.impl.ConstraintsPackageImpl;
-import org.eclipse.papyrus.sysml.impl.SysmlPackageImpl;
-import org.eclipse.papyrus.sysml.interactions.InteractionsPackage;
-import org.eclipse.papyrus.sysml.interactions.impl.InteractionsPackageImpl;
-import org.eclipse.papyrus.sysml.modelelements.ModelelementsPackage;
-import org.eclipse.papyrus.sysml.modelelements.impl.ModelelementsPackageImpl;
-import org.eclipse.papyrus.sysml.portandflows.PortandflowsPackage;
-import org.eclipse.papyrus.sysml.portandflows.impl.PortandflowsPackageImpl;
-import org.eclipse.papyrus.sysml.requirements.Copy;
-import org.eclipse.papyrus.sysml.requirements.DeriveReqt;
-import org.eclipse.papyrus.sysml.requirements.Requirement;
-import org.eclipse.papyrus.sysml.requirements.RequirementRelated;
-import org.eclipse.papyrus.sysml.requirements.RequirementsFactory;
-import org.eclipse.papyrus.sysml.requirements.RequirementsPackage;
-import org.eclipse.papyrus.sysml.requirements.Satisfy;
-import org.eclipse.papyrus.sysml.requirements.TestCase;
-import org.eclipse.papyrus.sysml.requirements.Verify;
-import org.eclipse.papyrus.sysml.statemachines.StatemachinesPackage;
-import org.eclipse.papyrus.sysml.statemachines.impl.StatemachinesPackageImpl;
-import org.eclipse.papyrus.sysml.usecases.UsecasesPackage;
-import org.eclipse.papyrus.sysml.usecases.impl.UsecasesPackageImpl;
-import org.eclipse.uml2.uml.UMLPackage;
-import org.eclipse.uml2.uml.profile.l2.L2Package;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class RequirementsPackageImpl extends EPackageImpl implements RequirementsPackage {
-
- /**
- * <!-- 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 RequirementsPackage#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 RequirementsPackage init() {
- if(isInited)
- return (RequirementsPackage)EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI);
-
- // Obtain or create and register package
- RequirementsPackageImpl theRequirementsPackage = (RequirementsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof RequirementsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new RequirementsPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- L2Package.eINSTANCE.eClass();
-
- // Obtain or create and register interdependencies
- SysmlPackageImpl theSysmlPackage = (SysmlPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SysmlPackage.eNS_URI) instanceof SysmlPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SysmlPackage.eNS_URI) : SysmlPackage.eINSTANCE);
- ModelelementsPackageImpl theModelelementsPackage = (ModelelementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) instanceof ModelelementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) : ModelelementsPackage.eINSTANCE);
- BlocksPackageImpl theBlocksPackage = (BlocksPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI) instanceof BlocksPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI) : BlocksPackage.eINSTANCE);
- PortandflowsPackageImpl thePortandflowsPackage = (PortandflowsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) instanceof PortandflowsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) : PortandflowsPackage.eINSTANCE);
- ConstraintsPackageImpl theConstraintsPackage = (ConstraintsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI) instanceof ConstraintsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI) : ConstraintsPackage.eINSTANCE);
- ActivitiesPackageImpl theActivitiesPackage = (ActivitiesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) instanceof ActivitiesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) : ActivitiesPackage.eINSTANCE);
- AllocationsPackageImpl theAllocationsPackage = (AllocationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) instanceof AllocationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) : AllocationsPackage.eINSTANCE);
- InteractionsPackageImpl theInteractionsPackage = (InteractionsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI) instanceof InteractionsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI) : InteractionsPackage.eINSTANCE);
- StatemachinesPackageImpl theStatemachinesPackage = (StatemachinesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI) instanceof StatemachinesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI) : StatemachinesPackage.eINSTANCE);
- UsecasesPackageImpl theUsecasesPackage = (UsecasesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) instanceof UsecasesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) : UsecasesPackage.eINSTANCE);
-
- // Create package meta-data objects
- theRequirementsPackage.createPackageContents();
- theSysmlPackage.createPackageContents();
- theModelelementsPackage.createPackageContents();
- theBlocksPackage.createPackageContents();
- thePortandflowsPackage.createPackageContents();
- theConstraintsPackage.createPackageContents();
- theActivitiesPackage.createPackageContents();
- theAllocationsPackage.createPackageContents();
- theInteractionsPackage.createPackageContents();
- theStatemachinesPackage.createPackageContents();
- theUsecasesPackage.createPackageContents();
-
- // Initialize created meta-data
- theRequirementsPackage.initializePackageContents();
- theSysmlPackage.initializePackageContents();
- theModelelementsPackage.initializePackageContents();
- theBlocksPackage.initializePackageContents();
- thePortandflowsPackage.initializePackageContents();
- theConstraintsPackage.initializePackageContents();
- theActivitiesPackage.initializePackageContents();
- theAllocationsPackage.initializePackageContents();
- theInteractionsPackage.initializePackageContents();
- theStatemachinesPackage.initializePackageContents();
- theUsecasesPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theRequirementsPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(RequirementsPackage.eNS_URI, theRequirementsPackage);
- return theRequirementsPackage;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass deriveReqtEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass verifyEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass copyEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass satisfyEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass testCaseEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass requirementEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass requirementRelatedEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * 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.sysml.requirements.RequirementsPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private RequirementsPackageImpl() {
- super(eNS_URI, RequirementsFactory.eINSTANCE);
- }
-
- /**
- * 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
- deriveReqtEClass = createEClass(DERIVE_REQT);
-
- verifyEClass = createEClass(VERIFY);
-
- copyEClass = createEClass(COPY);
-
- satisfyEClass = createEClass(SATISFY);
-
- testCaseEClass = createEClass(TEST_CASE);
- createEReference(testCaseEClass, TEST_CASE__BASE_BEHAVIOR);
- createEReference(testCaseEClass, TEST_CASE__BASE_OPERATION);
- createEReference(testCaseEClass, TEST_CASE__VERIFIES);
-
- requirementEClass = createEClass(REQUIREMENT);
- createEAttribute(requirementEClass, REQUIREMENT__TEXT);
- createEAttribute(requirementEClass, REQUIREMENT__ID);
- createEReference(requirementEClass, REQUIREMENT__DERIVED);
- createEReference(requirementEClass, REQUIREMENT__DERIVED_FROM);
- createEReference(requirementEClass, REQUIREMENT__SATISFIED_BY);
- createEReference(requirementEClass, REQUIREMENT__REFINED_BY);
- createEReference(requirementEClass, REQUIREMENT__TRACED_TO);
- createEReference(requirementEClass, REQUIREMENT__VERIFIED_BY);
- createEReference(requirementEClass, REQUIREMENT__MASTER);
- createEReference(requirementEClass, REQUIREMENT__BASE_CLASS);
-
- requirementRelatedEClass = createEClass(REQUIREMENT_RELATED);
- createEReference(requirementRelatedEClass, REQUIREMENT_RELATED__BASE_NAMED_ELEMENT);
- createEReference(requirementRelatedEClass, REQUIREMENT_RELATED__TRACED_FROM);
- createEReference(requirementRelatedEClass, REQUIREMENT_RELATED__SATISFIES);
- createEReference(requirementRelatedEClass, REQUIREMENT_RELATED__REFINES);
- createEReference(requirementRelatedEClass, REQUIREMENT_RELATED__VERIFIES);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getCopy() {
- return copyEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getDeriveReqt() {
- return deriveReqtEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getRequirement() {
- return requirementEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRequirement_Base_Class() {
- return (EReference)requirementEClass.getEStructuralFeatures().get(9);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRequirement_Derived() {
- return (EReference)requirementEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRequirement_DerivedFrom() {
- return (EReference)requirementEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getRequirement_Id() {
- return (EAttribute)requirementEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRequirement_Master() {
- return (EReference)requirementEClass.getEStructuralFeatures().get(8);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRequirement_RefinedBy() {
- return (EReference)requirementEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRequirement_SatisfiedBy() {
- return (EReference)requirementEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getRequirement_Text() {
- return (EAttribute)requirementEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRequirement_TracedTo() {
- return (EReference)requirementEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRequirement_VerifiedBy() {
- return (EReference)requirementEClass.getEStructuralFeatures().get(7);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getRequirementRelated() {
- return requirementRelatedEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRequirementRelated_Base_NamedElement() {
- return (EReference)requirementRelatedEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRequirementRelated_Refines() {
- return (EReference)requirementRelatedEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRequirementRelated_Satisfies() {
- return (EReference)requirementRelatedEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRequirementRelated_TracedFrom() {
- return (EReference)requirementRelatedEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRequirementRelated_Verifies() {
- return (EReference)requirementRelatedEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public RequirementsFactory getRequirementsFactory() {
- return (RequirementsFactory)getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getSatisfy() {
- return satisfyEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getTestCase() {
- return testCaseEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getTestCase_Base_Behavior() {
- return (EReference)testCaseEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getTestCase_Base_Operation() {
- return (EReference)testCaseEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getTestCase_Verifies() {
- return (EReference)testCaseEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getVerify() {
- return verifyEClass;
- }
-
- /**
- * 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
- L2Package theStandardPackage = (L2Package)EPackage.Registry.INSTANCE.getEPackage(L2Package.eNS_URI);
- UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- deriveReqtEClass.getESuperTypes().add(theStandardPackage.getTrace());
- verifyEClass.getESuperTypes().add(theStandardPackage.getTrace());
- copyEClass.getESuperTypes().add(theStandardPackage.getTrace());
- satisfyEClass.getESuperTypes().add(theStandardPackage.getTrace());
-
- // Initialize classes and features; add operations and parameters
- initEClass(deriveReqtEClass, DeriveReqt.class, "DeriveReqt", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(verifyEClass, Verify.class, "Verify", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(copyEClass, Copy.class, "Copy", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(satisfyEClass, Satisfy.class, "Satisfy", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(testCaseEClass, TestCase.class, "TestCase", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getTestCase_Base_Behavior(), theUMLPackage.getBehavior(), null, "base_Behavior", null, 1, 1, TestCase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getTestCase_Base_Operation(), theUMLPackage.getOperation(), null, "base_Operation", null, 1, 1, TestCase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getTestCase_Verifies(), this.getRequirement(), null, "verifies", null, 0, -1, TestCase.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
-
- initEClass(requirementEClass, Requirement.class, "Requirement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getRequirement_Text(), ecorePackage.getEString(), "text", null, 1, 1, Requirement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getRequirement_Id(), ecorePackage.getEString(), "id", null, 1, 1, Requirement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getRequirement_Derived(), this.getRequirement(), null, "derived", null, 0, -1, Requirement.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
- initEReference(getRequirement_DerivedFrom(), this.getRequirement(), null, "derivedFrom", null, 0, -1, Requirement.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
- initEReference(getRequirement_SatisfiedBy(), theUMLPackage.getNamedElement(), null, "satisfiedBy", null, 0, -1, Requirement.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
- initEReference(getRequirement_RefinedBy(), theUMLPackage.getNamedElement(), null, "refinedBy", null, 0, -1, Requirement.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
- initEReference(getRequirement_TracedTo(), theUMLPackage.getNamedElement(), null, "tracedTo", null, 0, -1, Requirement.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
- initEReference(getRequirement_VerifiedBy(), theUMLPackage.getNamedElement(), null, "verifiedBy", null, 0, -1, Requirement.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
- initEReference(getRequirement_Master(), this.getRequirement(), null, "master", null, 0, 1, Requirement.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
- initEReference(getRequirement_Base_Class(), theUMLPackage.getClass_(), null, "base_Class", null, 1, 1, Requirement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(requirementRelatedEClass, RequirementRelated.class, "RequirementRelated", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getRequirementRelated_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 1, 1, RequirementRelated.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getRequirementRelated_TracedFrom(), this.getRequirement(), null, "tracedFrom", null, 0, -1, RequirementRelated.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
- initEReference(getRequirementRelated_Satisfies(), this.getRequirement(), null, "satisfies", null, 0, -1, RequirementRelated.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
- initEReference(getRequirementRelated_Refines(), this.getRequirement(), null, "refines", null, 0, -1, RequirementRelated.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
- initEReference(getRequirementRelated_Verifies(), this.getRequirement(), null, "verifies", null, 0, -1, RequirementRelated.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
- }
-
-} // RequirementsPackageImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/SatisfyImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/SatisfyImpl.java
deleted file mode 100644
index 2c34e25bb0e..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/SatisfyImpl.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.requirements.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.papyrus.sysml.requirements.RequirementsPackage;
-import org.eclipse.papyrus.sysml.requirements.Satisfy;
-import org.eclipse.uml2.uml.profile.l2.internal.impl.TraceImpl;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Satisfy</b></em>'. <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class SatisfyImpl extends TraceImpl implements Satisfy {
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected SatisfyImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return RequirementsPackage.Literals.SATISFY;
- }
-
-} // SatisfyImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/TestCaseImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/TestCaseImpl.java
deleted file mode 100644
index 8f17f900110..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/TestCaseImpl.java
+++ /dev/null
@@ -1,283 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.requirements.impl;
-
-import java.util.Iterator;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.BasicEList;
-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.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.BasicInternalEList;
-import org.eclipse.papyrus.sysml.requirements.Requirement;
-import org.eclipse.papyrus.sysml.requirements.RequirementsPackage;
-import org.eclipse.papyrus.sysml.requirements.TestCase;
-import org.eclipse.papyrus.sysml.requirements.Verify;
-import org.eclipse.uml2.uml.Behavior;
-import org.eclipse.uml2.uml.Dependency;
-import org.eclipse.uml2.uml.NamedElement;
-import org.eclipse.uml2.uml.Operation;
-import org.eclipse.uml2.uml.util.UMLUtil;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Test Case</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.sysml.requirements.impl.TestCaseImpl#getBase_Behavior <em>Base Behavior</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.requirements.impl.TestCaseImpl#getBase_Operation <em>Base Operation</em>}</li>
- * <li>{@link org.eclipse.papyrus.sysml.requirements.impl.TestCaseImpl#getVerifies <em>Verifies</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class TestCaseImpl extends EObjectImpl implements TestCase {
-
- /**
- * The cached value of the '{@link #getBase_Behavior() <em>Base Behavior</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_Behavior()
- * @generated
- * @ordered
- */
- protected Behavior base_Behavior;
-
- /**
- * The cached value of the '{@link #getBase_Operation() <em>Base Operation</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getBase_Operation()
- * @generated
- * @ordered
- */
- protected Operation base_Operation;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected TestCaseImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Behavior basicGetBase_Behavior() {
- return base_Behavior;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Operation basicGetBase_Operation() {
- return base_Operation;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case RequirementsPackage.TEST_CASE__BASE_BEHAVIOR:
- if(resolve)
- return getBase_Behavior();
- return basicGetBase_Behavior();
- case RequirementsPackage.TEST_CASE__BASE_OPERATION:
- if(resolve)
- return getBase_Operation();
- return basicGetBase_Operation();
- case RequirementsPackage.TEST_CASE__VERIFIES:
- return getVerifies();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch(featureID) {
- case RequirementsPackage.TEST_CASE__BASE_BEHAVIOR:
- return base_Behavior != null;
- case RequirementsPackage.TEST_CASE__BASE_OPERATION:
- return base_Operation != null;
- case RequirementsPackage.TEST_CASE__VERIFIES:
- return !getVerifies().isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case RequirementsPackage.TEST_CASE__BASE_BEHAVIOR:
- setBase_Behavior((Behavior)newValue);
- return;
- case RequirementsPackage.TEST_CASE__BASE_OPERATION:
- setBase_Operation((Operation)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return RequirementsPackage.Literals.TEST_CASE;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case RequirementsPackage.TEST_CASE__BASE_BEHAVIOR:
- setBase_Behavior((Behavior)null);
- return;
- case RequirementsPackage.TEST_CASE__BASE_OPERATION:
- setBase_Operation((Operation)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Behavior getBase_Behavior() {
- if(base_Behavior != null && base_Behavior.eIsProxy()) {
- InternalEObject oldBase_Behavior = (InternalEObject)base_Behavior;
- base_Behavior = (Behavior)eResolveProxy(oldBase_Behavior);
- if(base_Behavior != oldBase_Behavior) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, RequirementsPackage.TEST_CASE__BASE_BEHAVIOR, oldBase_Behavior, base_Behavior));
- }
- }
- return base_Behavior;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Operation getBase_Operation() {
- if(base_Operation != null && base_Operation.eIsProxy()) {
- InternalEObject oldBase_Operation = (InternalEObject)base_Operation;
- base_Operation = (Operation)eResolveProxy(oldBase_Operation);
- if(base_Operation != oldBase_Operation) {
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, RequirementsPackage.TEST_CASE__BASE_OPERATION, oldBase_Operation, base_Operation));
- }
- }
- return base_Operation;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public EList<Requirement> getVerifies() {
- // This should return the Requirements verified by current TestCase
- EList<Requirement> verifies = new BasicEList<Requirement>();
- Verify currentVerify = null;
-
- if((getBase_Behavior() != null) || (getBase_Operation() != null)) {
- // Find Verify link
- Iterator<Dependency> itDep;
- if(getBase_Behavior() != null) {
- itDep = getBase_Behavior().getClientDependencies().iterator();
- } else { // if (getBase_Operation() != null)
- itDep = getBase_Operation().getClientDependencies().iterator();
- }
-
- while(itDep.hasNext()) {
- Dependency currentDependency = itDep.next();
- currentVerify = UMLUtil.getStereotypeApplication(currentDependency, Verify.class);
-
- if(currentVerify != null) {
- EList<NamedElement> suppliers = currentVerify.getBase_Abstraction().getSuppliers();
- Iterator<NamedElement> it = suppliers.iterator();
- while(it.hasNext()) {
- Requirement currentRequirement = UMLUtil.getStereotypeApplication(it.next(), Requirement.class);
- if(currentRequirement != null) {
- verifies.add(currentRequirement);
- }
- }
- }
- }
- }
- // Convert to InternalEList<?>
- return new BasicInternalEList<Requirement>(Requirement.class, verifies.size(), verifies.toArray());
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Behavior(Behavior newBase_Behavior) {
- Behavior oldBase_Behavior = base_Behavior;
- base_Behavior = newBase_Behavior;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, RequirementsPackage.TEST_CASE__BASE_BEHAVIOR, oldBase_Behavior, base_Behavior));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setBase_Operation(Operation newBase_Operation) {
- Operation oldBase_Operation = base_Operation;
- base_Operation = newBase_Operation;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, RequirementsPackage.TEST_CASE__BASE_OPERATION, oldBase_Operation, base_Operation));
- }
-
-} // TestCaseImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/VerifyImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/VerifyImpl.java
deleted file mode 100644
index 9c25f6568ea..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/requirements/impl/VerifyImpl.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.requirements.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.papyrus.sysml.requirements.RequirementsPackage;
-import org.eclipse.papyrus.sysml.requirements.Verify;
-import org.eclipse.uml2.uml.profile.l2.internal.impl.TraceImpl;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Verify</b></em>'. <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class VerifyImpl extends TraceImpl implements Verify {
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected VerifyImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return RequirementsPackage.Literals.VERIFY;
- }
-
-} // VerifyImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/statemachines/impl/StatemachinesFactoryImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/statemachines/impl/StatemachinesFactoryImpl.java
deleted file mode 100644
index 117d52b77e6..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/statemachines/impl/StatemachinesFactoryImpl.java
+++ /dev/null
@@ -1,144 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.statemachines.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-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.sysml.statemachines.StatemachinesFactory;
-import org.eclipse.papyrus.sysml.statemachines.StatemachinesPackage;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class StatemachinesFactoryImpl extends EFactoryImpl implements StatemachinesFactory {
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static StatemachinesPackage getPackage() {
- return StatemachinesPackage.eINSTANCE;
- }
-
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public static StatemachinesFactory init() {
- try {
- StatemachinesFactory theStatemachinesFactory = (StatemachinesFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/0.7.0/SysML/StateMachines");
- if(theStatemachinesFactory != null) {
- return theStatemachinesFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new StatemachinesFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public StatemachinesFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String convertDummyToString(EDataType eDataType, Object instanceValue) {
- return super.convertToString(eDataType, instanceValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String convertToString(EDataType eDataType, Object instanceValue) {
- switch(eDataType.getClassifierID()) {
- case StatemachinesPackage.DUMMY:
- return convertDummyToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch(eClass.getClassifierID()) {
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String createDummyFromString(EDataType eDataType, String initialValue) {
- return (String)super.createFromString(eDataType, initialValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object createFromString(EDataType eDataType, String initialValue) {
- switch(eDataType.getClassifierID()) {
- case StatemachinesPackage.DUMMY:
- return createDummyFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public StatemachinesPackage getStatemachinesPackage() {
- return (StatemachinesPackage)getEPackage();
- }
-
-} // StatemachinesFactoryImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/statemachines/impl/StatemachinesPackageImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/statemachines/impl/StatemachinesPackageImpl.java
deleted file mode 100644
index bb36c98ac07..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/statemachines/impl/StatemachinesPackageImpl.java
+++ /dev/null
@@ -1,223 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.statemachines.impl;
-
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-import org.eclipse.papyrus.sysml.SysmlPackage;
-import org.eclipse.papyrus.sysml.activities.ActivitiesPackage;
-import org.eclipse.papyrus.sysml.activities.impl.ActivitiesPackageImpl;
-import org.eclipse.papyrus.sysml.allocations.AllocationsPackage;
-import org.eclipse.papyrus.sysml.allocations.impl.AllocationsPackageImpl;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-import org.eclipse.papyrus.sysml.blocks.impl.BlocksPackageImpl;
-import org.eclipse.papyrus.sysml.constraints.ConstraintsPackage;
-import org.eclipse.papyrus.sysml.constraints.impl.ConstraintsPackageImpl;
-import org.eclipse.papyrus.sysml.impl.SysmlPackageImpl;
-import org.eclipse.papyrus.sysml.interactions.InteractionsPackage;
-import org.eclipse.papyrus.sysml.interactions.impl.InteractionsPackageImpl;
-import org.eclipse.papyrus.sysml.modelelements.ModelelementsPackage;
-import org.eclipse.papyrus.sysml.modelelements.impl.ModelelementsPackageImpl;
-import org.eclipse.papyrus.sysml.portandflows.PortandflowsPackage;
-import org.eclipse.papyrus.sysml.portandflows.impl.PortandflowsPackageImpl;
-import org.eclipse.papyrus.sysml.requirements.RequirementsPackage;
-import org.eclipse.papyrus.sysml.requirements.impl.RequirementsPackageImpl;
-import org.eclipse.papyrus.sysml.statemachines.StatemachinesFactory;
-import org.eclipse.papyrus.sysml.statemachines.StatemachinesPackage;
-import org.eclipse.papyrus.sysml.usecases.UsecasesPackage;
-import org.eclipse.papyrus.sysml.usecases.impl.UsecasesPackageImpl;
-import org.eclipse.uml2.uml.profile.l2.L2Package;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class StatemachinesPackageImpl extends EPackageImpl implements StatemachinesPackage {
-
- /**
- * <!-- 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 StatemachinesPackage#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 StatemachinesPackage init() {
- if(isInited)
- return (StatemachinesPackage)EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI);
-
- // Obtain or create and register package
- StatemachinesPackageImpl theStatemachinesPackage = (StatemachinesPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof StatemachinesPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new StatemachinesPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- L2Package.eINSTANCE.eClass();
-
- // Obtain or create and register interdependencies
- SysmlPackageImpl theSysmlPackage = (SysmlPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SysmlPackage.eNS_URI) instanceof SysmlPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SysmlPackage.eNS_URI) : SysmlPackage.eINSTANCE);
- ModelelementsPackageImpl theModelelementsPackage = (ModelelementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) instanceof ModelelementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) : ModelelementsPackage.eINSTANCE);
- BlocksPackageImpl theBlocksPackage = (BlocksPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI) instanceof BlocksPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI) : BlocksPackage.eINSTANCE);
- PortandflowsPackageImpl thePortandflowsPackage = (PortandflowsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) instanceof PortandflowsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) : PortandflowsPackage.eINSTANCE);
- ConstraintsPackageImpl theConstraintsPackage = (ConstraintsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI) instanceof ConstraintsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI) : ConstraintsPackage.eINSTANCE);
- ActivitiesPackageImpl theActivitiesPackage = (ActivitiesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) instanceof ActivitiesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) : ActivitiesPackage.eINSTANCE);
- AllocationsPackageImpl theAllocationsPackage = (AllocationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) instanceof AllocationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) : AllocationsPackage.eINSTANCE);
- RequirementsPackageImpl theRequirementsPackage = (RequirementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) instanceof RequirementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) : RequirementsPackage.eINSTANCE);
- InteractionsPackageImpl theInteractionsPackage = (InteractionsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI) instanceof InteractionsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI) : InteractionsPackage.eINSTANCE);
- UsecasesPackageImpl theUsecasesPackage = (UsecasesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) instanceof UsecasesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) : UsecasesPackage.eINSTANCE);
-
- // Create package meta-data objects
- theStatemachinesPackage.createPackageContents();
- theSysmlPackage.createPackageContents();
- theModelelementsPackage.createPackageContents();
- theBlocksPackage.createPackageContents();
- thePortandflowsPackage.createPackageContents();
- theConstraintsPackage.createPackageContents();
- theActivitiesPackage.createPackageContents();
- theAllocationsPackage.createPackageContents();
- theRequirementsPackage.createPackageContents();
- theInteractionsPackage.createPackageContents();
- theUsecasesPackage.createPackageContents();
-
- // Initialize created meta-data
- theStatemachinesPackage.initializePackageContents();
- theSysmlPackage.initializePackageContents();
- theModelelementsPackage.initializePackageContents();
- theBlocksPackage.initializePackageContents();
- thePortandflowsPackage.initializePackageContents();
- theConstraintsPackage.initializePackageContents();
- theActivitiesPackage.initializePackageContents();
- theAllocationsPackage.initializePackageContents();
- theRequirementsPackage.initializePackageContents();
- theInteractionsPackage.initializePackageContents();
- theUsecasesPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theStatemachinesPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(StatemachinesPackage.eNS_URI, theStatemachinesPackage);
- return theStatemachinesPackage;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EDataType dummyEDataType = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * 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.sysml.statemachines.StatemachinesPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private StatemachinesPackageImpl() {
- super(eNS_URI, StatemachinesFactory.eINSTANCE);
- }
-
- /**
- * 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 data types
- dummyEDataType = createEDataType(DUMMY);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EDataType getDummy() {
- return dummyEDataType;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public StatemachinesFactory getStatemachinesFactory() {
- return (StatemachinesFactory)getEFactoryInstance();
- }
-
- /**
- * 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);
-
- // Initialize data types
- initEDataType(dummyEDataType, String.class, "Dummy", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
- }
-
-} // StatemachinesPackageImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/usecases/impl/UsecasesFactoryImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/usecases/impl/UsecasesFactoryImpl.java
deleted file mode 100644
index 15993c4ec68..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/usecases/impl/UsecasesFactoryImpl.java
+++ /dev/null
@@ -1,144 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.usecases.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-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.sysml.usecases.UsecasesFactory;
-import org.eclipse.papyrus.sysml.usecases.UsecasesPackage;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class UsecasesFactoryImpl extends EFactoryImpl implements UsecasesFactory {
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static UsecasesPackage getPackage() {
- return UsecasesPackage.eINSTANCE;
- }
-
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public static UsecasesFactory init() {
- try {
- UsecasesFactory theUsecasesFactory = (UsecasesFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/0.7.0/SysML/UseCases");
- if(theUsecasesFactory != null) {
- return theUsecasesFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new UsecasesFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public UsecasesFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String convertDummyToString(EDataType eDataType, Object instanceValue) {
- return super.convertToString(eDataType, instanceValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String convertToString(EDataType eDataType, Object instanceValue) {
- switch(eDataType.getClassifierID()) {
- case UsecasesPackage.DUMMY:
- return convertDummyToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch(eClass.getClassifierID()) {
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String createDummyFromString(EDataType eDataType, String initialValue) {
- return (String)super.createFromString(eDataType, initialValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object createFromString(EDataType eDataType, String initialValue) {
- switch(eDataType.getClassifierID()) {
- case UsecasesPackage.DUMMY:
- return createDummyFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public UsecasesPackage getUsecasesPackage() {
- return (UsecasesPackage)getEPackage();
- }
-
-} // UsecasesFactoryImpl
diff --git a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/usecases/impl/UsecasesPackageImpl.java b/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/usecases/impl/UsecasesPackageImpl.java
deleted file mode 100644
index a479469f690..00000000000
--- a/plugins/sysml/org.eclipse.papyrus.sysml/src/org/eclipse/papyrus/sysml/usecases/impl/UsecasesPackageImpl.java
+++ /dev/null
@@ -1,223 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 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:
- * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.usecases.impl;
-
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-import org.eclipse.papyrus.sysml.SysmlPackage;
-import org.eclipse.papyrus.sysml.activities.ActivitiesPackage;
-import org.eclipse.papyrus.sysml.activities.impl.ActivitiesPackageImpl;
-import org.eclipse.papyrus.sysml.allocations.AllocationsPackage;
-import org.eclipse.papyrus.sysml.allocations.impl.AllocationsPackageImpl;
-import org.eclipse.papyrus.sysml.blocks.BlocksPackage;
-import org.eclipse.papyrus.sysml.blocks.impl.BlocksPackageImpl;
-import org.eclipse.papyrus.sysml.constraints.ConstraintsPackage;
-import org.eclipse.papyrus.sysml.constraints.impl.ConstraintsPackageImpl;
-import org.eclipse.papyrus.sysml.impl.SysmlPackageImpl;
-import org.eclipse.papyrus.sysml.interactions.InteractionsPackage;
-import org.eclipse.papyrus.sysml.interactions.impl.InteractionsPackageImpl;
-import org.eclipse.papyrus.sysml.modelelements.ModelelementsPackage;
-import org.eclipse.papyrus.sysml.modelelements.impl.ModelelementsPackageImpl;
-import org.eclipse.papyrus.sysml.portandflows.PortandflowsPackage;
-import org.eclipse.papyrus.sysml.portandflows.impl.PortandflowsPackageImpl;
-import org.eclipse.papyrus.sysml.requirements.RequirementsPackage;
-import org.eclipse.papyrus.sysml.requirements.impl.RequirementsPackageImpl;
-import org.eclipse.papyrus.sysml.statemachines.StatemachinesPackage;
-import org.eclipse.papyrus.sysml.statemachines.impl.StatemachinesPackageImpl;
-import org.eclipse.papyrus.sysml.usecases.UsecasesFactory;
-import org.eclipse.papyrus.sysml.usecases.UsecasesPackage;
-import org.eclipse.uml2.uml.profile.l2.L2Package;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class UsecasesPackageImpl extends EPackageImpl implements UsecasesPackage {
-
- /**
- * <!-- 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 UsecasesPackage#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 UsecasesPackage init() {
- if(isInited)
- return (UsecasesPackage)EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI);
-
- // Obtain or create and register package
- UsecasesPackageImpl theUsecasesPackage = (UsecasesPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof UsecasesPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new UsecasesPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- L2Package.eINSTANCE.eClass();
-
- // Obtain or create and register interdependencies
- SysmlPackageImpl theSysmlPackage = (SysmlPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SysmlPackage.eNS_URI) instanceof SysmlPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SysmlPackage.eNS_URI) : SysmlPackage.eINSTANCE);
- ModelelementsPackageImpl theModelelementsPackage = (ModelelementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) instanceof ModelelementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ModelelementsPackage.eNS_URI) : ModelelementsPackage.eINSTANCE);
- BlocksPackageImpl theBlocksPackage = (BlocksPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI) instanceof BlocksPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BlocksPackage.eNS_URI) : BlocksPackage.eINSTANCE);
- PortandflowsPackageImpl thePortandflowsPackage = (PortandflowsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) instanceof PortandflowsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI) : PortandflowsPackage.eINSTANCE);
- ConstraintsPackageImpl theConstraintsPackage = (ConstraintsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI) instanceof ConstraintsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ConstraintsPackage.eNS_URI) : ConstraintsPackage.eINSTANCE);
- ActivitiesPackageImpl theActivitiesPackage = (ActivitiesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) instanceof ActivitiesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ActivitiesPackage.eNS_URI) : ActivitiesPackage.eINSTANCE);
- AllocationsPackageImpl theAllocationsPackage = (AllocationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) instanceof AllocationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocationsPackage.eNS_URI) : AllocationsPackage.eINSTANCE);
- RequirementsPackageImpl theRequirementsPackage = (RequirementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) instanceof RequirementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) : RequirementsPackage.eINSTANCE);
- InteractionsPackageImpl theInteractionsPackage = (InteractionsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI) instanceof InteractionsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(InteractionsPackage.eNS_URI) : InteractionsPackage.eINSTANCE);
- StatemachinesPackageImpl theStatemachinesPackage = (StatemachinesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI) instanceof StatemachinesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(StatemachinesPackage.eNS_URI) : StatemachinesPackage.eINSTANCE);
-
- // Create package meta-data objects
- theUsecasesPackage.createPackageContents();
- theSysmlPackage.createPackageContents();
- theModelelementsPackage.createPackageContents();
- theBlocksPackage.createPackageContents();
- thePortandflowsPackage.createPackageContents();
- theConstraintsPackage.createPackageContents();
- theActivitiesPackage.createPackageContents();
- theAllocationsPackage.createPackageContents();
- theRequirementsPackage.createPackageContents();
- theInteractionsPackage.createPackageContents();
- theStatemachinesPackage.createPackageContents();
-
- // Initialize created meta-data
- theUsecasesPackage.initializePackageContents();
- theSysmlPackage.initializePackageContents();
- theModelelementsPackage.initializePackageContents();
- theBlocksPackage.initializePackageContents();
- thePortandflowsPackage.initializePackageContents();
- theConstraintsPackage.initializePackageContents();
- theActivitiesPackage.initializePackageContents();
- theAllocationsPackage.initializePackageContents();
- theRequirementsPackage.initializePackageContents();
- theInteractionsPackage.initializePackageContents();
- theStatemachinesPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theUsecasesPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(UsecasesPackage.eNS_URI, theUsecasesPackage);
- return theUsecasesPackage;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EDataType dummyEDataType = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * 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.sysml.usecases.UsecasesPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private UsecasesPackageImpl() {
- super(eNS_URI, UsecasesFactory.eINSTANCE);
- }
-
- /**
- * 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 data types
- dummyEDataType = createEDataType(DUMMY);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EDataType getDummy() {
- return dummyEDataType;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public UsecasesFactory getUsecasesFactory() {
- return (UsecasesFactory)getEFactoryInstance();
- }
-
- /**
- * 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);
-
- // Initialize data types
- initEDataType(dummyEDataType, String.class, "Dummy", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
- }
-
-} // UsecasesPackageImpl

Back to the top