1 /** 2 * Copyright (c) 2010, 2015 BestSolution.at and others. 3 * 4 * This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License 2.0 6 * which accompanies this distribution, and is available at 7 * https://www.eclipse.org/legal/epl-2.0/ 8 * 9 * SPDX-License-Identifier: EPL-2.0 10 * 11 * Contributors: 12 * Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation 13 * IBM Corporation - initial API and implementation 14 */ 15 package org.eclipse.e4.ui.model.fragment.impl; 16 17 import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; 18 import org.eclipse.e4.ui.model.fragment.MFragmentFactory; 19 import org.eclipse.e4.ui.model.fragment.MModelFragment; 20 import org.eclipse.e4.ui.model.fragment.MModelFragments; 21 import org.eclipse.e4.ui.model.fragment.MStringModelFragment; 22 import org.eclipse.emf.ecore.EAttribute; 23 import org.eclipse.emf.ecore.EClass; 24 import org.eclipse.emf.ecore.EFactory; 25 import org.eclipse.emf.ecore.EOperation; 26 import org.eclipse.emf.ecore.EPackage; 27 import org.eclipse.emf.ecore.EReference; 28 import org.eclipse.emf.ecore.impl.EPackageImpl; 29 30 /** 31 * <!-- begin-user-doc --> 32 * The <b>Package</b> for the model. 33 * It contains accessors for the meta objects to represent 34 * <ul> 35 * <li>each class,</li> 36 * <li>each feature of each class,</li> 37 * <li>each enum,</li> 38 * <li>and each data type</li> 39 * </ul> 40 * <!-- end-user-doc --> 41 * @see org.eclipse.e4.ui.model.fragment.MFragmentFactory 42 * @model kind="package" 43 * @generated 44 */ 45 public class FragmentPackageImpl extends EPackageImpl { 46 /** 47 * The package name. 48 * <!-- begin-user-doc --> 49 * <!-- end-user-doc --> 50 * @generated 51 */ 52 public static final String eNAME = "fragment"; //$NON-NLS-1$ 53 54 /** 55 * The package namespace URI. 56 * <!-- begin-user-doc --> 57 * <!-- end-user-doc --> 58 * @generated 59 */ 60 public static final String eNS_URI = "http://www.eclipse.org/ui/2010/UIModel/fragment"; //$NON-NLS-1$ 61 62 /** 63 * The package namespace name. 64 * <!-- begin-user-doc --> 65 * <!-- end-user-doc --> 66 * @generated 67 */ 68 public static final String eNS_PREFIX = "fragment"; //$NON-NLS-1$ 69 70 /** 71 * The singleton instance of the package. 72 * <!-- begin-user-doc --> 73 * <!-- end-user-doc --> 74 * @generated 75 */ 76 public static final FragmentPackageImpl eINSTANCE = org.eclipse.e4.ui.model.fragment.impl.FragmentPackageImpl 77 .init(); 78 79 /** 80 * The meta object id for the '{@link org.eclipse.e4.ui.model.fragment.impl.ModelFragmentsImpl <em>Model Fragments</em>}' class. 81 * <!-- begin-user-doc --> 82 * <!-- end-user-doc --> 83 * @see org.eclipse.e4.ui.model.fragment.impl.ModelFragmentsImpl 84 * @see org.eclipse.e4.ui.model.fragment.impl.FragmentPackageImpl#getModelFragments() 85 * @since 1.0 86 * @generated 87 */ 88 public static final int MODEL_FRAGMENTS = 0; 89 90 /** 91 * The feature id for the '<em><b>Imports</b></em>' containment reference list. 92 * <!-- begin-user-doc --> 93 * <!-- end-user-doc --> 94 * @since 1.0 95 * @generated 96 * @ordered 97 */ 98 public static final int MODEL_FRAGMENTS__IMPORTS = 0; 99 100 /** 101 * The feature id for the '<em><b>Fragments</b></em>' containment reference list. 102 * <!-- begin-user-doc --> 103 * <!-- end-user-doc --> 104 * @since 1.0 105 * @generated 106 * @ordered 107 */ 108 public static final int MODEL_FRAGMENTS__FRAGMENTS = 1; 109 110 /** 111 * The number of structural features of the '<em>Model Fragments</em>' class. 112 * <!-- begin-user-doc --> 113 * <!-- end-user-doc --> 114 * @since 1.0 115 * @generated 116 * @ordered 117 */ 118 public static final int MODEL_FRAGMENTS_FEATURE_COUNT = 2; 119 120 /** 121 * The number of operations of the '<em>Model Fragments</em>' class. 122 * <!-- begin-user-doc --> 123 * <!-- end-user-doc --> 124 * @since 1.0 125 * @generated 126 * @ordered 127 */ 128 public static final int MODEL_FRAGMENTS_OPERATION_COUNT = 0; 129 130 /** 131 * The meta object id for the '{@link org.eclipse.e4.ui.model.fragment.impl.ModelFragmentImpl <em>Model Fragment</em>}' class. 132 * <!-- begin-user-doc --> 133 * <!-- end-user-doc --> 134 * @see org.eclipse.e4.ui.model.fragment.impl.ModelFragmentImpl 135 * @see org.eclipse.e4.ui.model.fragment.impl.FragmentPackageImpl#getModelFragment() 136 * @since 1.0 137 * @generated 138 */ 139 public static final int MODEL_FRAGMENT = 1; 140 141 /** 142 * The feature id for the '<em><b>Elements</b></em>' containment reference list. 143 * <!-- begin-user-doc --> 144 * <!-- end-user-doc --> 145 * @since 1.0 146 * @generated 147 * @ordered 148 */ 149 public static final int MODEL_FRAGMENT__ELEMENTS = 0; 150 151 /** 152 * The number of structural features of the '<em>Model Fragment</em>' class. 153 * <!-- begin-user-doc --> 154 * <!-- end-user-doc --> 155 * @since 1.0 156 * @generated 157 * @ordered 158 */ 159 public static final int MODEL_FRAGMENT_FEATURE_COUNT = 1; 160 161 /** 162 * The operation id for the '<em>Merge</em>' operation. 163 * <!-- begin-user-doc --> 164 * <!-- end-user-doc --> 165 * @since 1.0 166 * @generated 167 * @ordered 168 */ 169 public static final int MODEL_FRAGMENT___MERGE__MAPPLICATION = 0; 170 171 /** 172 * The number of operations of the '<em>Model Fragment</em>' class. 173 * <!-- begin-user-doc --> 174 * <!-- end-user-doc --> 175 * @since 1.0 176 * @generated 177 * @ordered 178 */ 179 public static final int MODEL_FRAGMENT_OPERATION_COUNT = 1; 180 181 /** 182 * The meta object id for the '{@link org.eclipse.e4.ui.model.fragment.impl.StringModelFragmentImpl <em>String Model Fragment</em>}' class. 183 * <!-- begin-user-doc --> 184 * <!-- end-user-doc --> 185 * @see org.eclipse.e4.ui.model.fragment.impl.StringModelFragmentImpl 186 * @see org.eclipse.e4.ui.model.fragment.impl.FragmentPackageImpl#getStringModelFragment() 187 * @since 1.0 188 * @generated 189 */ 190 public static final int STRING_MODEL_FRAGMENT = 2; 191 192 /** 193 * The feature id for the '<em><b>Elements</b></em>' containment reference list. 194 * <!-- begin-user-doc --> 195 * <!-- end-user-doc --> 196 * @since 1.0 197 * @generated 198 * @ordered 199 */ 200 public static final int STRING_MODEL_FRAGMENT__ELEMENTS = MODEL_FRAGMENT__ELEMENTS; 201 202 /** 203 * The feature id for the '<em><b>Featurename</b></em>' attribute. 204 * <!-- begin-user-doc --> 205 * <!-- end-user-doc --> 206 * @since 1.0 207 * @generated 208 * @ordered 209 */ 210 public static final int STRING_MODEL_FRAGMENT__FEATURENAME = MODEL_FRAGMENT_FEATURE_COUNT + 0; 211 212 /** 213 * The feature id for the '<em><b>Parent Element Id</b></em>' attribute. 214 * <!-- begin-user-doc --> 215 * <!-- end-user-doc --> 216 * @since 1.0 217 * @generated 218 * @ordered 219 */ 220 public static final int STRING_MODEL_FRAGMENT__PARENT_ELEMENT_ID = MODEL_FRAGMENT_FEATURE_COUNT + 1; 221 222 /** 223 * The feature id for the '<em><b>Position In List</b></em>' attribute. 224 * <!-- begin-user-doc --> 225 * <!-- end-user-doc --> 226 * @since 1.0 227 * @generated 228 * @ordered 229 */ 230 public static final int STRING_MODEL_FRAGMENT__POSITION_IN_LIST = MODEL_FRAGMENT_FEATURE_COUNT + 2; 231 232 /** 233 * The number of structural features of the '<em>String Model Fragment</em>' class. 234 * <!-- begin-user-doc --> 235 * <!-- end-user-doc --> 236 * @since 1.0 237 * @generated 238 * @ordered 239 */ 240 public static final int STRING_MODEL_FRAGMENT_FEATURE_COUNT = MODEL_FRAGMENT_FEATURE_COUNT + 3; 241 242 /** 243 * The operation id for the '<em>Merge</em>' operation. 244 * <!-- begin-user-doc --> 245 * <!-- end-user-doc --> 246 * @since 1.0 247 * @generated 248 * @ordered 249 */ 250 public static final int STRING_MODEL_FRAGMENT___MERGE__MAPPLICATION = MODEL_FRAGMENT___MERGE__MAPPLICATION; 251 252 /** 253 * The number of operations of the '<em>String Model Fragment</em>' class. 254 * <!-- begin-user-doc --> 255 * <!-- end-user-doc --> 256 * @since 1.0 257 * @generated 258 * @ordered 259 */ 260 public static final int STRING_MODEL_FRAGMENT_OPERATION_COUNT = MODEL_FRAGMENT_OPERATION_COUNT + 0; 261 262 /** 263 * <!-- begin-user-doc --> 264 * <!-- end-user-doc --> 265 * @since 1.0 266 * @generated 267 */ 268 private EClass modelFragmentsEClass = null; 269 270 /** 271 * <!-- begin-user-doc --> 272 * <!-- end-user-doc --> 273 * @since 1.0 274 * @generated 275 */ 276 private EClass modelFragmentEClass = null; 277 278 /** 279 * <!-- begin-user-doc --> 280 * <!-- end-user-doc --> 281 * @since 1.0 282 * @generated 283 */ 284 private EClass stringModelFragmentEClass = null; 285 286 /** 287 * Creates an instance of the model <b>Package</b>, registered with 288 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package 289 * package URI value. 290 * <p>Note: the correct way to create the package is via the static 291 * factory method {@link #init init()}, which also performs 292 * initialization of the package, or returns the registered package, 293 * if one already exists. 294 * <!-- begin-user-doc --> 295 * <!-- end-user-doc --> 296 * @see org.eclipse.emf.ecore.EPackage.Registry 297 * @see org.eclipse.e4.ui.model.fragment.impl.FragmentPackageImpl#eNS_URI 298 * @see #init() 299 * @generated 300 */ FragmentPackageImpl()301 private FragmentPackageImpl() { 302 super(eNS_URI, ((EFactory) MFragmentFactory.INSTANCE)); 303 } 304 305 /** 306 * <!-- begin-user-doc --> 307 * <!-- end-user-doc --> 308 * @generated 309 */ 310 private static boolean isInited = false; 311 312 /** 313 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. 314 * 315 * <p>This method is used to initialize {@link FragmentPackageImpl#eINSTANCE} when that field is accessed. 316 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. 317 * <!-- begin-user-doc --> 318 * <!-- end-user-doc --> 319 * @see #eNS_URI 320 * @see #createPackageContents() 321 * @see #initializePackageContents() 322 * @generated 323 */ init()324 public static FragmentPackageImpl init() { 325 if (isInited) 326 return (FragmentPackageImpl) EPackage.Registry.INSTANCE.getEPackage(FragmentPackageImpl.eNS_URI); 327 328 // Obtain or create and register package 329 Object registeredFragmentPackage = EPackage.Registry.INSTANCE.get(eNS_URI); 330 FragmentPackageImpl theFragmentPackage = registeredFragmentPackage instanceof FragmentPackageImpl 331 ? (FragmentPackageImpl) registeredFragmentPackage 332 : new FragmentPackageImpl(); 333 334 isInited = true; 335 336 // Initialize simple dependencies 337 ApplicationPackageImpl.eINSTANCE.eClass(); 338 339 // Create package meta-data objects 340 theFragmentPackage.createPackageContents(); 341 342 // Initialize created meta-data 343 theFragmentPackage.initializePackageContents(); 344 345 // Mark meta-data to indicate it can't be changed 346 theFragmentPackage.freeze(); 347 348 // Update the registry and return the package 349 EPackage.Registry.INSTANCE.put(FragmentPackageImpl.eNS_URI, theFragmentPackage); 350 return theFragmentPackage; 351 } 352 353 /** 354 * Returns the meta object for class '{@link org.eclipse.e4.ui.model.fragment.MModelFragments <em>Model Fragments</em>}'. 355 * <!-- begin-user-doc --> 356 * <!-- end-user-doc --> 357 * @return the meta object for class '<em>Model Fragments</em>'. 358 * @see org.eclipse.e4.ui.model.fragment.MModelFragments 359 * @since 1.0 360 * @generated 361 */ getModelFragments()362 public EClass getModelFragments() { 363 return modelFragmentsEClass; 364 } 365 366 /** 367 * Returns the meta object for the containment reference list '{@link org.eclipse.e4.ui.model.fragment.MModelFragments#getImports <em>Imports</em>}'. 368 * <!-- begin-user-doc --> 369 * <!-- end-user-doc --> 370 * @return the meta object for the containment reference list '<em>Imports</em>'. 371 * @see org.eclipse.e4.ui.model.fragment.MModelFragments#getImports() 372 * @see #getModelFragments() 373 * @since 1.0 374 * @generated 375 */ getModelFragments_Imports()376 public EReference getModelFragments_Imports() { 377 return (EReference) modelFragmentsEClass.getEStructuralFeatures().get(0); 378 } 379 380 /** 381 * Returns the meta object for the containment reference list '{@link org.eclipse.e4.ui.model.fragment.MModelFragments#getFragments <em>Fragments</em>}'. 382 * <!-- begin-user-doc --> 383 * <!-- end-user-doc --> 384 * @return the meta object for the containment reference list '<em>Fragments</em>'. 385 * @see org.eclipse.e4.ui.model.fragment.MModelFragments#getFragments() 386 * @see #getModelFragments() 387 * @since 1.0 388 * @generated 389 */ getModelFragments_Fragments()390 public EReference getModelFragments_Fragments() { 391 return (EReference) modelFragmentsEClass.getEStructuralFeatures().get(1); 392 } 393 394 /** 395 * Returns the meta object for class '{@link org.eclipse.e4.ui.model.fragment.MModelFragment <em>Model Fragment</em>}'. 396 * <!-- begin-user-doc --> 397 * <!-- end-user-doc --> 398 * @return the meta object for class '<em>Model Fragment</em>'. 399 * @see org.eclipse.e4.ui.model.fragment.MModelFragment 400 * @since 1.0 401 * @generated 402 */ getModelFragment()403 public EClass getModelFragment() { 404 return modelFragmentEClass; 405 } 406 407 /** 408 * Returns the meta object for the containment reference list '{@link org.eclipse.e4.ui.model.fragment.MModelFragment#getElements <em>Elements</em>}'. 409 * <!-- begin-user-doc --> 410 * <!-- end-user-doc --> 411 * @return the meta object for the containment reference list '<em>Elements</em>'. 412 * @see org.eclipse.e4.ui.model.fragment.MModelFragment#getElements() 413 * @see #getModelFragment() 414 * @since 1.0 415 * @generated 416 */ getModelFragment_Elements()417 public EReference getModelFragment_Elements() { 418 return (EReference) modelFragmentEClass.getEStructuralFeatures().get(0); 419 } 420 421 /** 422 * Returns the meta object for the '{@link org.eclipse.e4.ui.model.fragment.MModelFragment#merge(org.eclipse.e4.ui.model.application.MApplication) <em>Merge</em>}' operation. 423 * <!-- begin-user-doc --> 424 * <!-- end-user-doc --> 425 * @return the meta object for the '<em>Merge</em>' operation. 426 * @see org.eclipse.e4.ui.model.fragment.MModelFragment#merge(org.eclipse.e4.ui.model.application.MApplication) 427 * @since 1.0 428 * @generated 429 */ getModelFragment__Merge__MApplication()430 public EOperation getModelFragment__Merge__MApplication() { 431 return modelFragmentEClass.getEOperations().get(0); 432 } 433 434 /** 435 * Returns the meta object for class '{@link org.eclipse.e4.ui.model.fragment.MStringModelFragment <em>String Model Fragment</em>}'. 436 * <!-- begin-user-doc --> 437 * <!-- end-user-doc --> 438 * @return the meta object for class '<em>String Model Fragment</em>'. 439 * @see org.eclipse.e4.ui.model.fragment.MStringModelFragment 440 * @since 1.0 441 * @generated 442 */ getStringModelFragment()443 public EClass getStringModelFragment() { 444 return stringModelFragmentEClass; 445 } 446 447 /** 448 * Returns the meta object for the attribute '{@link org.eclipse.e4.ui.model.fragment.MStringModelFragment#getFeaturename <em>Featurename</em>}'. 449 * <!-- begin-user-doc --> 450 * <!-- end-user-doc --> 451 * @return the meta object for the attribute '<em>Featurename</em>'. 452 * @see org.eclipse.e4.ui.model.fragment.MStringModelFragment#getFeaturename() 453 * @see #getStringModelFragment() 454 * @since 1.0 455 * @generated 456 */ getStringModelFragment_Featurename()457 public EAttribute getStringModelFragment_Featurename() { 458 return (EAttribute) stringModelFragmentEClass.getEStructuralFeatures().get(0); 459 } 460 461 /** 462 * Returns the meta object for the attribute '{@link org.eclipse.e4.ui.model.fragment.MStringModelFragment#getParentElementId <em>Parent Element Id</em>}'. 463 * <!-- begin-user-doc --> 464 * <!-- end-user-doc --> 465 * @return the meta object for the attribute '<em>Parent Element Id</em>'. 466 * @see org.eclipse.e4.ui.model.fragment.MStringModelFragment#getParentElementId() 467 * @see #getStringModelFragment() 468 * @since 1.0 469 * @generated 470 */ getStringModelFragment_ParentElementId()471 public EAttribute getStringModelFragment_ParentElementId() { 472 return (EAttribute) stringModelFragmentEClass.getEStructuralFeatures().get(1); 473 } 474 475 /** 476 * Returns the meta object for the attribute '{@link org.eclipse.e4.ui.model.fragment.MStringModelFragment#getPositionInList <em>Position In List</em>}'. 477 * <!-- begin-user-doc --> 478 * <!-- end-user-doc --> 479 * @return the meta object for the attribute '<em>Position In List</em>'. 480 * @see org.eclipse.e4.ui.model.fragment.MStringModelFragment#getPositionInList() 481 * @see #getStringModelFragment() 482 * @since 1.0 483 * @generated 484 */ getStringModelFragment_PositionInList()485 public EAttribute getStringModelFragment_PositionInList() { 486 return (EAttribute) stringModelFragmentEClass.getEStructuralFeatures().get(2); 487 } 488 489 /** 490 * Returns the factory that creates the instances of the model. 491 * <!-- begin-user-doc --> 492 * <!-- end-user-doc --> 493 * @return the factory that creates the instances of the model. 494 * @generated 495 */ getFragmentFactory()496 public MFragmentFactory getFragmentFactory() { 497 return (MFragmentFactory) getEFactoryInstance(); 498 } 499 500 /** 501 * <!-- begin-user-doc --> 502 * <!-- end-user-doc --> 503 * @generated 504 */ 505 private boolean isCreated = false; 506 507 /** 508 * Creates the meta-model objects for the package. This method is 509 * guarded to have no affect on any invocation but its first. 510 * <!-- begin-user-doc --> 511 * <!-- end-user-doc --> 512 * @generated 513 */ createPackageContents()514 public void createPackageContents() { 515 if (isCreated) 516 return; 517 isCreated = true; 518 519 // Create classes and their features 520 modelFragmentsEClass = createEClass(MODEL_FRAGMENTS); 521 createEReference(modelFragmentsEClass, MODEL_FRAGMENTS__IMPORTS); 522 createEReference(modelFragmentsEClass, MODEL_FRAGMENTS__FRAGMENTS); 523 524 modelFragmentEClass = createEClass(MODEL_FRAGMENT); 525 createEReference(modelFragmentEClass, MODEL_FRAGMENT__ELEMENTS); 526 createEOperation(modelFragmentEClass, MODEL_FRAGMENT___MERGE__MAPPLICATION); 527 528 stringModelFragmentEClass = createEClass(STRING_MODEL_FRAGMENT); 529 createEAttribute(stringModelFragmentEClass, STRING_MODEL_FRAGMENT__FEATURENAME); 530 createEAttribute(stringModelFragmentEClass, STRING_MODEL_FRAGMENT__PARENT_ELEMENT_ID); 531 createEAttribute(stringModelFragmentEClass, STRING_MODEL_FRAGMENT__POSITION_IN_LIST); 532 } 533 534 /** 535 * <!-- begin-user-doc --> 536 * <!-- end-user-doc --> 537 * @generated 538 */ 539 private boolean isInitialized = false; 540 541 /** 542 * Complete the initialization of the package and its meta-model. This 543 * method is guarded to have no affect on any invocation but its first. 544 * <!-- begin-user-doc --> 545 * <!-- end-user-doc --> 546 * @generated 547 */ initializePackageContents()548 public void initializePackageContents() { 549 if (isInitialized) 550 return; 551 isInitialized = true; 552 553 // Initialize package 554 setName(eNAME); 555 setNsPrefix(eNS_PREFIX); 556 setNsURI(eNS_URI); 557 558 // Obtain other dependent packages 559 ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl) EPackage.Registry.INSTANCE 560 .getEPackage(ApplicationPackageImpl.eNS_URI); 561 562 // Create type parameters 563 564 // Set bounds for type parameters 565 566 // Add supertypes to classes 567 stringModelFragmentEClass.getESuperTypes().add(this.getModelFragment()); 568 569 // Initialize classes, features, and operations; add parameters 570 initEClass(modelFragmentsEClass, MModelFragments.class, "ModelFragments", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ 571 IS_GENERATED_INSTANCE_CLASS); 572 initEReference(getModelFragments_Imports(), theApplicationPackage.getApplicationElement(), null, "imports", //$NON-NLS-1$ 573 null, 0, -1, MModelFragments.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, 574 !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 575 initEReference(getModelFragments_Fragments(), this.getModelFragment(), null, "fragments", null, 0, -1, //$NON-NLS-1$ 576 MModelFragments.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, 577 !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 578 579 initEClass(modelFragmentEClass, MModelFragment.class, "ModelFragment", IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ 580 IS_GENERATED_INSTANCE_CLASS); 581 initEReference(getModelFragment_Elements(), theApplicationPackage.getApplicationElement(), null, "elements", //$NON-NLS-1$ 582 null, 0, -1, MModelFragment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, 583 !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 584 585 EOperation op = initEOperation(getModelFragment__Merge__MApplication(), 586 theApplicationPackage.getApplicationElement(), "merge", 0, -1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$ 587 addEParameter(op, theApplicationPackage.getApplication(), "application", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$ 588 589 initEClass(stringModelFragmentEClass, MStringModelFragment.class, "StringModelFragment", !IS_ABSTRACT, //$NON-NLS-1$ 590 !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 591 initEAttribute(getStringModelFragment_Featurename(), ecorePackage.getEString(), "featurename", null, 1, 1, //$NON-NLS-1$ 592 MStringModelFragment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, 593 IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 594 initEAttribute(getStringModelFragment_ParentElementId(), ecorePackage.getEString(), "parentElementId", null, 1, //$NON-NLS-1$ 595 1, MStringModelFragment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, 596 IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 597 initEAttribute(getStringModelFragment_PositionInList(), ecorePackage.getEString(), "positionInList", null, 0, 1, //$NON-NLS-1$ 598 MStringModelFragment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, 599 IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 600 601 // Create resource 602 createResource(eNS_URI); 603 } 604 605 /** 606 * <!-- begin-user-doc --> 607 * Defines literals for the meta objects that represent 608 * <ul> 609 * <li>each class,</li> 610 * <li>each feature of each class,</li> 611 * <li>each enum,</li> 612 * <li>and each data type</li> 613 * </ul> 614 * <!-- end-user-doc --> 615 * @generated 616 */ 617 public interface Literals { 618 /** 619 * The meta object literal for the '{@link org.eclipse.e4.ui.model.fragment.impl.ModelFragmentsImpl <em>Model Fragments</em>}' class. 620 * <!-- begin-user-doc --> 621 * <!-- end-user-doc --> 622 * @see org.eclipse.e4.ui.model.fragment.impl.ModelFragmentsImpl 623 * @see org.eclipse.e4.ui.model.fragment.impl.FragmentPackageImpl#getModelFragments() 624 * @since 1.0 625 * @generated 626 */ 627 public static final EClass MODEL_FRAGMENTS = eINSTANCE.getModelFragments(); 628 629 /** 630 * The meta object literal for the '<em><b>Imports</b></em>' containment reference list feature. 631 * <!-- begin-user-doc --> 632 * <!-- end-user-doc --> 633 * @since 1.0 634 * @generated 635 */ 636 public static final EReference MODEL_FRAGMENTS__IMPORTS = eINSTANCE.getModelFragments_Imports(); 637 638 /** 639 * The meta object literal for the '<em><b>Fragments</b></em>' containment reference list feature. 640 * <!-- begin-user-doc --> 641 * <!-- end-user-doc --> 642 * @since 1.0 643 * @generated 644 */ 645 public static final EReference MODEL_FRAGMENTS__FRAGMENTS = eINSTANCE.getModelFragments_Fragments(); 646 647 /** 648 * The meta object literal for the '{@link org.eclipse.e4.ui.model.fragment.impl.ModelFragmentImpl <em>Model Fragment</em>}' class. 649 * <!-- begin-user-doc --> 650 * <!-- end-user-doc --> 651 * @see org.eclipse.e4.ui.model.fragment.impl.ModelFragmentImpl 652 * @see org.eclipse.e4.ui.model.fragment.impl.FragmentPackageImpl#getModelFragment() 653 * @since 1.0 654 * @generated 655 */ 656 public static final EClass MODEL_FRAGMENT = eINSTANCE.getModelFragment(); 657 658 /** 659 * The meta object literal for the '<em><b>Elements</b></em>' containment reference list feature. 660 * <!-- begin-user-doc --> 661 * <!-- end-user-doc --> 662 * @since 1.0 663 * @generated 664 */ 665 public static final EReference MODEL_FRAGMENT__ELEMENTS = eINSTANCE.getModelFragment_Elements(); 666 667 /** 668 * The meta object literal for the '<em><b>Merge</b></em>' operation. 669 * <!-- begin-user-doc --> 670 * <!-- end-user-doc --> 671 * @since 1.0 672 * @generated 673 */ 674 public static final EOperation MODEL_FRAGMENT___MERGE__MAPPLICATION = eINSTANCE 675 .getModelFragment__Merge__MApplication(); 676 677 /** 678 * The meta object literal for the '{@link org.eclipse.e4.ui.model.fragment.impl.StringModelFragmentImpl <em>String Model Fragment</em>}' class. 679 * <!-- begin-user-doc --> 680 * <!-- end-user-doc --> 681 * @see org.eclipse.e4.ui.model.fragment.impl.StringModelFragmentImpl 682 * @see org.eclipse.e4.ui.model.fragment.impl.FragmentPackageImpl#getStringModelFragment() 683 * @since 1.0 684 * @generated 685 */ 686 public static final EClass STRING_MODEL_FRAGMENT = eINSTANCE.getStringModelFragment(); 687 688 /** 689 * The meta object literal for the '<em><b>Featurename</b></em>' attribute feature. 690 * <!-- begin-user-doc --> 691 * <!-- end-user-doc --> 692 * @since 1.0 693 * @generated 694 */ 695 public static final EAttribute STRING_MODEL_FRAGMENT__FEATURENAME = eINSTANCE 696 .getStringModelFragment_Featurename(); 697 698 /** 699 * The meta object literal for the '<em><b>Parent Element Id</b></em>' attribute feature. 700 * <!-- begin-user-doc --> 701 * <!-- end-user-doc --> 702 * @since 1.0 703 * @generated 704 */ 705 public static final EAttribute STRING_MODEL_FRAGMENT__PARENT_ELEMENT_ID = eINSTANCE 706 .getStringModelFragment_ParentElementId(); 707 708 /** 709 * The meta object literal for the '<em><b>Position In List</b></em>' attribute feature. 710 * <!-- begin-user-doc --> 711 * <!-- end-user-doc --> 712 * @since 1.0 713 * @generated 714 */ 715 public static final EAttribute STRING_MODEL_FRAGMENT__POSITION_IN_LIST = eINSTANCE 716 .getStringModelFragment_PositionInList(); 717 718 } 719 720 } //FragmentPackageImpl 721