EClass catClass = ... // get the Cat class from the Ecore model ListsuperTypes = catClass.getESuperTypes(); for (EClass superType : superTypes) { System.out.println(superType.getName()); }
EClass cClass = ... // get the C class from the Ecore model ListThe package library for org.eclipse.emf.ecore is Eclipse Modeling Framework (EMF).superTypes = cClass.getESuperTypes(); for (EClass superType : superTypes) { System.out.println(superType.getName()); }