Search in sources :

Example 6 with TypesPackage

use of org.eclipse.xtext.common.types.TypesPackage in project xtext-eclipse by eclipse.

the class RefactoringTestLanguagePackageImpl 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
    TypesPackage theTypesPackage = (TypesPackage) EPackage.Registry.INSTANCE.getEPackage(TypesPackage.eNS_URI);
    // Create type parameters
    // Set bounds for type parameters
    // Add supertypes to classes
    // Initialize classes and features; add operations and parameters
    initEClass(modelEClass, Model.class, "Model", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getModel_ReferenceHolder(), this.getReferenceHolder(), null, "referenceHolder", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(referenceHolderEClass, ReferenceHolder.class, "ReferenceHolder", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getReferenceHolder_Name(), ecorePackage.getEString(), "name", null, 0, 1, ReferenceHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getReferenceHolder_DefaultReference(), theTypesPackage.getJvmType(), null, "defaultReference", null, 0, 1, ReferenceHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    // Create resource
    createResource(eNS_URI);
}
Also used : TypesPackage(org.eclipse.xtext.common.types.TypesPackage)

Aggregations

TypesPackage (org.eclipse.xtext.common.types.TypesPackage)6 XbasePackage (org.eclipse.xtext.xbase.XbasePackage)4 XtypePackage (org.eclipse.xtext.xtype.XtypePackage)3 EcorePackage (org.eclipse.emf.ecore.EcorePackage)2 XtextPackage (org.eclipse.xtext.XtextPackage)2 XAnnotationsPackage (org.eclipse.xtext.xbase.annotations.xAnnotations.XAnnotationsPackage)2