Java Code Examples for org.eclipse.emf.ecore.EPackage.getName()

The following are Jave code examples for showing how to use getName() of the org.eclipse.emf.ecore.EPackage class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: JavaGraph   File:   Source Code and License Vote up 5 votes
private void visitPackage(EPackage ePackage) {
    //required for namespace lookups when importing instance model
    String nsURI = ePackage.getNsURI();
    if (nsURI == null) {
        nsURI = ePackage.getName();

    // register all packages we find in the ResourceSet
        .put(ePackage.getNsURI(), ePackage);