Package org.eclipse.emf.ecore

Examples of org.eclipse.emf.ecore.ENamedElement.eClass()


        return e.eClass().getName();      // InternetApplication
      }
    } else if (object instanceof ENamedElement) {
      ENamedElement e = (ENamedElement) object;
      if (e.getName() != null && !e.getName().isEmpty()) {
        return e.eClass().getName() + ": '" + e.getName() + "'";    // EClass: 'root'
      } else {
        return e.eClass().getName();      // EClass
      }
    } else {
      return object.eClass().getName();      // EObject
View Full Code Here


    } else if (object instanceof ENamedElement) {
      ENamedElement e = (ENamedElement) object;
      if (e.getName() != null && !e.getName().isEmpty()) {
        return e.eClass().getName() + ": '" + e.getName() + "'";    // EClass: 'root'
      } else {
        return e.eClass().getName();      // EClass
      }
    } else {
      return object.eClass().getName();      // EObject
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.