Search in sources :

Example 1 with NewClassChange

use of org.bimserver.database.migrations.change.NewClassChange in project BIMserver by opensourceBIM.

the class Schema method createEClass.

public EClass createEClass(EPackage ePackage, String name, EClass... superClasses) {
    EClass eClass = EcoreFactory.eINSTANCE.createEClass();
    eClass.setName(name);
    changes.add(new NewClassChange(eClass));
    for (EClass superClass : superClasses) {
        eClass.getESuperTypes().add(superClass);
    }
    ePackage.getEClassifiers().add(eClass);
    return eClass;
}
Also used : EClass(org.eclipse.emf.ecore.EClass) NewClassChange(org.bimserver.database.migrations.change.NewClassChange)

Aggregations

NewClassChange (org.bimserver.database.migrations.change.NewClassChange)1 EClass (org.eclipse.emf.ecore.EClass)1