Search in sources :

Example 1 with FlowPackage

use of org.obeonetwork.dsl.cinematic.flow.FlowPackage in project InformationSystem by ObeoNetwork.

the class CinematicPackageImpl method initializePackageContents.

/**
 * 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
    ViewPackage theViewPackage = (ViewPackage) EPackage.Registry.INSTANCE.getEPackage(ViewPackage.eNS_URI);
    FlowPackage theFlowPackage = (FlowPackage) EPackage.Registry.INSTANCE.getEPackage(FlowPackage.eNS_URI);
    ToolkitsPackage theToolkitsPackage = (ToolkitsPackage) EPackage.Registry.INSTANCE.getEPackage(ToolkitsPackage.eNS_URI);
    EnvironmentPackage theEnvironmentPackage = (EnvironmentPackage) EPackage.Registry.INSTANCE.getEPackage(EnvironmentPackage.eNS_URI);
    // Add subpackages
    getESubpackages().add(theViewPackage);
    getESubpackages().add(theFlowPackage);
    getESubpackages().add(theToolkitsPackage);
    // Create type parameters
    // Set bounds for type parameters
    // Add supertypes to classes
    cinematicElementEClass.getESuperTypes().add(theEnvironmentPackage.getObeoDSMObject());
    namedElementEClass.getESuperTypes().add(this.getCinematicElement());
    abstractPackageEClass.getESuperTypes().add(this.getNamedElement());
    packageEClass.getESuperTypes().add(this.getAbstractPackage());
    cinematicRootEClass.getESuperTypes().add(this.getAbstractPackage());
    eventEClass.getESuperTypes().add(this.getNamedElement());
    // Initialize classes and features; add operations and parameters
    initEClass(cinematicElementEClass, CinematicElement.class, "CinematicElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEClass(namedElementEClass, NamedElement.class, "NamedElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getNamedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, NamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(abstractPackageEClass, AbstractPackage.class, "AbstractPackage", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getAbstractPackage_Flows(), theFlowPackage.getFlow(), null, "flows", null, 0, -1, AbstractPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getAbstractPackage_ViewContainers(), theViewPackage.getViewContainer(), null, "viewContainers", null, 0, -1, AbstractPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getAbstractPackage_SubPackages(), this.getPackage(), null, "subPackages", null, 0, -1, AbstractPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(packageEClass, org.obeonetwork.dsl.cinematic.Package.class, "Package", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEClass(cinematicRootEClass, CinematicRoot.class, "CinematicRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getCinematicRoot_Toolkits(), theToolkitsPackage.getToolkit(), null, "toolkits", null, 0, -1, CinematicRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(eventEClass, Event.class, "Event", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    // Create resource
    createResource(eNS_URI);
}
Also used : FlowPackage(org.obeonetwork.dsl.cinematic.flow.FlowPackage) ToolkitsPackage(org.obeonetwork.dsl.cinematic.toolkits.ToolkitsPackage) EnvironmentPackage(org.obeonetwork.dsl.environment.EnvironmentPackage) ViewPackage(org.obeonetwork.dsl.cinematic.view.ViewPackage)

Aggregations

FlowPackage (org.obeonetwork.dsl.cinematic.flow.FlowPackage)1 ToolkitsPackage (org.obeonetwork.dsl.cinematic.toolkits.ToolkitsPackage)1 ViewPackage (org.obeonetwork.dsl.cinematic.view.ViewPackage)1 EnvironmentPackage (org.obeonetwork.dsl.environment.EnvironmentPackage)1