Examples of EClass


Examples of org.eclipse.emf.ecore.EClass

      String modelID, String metaHref) throws Exception {

    // first, lets get the EClass of the meta element
    String metaElementName = metaHref.substring(metaHref.lastIndexOf("/") + 1);
    // resolve
    EClass meta = resolveSimpleEClass(metaElementName);
   
    // and now lets find the EClass of the editor
    EClass editor = getEditorEClass(filename, modelID);
   
    assertNotNull(meta);
    assertNotNull(editor);
   
    // the meta element should be a subclass of the editor
    assertTrue(filename + ": Element '" + metaHref + "' is not a subclass of diagram type '" + modelID + "' [resolved meta = '" + meta + "', editor = '" + editor + "']",
        editor.isSuperTypeOf(meta));
  }
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.