예제 #1
0
        public EPackageImpl(String packageURI, EFactory factory) : base()
        {
            //TODO registry

            if (factory == EcoreFactoryImpl.eINSTANCE)
            {
                ecorePackage = (EcorePackage)this;
                ecoreFactory = (EcoreFactory)factory;
            }
            else
            {
                ecorePackage = EcorePackageImpl.eINSTANCE;
                ecoreFactory = EcoreFactoryImpl.eINSTANCE;
            }
        }
예제 #2
0
 public EPackageImpl()
 {
     ecoreFactory = EcoreFactoryImpl.eINSTANCE;
     ecorePackage = EcorePackageImpl.eINSTANCE;
 }