| //------------------------------------------------------------------------------ |
| // Copyright (c) 2005, 2006 IBM Corporation and others. |
| // 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: |
| // IBM Corporation - initial implementation |
| //------------------------------------------------------------------------------ |
| package org.eclipse.epf.diagram.model.impl; |
| |
| import org.eclipse.draw2d.AbsoluteBendpoint; |
| import org.eclipse.draw2d.geometry.Point; |
| import org.eclipse.emf.ecore.EAttribute; |
| import org.eclipse.emf.ecore.EClass; |
| import org.eclipse.emf.ecore.EDataType; |
| import org.eclipse.emf.ecore.EPackage; |
| import org.eclipse.emf.ecore.EReference; |
| import org.eclipse.emf.ecore.impl.EPackageImpl; |
| import org.eclipse.epf.diagram.model.ActivityDetailDiagram; |
| import org.eclipse.epf.diagram.model.ActivityDiagram; |
| import org.eclipse.epf.diagram.model.Diagram; |
| import org.eclipse.epf.diagram.model.Link; |
| import org.eclipse.epf.diagram.model.LinkedObject; |
| import org.eclipse.epf.diagram.model.ModelFactory; |
| import org.eclipse.epf.diagram.model.ModelPackage; |
| import org.eclipse.epf.diagram.model.NamedNode; |
| import org.eclipse.epf.diagram.model.Node; |
| import org.eclipse.epf.diagram.model.NodeContainer; |
| import org.eclipse.epf.diagram.model.RoleNode; |
| import org.eclipse.epf.diagram.model.RoleTaskComposite; |
| import org.eclipse.epf.diagram.model.TaskNode; |
| import org.eclipse.epf.diagram.model.TypedNode; |
| import org.eclipse.epf.diagram.model.WorkBreakdownElementNode; |
| import org.eclipse.epf.diagram.model.WorkProductComposite; |
| import org.eclipse.epf.diagram.model.WorkProductDependencyDiagram; |
| import org.eclipse.epf.diagram.model.WorkProductDescriptorNode; |
| import org.eclipse.epf.diagram.model.WorkProductNode; |
| |
| import com.ibm.uma.RoleDescriptor; |
| |
| /** |
| * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- |
| * end-user-doc --> |
| * |
| * @generated |
| */ |
| public class ModelPackageImpl extends EPackageImpl implements ModelPackage { |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass diagramEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass linkEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass linkedObjectEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass namedNodeEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass nodeEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass activityDiagramEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass typedNodeEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass workProductDependencyDiagramEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass workProductNodeEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass activityDetailDiagramEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass nodeContainerEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass roleNodeEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass roleTaskCompositeEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass taskNodeEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass workProductDescriptorNodeEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass workBreakdownElementNodeEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass workProductCompositeEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EDataType absoluteBendpointEDataType = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EDataType pointEDataType = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EDataType roleDescriptorEDataType = null; |
| |
| /** |
| * Creates an instance of the model <b>Package</b>, registered with |
| * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the |
| * package package URI value. |
| * <p> |
| * Note: the correct way to create the package is via the static factory |
| * method {@link #init init()}, which also performs initialization of the |
| * package, or returns the registered package, if one already exists. <!-- |
| * begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @see org.eclipse.emf.ecore.EPackage.Registry |
| * @see org.eclipse.epf.diagram.model.ModelPackage#eNS_URI |
| * @see #init() |
| * @generated |
| */ |
| private ModelPackageImpl() { |
| super(eNS_URI, ModelFactory.eINSTANCE); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private static boolean isInited = false; |
| |
| /** |
| * Creates, registers, and initializes the <b>Package</b> for this model, |
| * and for any others upon which it depends. Simple dependencies are |
| * satisfied by calling this method on all dependent packages before doing |
| * anything else. This method drives initialization for interdependent |
| * packages directly, in parallel with this package, itself. |
| * <p> |
| * Of this package and its interdependencies, all packages which have not |
| * yet been registered by their URI values are first created and registered. |
| * The packages are then initialized in two steps: meta-model objects for |
| * all of the packages are created before any are initialized, since one |
| * package's meta-model objects may refer to those of another. |
| * <p> |
| * Invocation of this method will not affect any packages that have already |
| * been initialized. <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @see #eNS_URI |
| * @see #createPackageContents() |
| * @see #initializePackageContents() |
| * @generated |
| */ |
| public static ModelPackage init() { |
| if (isInited) |
| return (ModelPackage) EPackage.Registry.INSTANCE |
| .getEPackage(ModelPackage.eNS_URI); |
| |
| // Obtain or create and register package |
| ModelPackageImpl theModelPackage = (ModelPackageImpl) (EPackage.Registry.INSTANCE |
| .getEPackage(eNS_URI) instanceof ModelPackageImpl ? EPackage.Registry.INSTANCE |
| .getEPackage(eNS_URI) |
| : new ModelPackageImpl()); |
| |
| isInited = true; |
| |
| // Create package meta-data objects |
| theModelPackage.createPackageContents(); |
| |
| // Initialize created meta-data |
| theModelPackage.initializePackageContents(); |
| |
| // Mark meta-data to indicate it can't be changed |
| theModelPackage.freeze(); |
| |
| return theModelPackage; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getDiagram() { |
| return diagramEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getLink() { |
| return linkEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EReference getLink_Source() { |
| return (EReference) linkEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EReference getLink_Target() { |
| return (EReference) linkEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getLink_Bendpoints() { |
| return (EAttribute) linkEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getLink_SourceEndPoint() { |
| return (EAttribute) linkEClass.getEStructuralFeatures().get(3); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getLink_TargetEndPoint() { |
| return (EAttribute) linkEClass.getEStructuralFeatures().get(4); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getLinkedObject() { |
| return linkedObjectEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getLinkedObject_Object() { |
| return (EAttribute) linkedObjectEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getNamedNode() { |
| return namedNodeEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getNamedNode_Name() { |
| return (EAttribute) namedNodeEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getNode() { |
| return nodeEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getNode_Location() { |
| return (EAttribute) nodeEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getNode_Width() { |
| return (EAttribute) nodeEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getNode_Height() { |
| return (EAttribute) nodeEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EReference getNode_IncomingConnections() { |
| return (EReference) nodeEClass.getEStructuralFeatures().get(3); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EReference getNode_OutgoingConnections() { |
| return (EReference) nodeEClass.getEStructuralFeatures().get(4); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getNode_ReadOnly() { |
| return (EAttribute) nodeEClass.getEStructuralFeatures().get(5); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getActivityDiagram() { |
| return activityDiagramEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getTypedNode() { |
| return typedNodeEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getTypedNode_Type() { |
| return (EAttribute) typedNodeEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getWorkProductDependencyDiagram() { |
| return workProductDependencyDiagramEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getWorkProductNode() { |
| return workProductNodeEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getWorkProductNode_Type() { |
| return (EAttribute) workProductNodeEClass.getEStructuralFeatures().get( |
| 0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getActivityDetailDiagram() { |
| return activityDetailDiagramEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getNodeContainer() { |
| return nodeContainerEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EReference getNodeContainer_Nodes() { |
| return (EReference) nodeContainerEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getRoleNode() { |
| return roleNodeEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getRoleTaskComposite() { |
| return roleTaskCompositeEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getTaskNode() { |
| return taskNodeEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getWorkProductDescriptorNode() { |
| return workProductDescriptorNodeEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getWorkBreakdownElementNode() { |
| return workBreakdownElementNodeEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getWorkProductComposite() { |
| return workProductCompositeEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getWorkProductComposite_Type() { |
| return (EAttribute) workProductCompositeEClass.getEStructuralFeatures() |
| .get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EDataType getAbsoluteBendpoint() { |
| return absoluteBendpointEDataType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EDataType getPoint() { |
| return pointEDataType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EDataType getRoleDescriptor() { |
| return roleDescriptorEDataType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public ModelFactory getModelFactory() { |
| return (ModelFactory) getEFactoryInstance(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private boolean isCreated = false; |
| |
| /** |
| * Creates the meta-model objects for the package. This method is guarded to |
| * have no affect on any invocation but its first. <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public void createPackageContents() { |
| if (isCreated) |
| return; |
| isCreated = true; |
| |
| // Create classes and their features |
| diagramEClass = createEClass(DIAGRAM); |
| |
| linkEClass = createEClass(LINK); |
| createEReference(linkEClass, LINK__SOURCE); |
| createEReference(linkEClass, LINK__TARGET); |
| createEAttribute(linkEClass, LINK__BENDPOINTS); |
| createEAttribute(linkEClass, LINK__SOURCE_END_POINT); |
| createEAttribute(linkEClass, LINK__TARGET_END_POINT); |
| |
| linkedObjectEClass = createEClass(LINKED_OBJECT); |
| createEAttribute(linkedObjectEClass, LINKED_OBJECT__OBJECT); |
| |
| namedNodeEClass = createEClass(NAMED_NODE); |
| createEAttribute(namedNodeEClass, NAMED_NODE__NAME); |
| |
| nodeEClass = createEClass(NODE); |
| createEAttribute(nodeEClass, NODE__LOCATION); |
| createEAttribute(nodeEClass, NODE__WIDTH); |
| createEAttribute(nodeEClass, NODE__HEIGHT); |
| createEReference(nodeEClass, NODE__INCOMING_CONNECTIONS); |
| createEReference(nodeEClass, NODE__OUTGOING_CONNECTIONS); |
| createEAttribute(nodeEClass, NODE__READ_ONLY); |
| |
| activityDiagramEClass = createEClass(ACTIVITY_DIAGRAM); |
| |
| typedNodeEClass = createEClass(TYPED_NODE); |
| createEAttribute(typedNodeEClass, TYPED_NODE__TYPE); |
| |
| workProductDependencyDiagramEClass = createEClass(WORK_PRODUCT_DEPENDENCY_DIAGRAM); |
| |
| workProductNodeEClass = createEClass(WORK_PRODUCT_NODE); |
| createEAttribute(workProductNodeEClass, WORK_PRODUCT_NODE__TYPE); |
| |
| activityDetailDiagramEClass = createEClass(ACTIVITY_DETAIL_DIAGRAM); |
| |
| nodeContainerEClass = createEClass(NODE_CONTAINER); |
| createEReference(nodeContainerEClass, NODE_CONTAINER__NODES); |
| |
| roleNodeEClass = createEClass(ROLE_NODE); |
| |
| roleTaskCompositeEClass = createEClass(ROLE_TASK_COMPOSITE); |
| |
| taskNodeEClass = createEClass(TASK_NODE); |
| |
| workProductDescriptorNodeEClass = createEClass(WORK_PRODUCT_DESCRIPTOR_NODE); |
| |
| workBreakdownElementNodeEClass = createEClass(WORK_BREAKDOWN_ELEMENT_NODE); |
| |
| workProductCompositeEClass = createEClass(WORK_PRODUCT_COMPOSITE); |
| createEAttribute(workProductCompositeEClass, |
| WORK_PRODUCT_COMPOSITE__TYPE); |
| |
| // Create data types |
| absoluteBendpointEDataType = createEDataType(ABSOLUTE_BENDPOINT); |
| pointEDataType = createEDataType(POINT); |
| roleDescriptorEDataType = createEDataType(ROLE_DESCRIPTOR); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private boolean isInitialized = false; |
| |
| /** |
| * Complete the initialization of the package and its meta-model. This |
| * method is guarded to have no affect on any invocation but its first. <!-- |
| * begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public void initializePackageContents() { |
| if (isInitialized) |
| return; |
| isInitialized = true; |
| |
| // Initialize package |
| setName(eNAME); |
| setNsPrefix(eNS_PREFIX); |
| setNsURI(eNS_URI); |
| |
| // Add supertypes to classes |
| diagramEClass.getESuperTypes().add(this.getNodeContainer()); |
| diagramEClass.getESuperTypes().add(this.getLinkedObject()); |
| linkEClass.getESuperTypes().add(this.getLinkedObject()); |
| namedNodeEClass.getESuperTypes().add(this.getNode()); |
| nodeEClass.getESuperTypes().add(this.getLinkedObject()); |
| activityDiagramEClass.getESuperTypes().add(this.getDiagram()); |
| typedNodeEClass.getESuperTypes().add(this.getNode()); |
| workProductDependencyDiagramEClass.getESuperTypes().add( |
| this.getDiagram()); |
| workProductNodeEClass.getESuperTypes().add(this.getNamedNode()); |
| activityDetailDiagramEClass.getESuperTypes().add(this.getDiagram()); |
| nodeContainerEClass.getESuperTypes().add(this.getNode()); |
| roleNodeEClass.getESuperTypes().add(this.getNamedNode()); |
| roleTaskCompositeEClass.getESuperTypes().add(this.getNodeContainer()); |
| taskNodeEClass.getESuperTypes().add(this.getNamedNode()); |
| workProductDescriptorNodeEClass.getESuperTypes().add( |
| this.getNamedNode()); |
| workBreakdownElementNodeEClass.getESuperTypes() |
| .add(this.getNamedNode()); |
| workProductCompositeEClass.getESuperTypes() |
| .add(this.getNodeContainer()); |
| |
| // Initialize classes and features; add operations and parameters |
| initEClass( |
| diagramEClass, |
| Diagram.class, |
| "Diagram", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| |
| initEClass( |
| linkEClass, |
| Link.class, |
| "Link", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| initEReference( |
| getLink_Source(), |
| this.getNode(), |
| this.getNode_OutgoingConnections(), |
| "source", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ |
| initEReference( |
| getLink_Target(), |
| this.getNode(), |
| this.getNode_IncomingConnections(), |
| "target", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ |
| initEAttribute( |
| getLink_Bendpoints(), |
| this.getAbsoluteBendpoint(), |
| "bendpoints", null, 0, -1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ |
| initEAttribute( |
| getLink_SourceEndPoint(), |
| this.getPoint(), |
| "sourceEndPoint", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ |
| initEAttribute( |
| getLink_TargetEndPoint(), |
| this.getPoint(), |
| "targetEndPoint", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ |
| |
| initEClass( |
| linkedObjectEClass, |
| LinkedObject.class, |
| "LinkedObject", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| initEAttribute( |
| getLinkedObject_Object(), |
| ecorePackage.getEJavaObject(), |
| "object", null, 0, 1, LinkedObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ |
| |
| initEClass( |
| namedNodeEClass, |
| NamedNode.class, |
| "NamedNode", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| initEAttribute( |
| getNamedNode_Name(), |
| ecorePackage.getEString(), |
| "name", null, 0, 1, NamedNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ |
| |
| initEClass(nodeEClass, Node.class, |
| "Node", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| initEAttribute( |
| getNode_Location(), |
| this.getPoint(), |
| "location", null, 0, 1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ |
| initEAttribute( |
| getNode_Width(), |
| ecorePackage.getEInt(), |
| "width", "-1", 0, 1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ |
| initEAttribute( |
| getNode_Height(), |
| ecorePackage.getEInt(), |
| "height", "-1", 0, 1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ |
| initEReference( |
| getNode_IncomingConnections(), |
| this.getLink(), |
| this.getLink_Target(), |
| "incomingConnections", null, 0, -1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ |
| initEReference( |
| getNode_OutgoingConnections(), |
| this.getLink(), |
| this.getLink_Source(), |
| "outgoingConnections", null, 0, -1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ |
| initEAttribute( |
| getNode_ReadOnly(), |
| ecorePackage.getEBoolean(), |
| "readOnly", null, 0, 1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ |
| |
| initEClass( |
| activityDiagramEClass, |
| ActivityDiagram.class, |
| "ActivityDiagram", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| |
| initEClass( |
| typedNodeEClass, |
| TypedNode.class, |
| "TypedNode", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| initEAttribute( |
| getTypedNode_Type(), |
| ecorePackage.getEInt(), |
| "type", null, 0, 1, TypedNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ |
| |
| initEClass( |
| workProductDependencyDiagramEClass, |
| WorkProductDependencyDiagram.class, |
| "WorkProductDependencyDiagram", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| |
| initEClass( |
| workProductNodeEClass, |
| WorkProductNode.class, |
| "WorkProductNode", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| initEAttribute( |
| getWorkProductNode_Type(), |
| ecorePackage.getEInt(), |
| "type", null, 0, 1, WorkProductNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ |
| |
| initEClass( |
| activityDetailDiagramEClass, |
| ActivityDetailDiagram.class, |
| "ActivityDetailDiagram", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| |
| initEClass( |
| nodeContainerEClass, |
| NodeContainer.class, |
| "NodeContainer", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| initEReference( |
| getNodeContainer_Nodes(), |
| this.getNode(), |
| null, |
| "nodes", null, 0, -1, NodeContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ |
| |
| initEClass( |
| roleNodeEClass, |
| RoleNode.class, |
| "RoleNode", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| |
| initEClass( |
| roleTaskCompositeEClass, |
| RoleTaskComposite.class, |
| "RoleTaskComposite", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| |
| initEClass( |
| taskNodeEClass, |
| TaskNode.class, |
| "TaskNode", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| |
| initEClass( |
| workProductDescriptorNodeEClass, |
| WorkProductDescriptorNode.class, |
| "WorkProductDescriptorNode", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| |
| initEClass( |
| workBreakdownElementNodeEClass, |
| WorkBreakdownElementNode.class, |
| "WorkBreakdownElementNode", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| |
| initEClass( |
| workProductCompositeEClass, |
| WorkProductComposite.class, |
| "WorkProductComposite", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| initEAttribute( |
| getWorkProductComposite_Type(), |
| ecorePackage.getEInt(), |
| "type", null, 0, 1, WorkProductComposite.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ |
| |
| // Initialize data types |
| initEDataType( |
| absoluteBendpointEDataType, |
| AbsoluteBendpoint.class, |
| "AbsoluteBendpoint", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| initEDataType(pointEDataType, Point.class, |
| "Point", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| initEDataType(roleDescriptorEDataType, RoleDescriptor.class, |
| "RoleDescriptor", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| |
| // Create resource |
| createResource(eNS_URI); |
| } |
| |
| } // ModelPackageImpl |