| /** |
| * Copyright (c) 2019 CEA LIST. |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation |
| */ |
| package org.eclipse.papyrus.model2doc.core.builtintypes.impl; |
| |
| import org.eclipse.emf.ecore.EAttribute; |
| import org.eclipse.emf.ecore.EClass; |
| import org.eclipse.emf.ecore.EEnum; |
| import org.eclipse.emf.ecore.EOperation; |
| import org.eclipse.emf.ecore.EPackage; |
| import org.eclipse.emf.ecore.EReference; |
| |
| import org.eclipse.emf.ecore.impl.EPackageImpl; |
| |
| import org.eclipse.papyrus.model2doc.core.builtintypes.AbstractList; |
| import org.eclipse.papyrus.model2doc.core.builtintypes.AbstractTable; |
| import org.eclipse.papyrus.model2doc.core.builtintypes.BasicList; |
| import org.eclipse.papyrus.model2doc.core.builtintypes.BasicRow; |
| import org.eclipse.papyrus.model2doc.core.builtintypes.BasicTable; |
| import org.eclipse.papyrus.model2doc.core.builtintypes.BuiltInTypesFactory; |
| import org.eclipse.papyrus.model2doc.core.builtintypes.BuiltInTypesPackage; |
| import org.eclipse.papyrus.model2doc.core.builtintypes.Cell; |
| import org.eclipse.papyrus.model2doc.core.builtintypes.CellLocation; |
| import org.eclipse.papyrus.model2doc.core.builtintypes.DefaultFileReference; |
| import org.eclipse.papyrus.model2doc.core.builtintypes.IFileReference; |
| import org.eclipse.papyrus.model2doc.core.builtintypes.ImageFormat; |
| import org.eclipse.papyrus.model2doc.core.builtintypes.ListItem; |
| import org.eclipse.papyrus.model2doc.core.builtintypes.Row; |
| import org.eclipse.papyrus.model2doc.core.builtintypes.TextCell; |
| import org.eclipse.papyrus.model2doc.core.builtintypes.TextListItem; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model <b>Package</b>. |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public class BuiltInTypesPackageImpl extends EPackageImpl implements BuiltInTypesPackage { |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass abstractTableEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass rowEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass cellEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass basicTableEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass basicRowEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass textCellEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass abstractListEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass listItemEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass textListItemEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass basicListEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass iFileReferenceEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass defaultFileReferenceEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EEnum cellLocationEEnum = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EEnum imageFormatEEnum = 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.papyrus.model2doc.core.builtintypes.BuiltInTypesPackage#eNS_URI |
| * @see #init() |
| * @generated |
| */ |
| private BuiltInTypesPackageImpl() { |
| super(eNS_URI, BuiltInTypesFactory.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. |
| * |
| * <p> |
| * This method is used to initialize {@link BuiltInTypesPackage#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 BuiltInTypesPackage init() { |
| if (isInited) { |
| return (BuiltInTypesPackage) EPackage.Registry.INSTANCE.getEPackage(BuiltInTypesPackage.eNS_URI); |
| } |
| |
| // Obtain or create and register package |
| Object registeredBuiltInTypesPackage = EPackage.Registry.INSTANCE.get(eNS_URI); |
| BuiltInTypesPackageImpl theBuiltInTypesPackage = registeredBuiltInTypesPackage instanceof BuiltInTypesPackageImpl ? (BuiltInTypesPackageImpl) registeredBuiltInTypesPackage : new BuiltInTypesPackageImpl(); |
| |
| isInited = true; |
| |
| // Create package meta-data objects |
| theBuiltInTypesPackage.createPackageContents(); |
| |
| // Initialize created meta-data |
| theBuiltInTypesPackage.initializePackageContents(); |
| |
| // Mark meta-data to indicate it can't be changed |
| theBuiltInTypesPackage.freeze(); |
| |
| // Update the registry and return the package |
| EPackage.Registry.INSTANCE.put(BuiltInTypesPackage.eNS_URI, theBuiltInTypesPackage); |
| return theBuiltInTypesPackage; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EClass getAbstractTable() { |
| return abstractTableEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EAttribute getAbstractTable_Caption() { |
| return (EAttribute) abstractTableEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EReference getAbstractTable_Rows() { |
| return (EReference) abstractTableEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EOperation getAbstractTable__GetRowsNumber() { |
| return abstractTableEClass.getEOperations().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EOperation getAbstractTable__GetColumnsNumber() { |
| return abstractTableEClass.getEOperations().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EOperation getAbstractTable__GetAllCells() { |
| return abstractTableEClass.getEOperations().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EClass getRow() { |
| return rowEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EReference getRow_Cells() { |
| return (EReference) rowEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EClass getCell() { |
| return cellEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EAttribute getCell_Location() { |
| return (EAttribute) cellEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EClass getBasicTable() { |
| return basicTableEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EClass getBasicRow() { |
| return basicRowEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EClass getTextCell() { |
| return textCellEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EAttribute getTextCell_Text() { |
| return (EAttribute) textCellEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EClass getAbstractList() { |
| return abstractListEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EReference getAbstractList_Items() { |
| return (EReference) abstractListEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EClass getListItem() { |
| return listItemEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EReference getListItem_SubItems() { |
| return (EReference) listItemEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EOperation getListItem__GetLevel() { |
| return listItemEClass.getEOperations().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EClass getTextListItem() { |
| return textListItemEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EAttribute getTextListItem_Text() { |
| return (EAttribute) textListItemEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EClass getBasicList() { |
| return basicListEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EClass getIFileReference() { |
| return iFileReferenceEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EOperation getIFileReference__GetFilePath() { |
| return iFileReferenceEClass.getEOperations().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EClass getDefaultFileReference() { |
| return defaultFileReferenceEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EAttribute getDefaultFileReference_FilePath() { |
| return (EAttribute) defaultFileReferenceEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EEnum getCellLocation() { |
| return cellLocationEEnum; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public EEnum getImageFormat() { |
| return imageFormatEEnum; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| @Override |
| public BuiltInTypesFactory getBuiltInTypesFactory() { |
| return (BuiltInTypesFactory) 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 |
| abstractTableEClass = createEClass(ABSTRACT_TABLE); |
| createEAttribute(abstractTableEClass, ABSTRACT_TABLE__CAPTION); |
| createEReference(abstractTableEClass, ABSTRACT_TABLE__ROWS); |
| createEOperation(abstractTableEClass, ABSTRACT_TABLE___GET_ROWS_NUMBER); |
| createEOperation(abstractTableEClass, ABSTRACT_TABLE___GET_COLUMNS_NUMBER); |
| createEOperation(abstractTableEClass, ABSTRACT_TABLE___GET_ALL_CELLS); |
| |
| rowEClass = createEClass(ROW); |
| createEReference(rowEClass, ROW__CELLS); |
| |
| cellEClass = createEClass(CELL); |
| createEAttribute(cellEClass, CELL__LOCATION); |
| |
| basicTableEClass = createEClass(BASIC_TABLE); |
| |
| basicRowEClass = createEClass(BASIC_ROW); |
| |
| textCellEClass = createEClass(TEXT_CELL); |
| createEAttribute(textCellEClass, TEXT_CELL__TEXT); |
| |
| abstractListEClass = createEClass(ABSTRACT_LIST); |
| createEReference(abstractListEClass, ABSTRACT_LIST__ITEMS); |
| |
| listItemEClass = createEClass(LIST_ITEM); |
| createEReference(listItemEClass, LIST_ITEM__SUB_ITEMS); |
| createEOperation(listItemEClass, LIST_ITEM___GET_LEVEL); |
| |
| textListItemEClass = createEClass(TEXT_LIST_ITEM); |
| createEAttribute(textListItemEClass, TEXT_LIST_ITEM__TEXT); |
| |
| basicListEClass = createEClass(BASIC_LIST); |
| |
| iFileReferenceEClass = createEClass(IFILE_REFERENCE); |
| createEOperation(iFileReferenceEClass, IFILE_REFERENCE___GET_FILE_PATH); |
| |
| defaultFileReferenceEClass = createEClass(DEFAULT_FILE_REFERENCE); |
| createEAttribute(defaultFileReferenceEClass, DEFAULT_FILE_REFERENCE__FILE_PATH); |
| |
| // Create enums |
| cellLocationEEnum = createEEnum(CELL_LOCATION); |
| imageFormatEEnum = createEEnum(IMAGE_FORMAT); |
| } |
| |
| /** |
| * <!-- 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); |
| |
| // Create type parameters |
| |
| // Set bounds for type parameters |
| |
| // Add supertypes to classes |
| basicTableEClass.getESuperTypes().add(this.getAbstractTable()); |
| basicRowEClass.getESuperTypes().add(this.getRow()); |
| textCellEClass.getESuperTypes().add(this.getCell()); |
| textListItemEClass.getESuperTypes().add(this.getListItem()); |
| basicListEClass.getESuperTypes().add(this.getAbstractList()); |
| defaultFileReferenceEClass.getESuperTypes().add(this.getIFileReference()); |
| |
| // Initialize classes, features, and operations; add parameters |
| initEClass(abstractTableEClass, AbstractTable.class, "AbstractTable", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| initEAttribute(getAbstractTable_Caption(), ecorePackage.getEString(), "caption", null, 1, 1, AbstractTable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ |
| initEReference(getAbstractTable_Rows(), this.getRow(), null, "rows", null, 0, -1, AbstractTable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ |
| |
| initEOperation(getAbstractTable__GetRowsNumber(), ecorePackage.getEInt(), "getRowsNumber", 1, 1, IS_UNIQUE, !IS_ORDERED); //$NON-NLS-1$ |
| |
| initEOperation(getAbstractTable__GetColumnsNumber(), ecorePackage.getEInt(), "getColumnsNumber", 1, 1, IS_UNIQUE, !IS_ORDERED); //$NON-NLS-1$ |
| |
| initEOperation(getAbstractTable__GetAllCells(), this.getCell(), "getAllCells", 0, -1, IS_UNIQUE, !IS_ORDERED); //$NON-NLS-1$ |
| |
| initEClass(rowEClass, Row.class, "Row", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| initEReference(getRow_Cells(), this.getCell(), null, "cells", null, 0, -1, Row.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ |
| |
| initEClass(cellEClass, Cell.class, "Cell", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| initEAttribute(getCell_Location(), this.getCellLocation(), "location", "BODY", 1, 1, Cell.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ |
| |
| initEClass(basicTableEClass, BasicTable.class, "BasicTable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| |
| initEClass(basicRowEClass, BasicRow.class, "BasicRow", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| |
| initEClass(textCellEClass, TextCell.class, "TextCell", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| initEAttribute(getTextCell_Text(), ecorePackage.getEString(), "text", "", 1, 1, TextCell.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ |
| |
| initEClass(abstractListEClass, AbstractList.class, "AbstractList", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| initEReference(getAbstractList_Items(), this.getListItem(), null, "items", null, 0, -1, AbstractList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ |
| |
| initEClass(listItemEClass, ListItem.class, "ListItem", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| initEReference(getListItem_SubItems(), this.getListItem(), null, "subItems", null, 0, -1, ListItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ |
| |
| initEOperation(getListItem__GetLevel(), ecorePackage.getEInt(), "getLevel", 1, 1, IS_UNIQUE, !IS_ORDERED); //$NON-NLS-1$ |
| |
| initEClass(textListItemEClass, TextListItem.class, "TextListItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| initEAttribute(getTextListItem_Text(), ecorePackage.getEString(), "text", "", 1, 1, TextListItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ |
| |
| initEClass(basicListEClass, BasicList.class, "BasicList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| |
| initEClass(iFileReferenceEClass, IFileReference.class, "IFileReference", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| |
| initEOperation(getIFileReference__GetFilePath(), ecorePackage.getEString(), "getFilePath", 1, 1, IS_UNIQUE, !IS_ORDERED); //$NON-NLS-1$ |
| |
| initEClass(defaultFileReferenceEClass, DefaultFileReference.class, "DefaultFileReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ |
| initEAttribute(getDefaultFileReference_FilePath(), ecorePackage.getEString(), "filePath", null, 1, 1, DefaultFileReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ |
| |
| // Initialize enums and add enum literals |
| initEEnum(cellLocationEEnum, CellLocation.class, "CellLocation"); //$NON-NLS-1$ |
| addEEnumLiteral(cellLocationEEnum, CellLocation.CORNER); |
| addEEnumLiteral(cellLocationEEnum, CellLocation.COLUMN_HEADER); |
| addEEnumLiteral(cellLocationEEnum, CellLocation.ROW_HEADER); |
| addEEnumLiteral(cellLocationEEnum, CellLocation.BODY); |
| |
| initEEnum(imageFormatEEnum, ImageFormat.class, "ImageFormat"); //$NON-NLS-1$ |
| addEEnumLiteral(imageFormatEEnum, ImageFormat.SVG); |
| addEEnumLiteral(imageFormatEEnum, ImageFormat.PNG); |
| |
| // Create resource |
| createResource(eNS_URI); |
| |
| // Create annotations |
| // http://www.eclipse.org/uml2/2.0.0/UML |
| createUMLAnnotations(); |
| } |
| |
| /** |
| * Initializes the annotations for <b>http://www.eclipse.org/uml2/2.0.0/UML</b>. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| protected void createUMLAnnotations() { |
| String source = "http://www.eclipse.org/uml2/2.0.0/UML"; //$NON-NLS-1$ |
| addAnnotation(this, |
| source, |
| new String[] { |
| "originalName", "BuiltInTypes" //$NON-NLS-1$ //$NON-NLS-2$ |
| }); |
| } |
| |
| } // BuiltInTypesPackageImpl |