Examples of IMetaInformation


Examples of org.emftext.access.resource.IMetaInformation

  public void testEMFText2Textoperation() {
    EMFText2TextOperation operation = new EMFText2TextOperation();
    assertNotNull(operation);

    IMetaInformation metaInformation = DynamicEMFTextProvider.getMetaInformation(testFile);
    assertNotNull(metaInformation);

    EMFTextRepresentation representation = new EMFTextRepresentation(testFile, metaInformation);
    assertNotNull(representation);
    assertNotNull(representation.getSourceText());
View Full Code Here

Examples of org.emftext.access.resource.IMetaInformation

    File file = SVNExporter.export(artefactId);
    if (file == null)
      return null;

    file.deleteOnExit();
    IMetaInformation metaInformation = DynamicEMFTextProvider.getMetaInformation(file);
    return new EMFTextRepresentation(file, metaInformation);
  }
View Full Code Here

Examples of org.emftext.access.resource.IMetaInformation

  @Override
  public boolean match(String file) {
    try {
//      File fileObj = SVNExporter.export(file);
      String ext = file.substring(file.lastIndexOf(".") + 1);
      IMetaInformation mi = getMetaInformationForExtension(ext);
      return (mi != null) ? true : false;
    } catch (Exception e) {
      // empty
    }
    return false;
View Full Code Here

Examples of org.emftext.access.resource.IMetaInformation

    EMFTextAccessPlugin.registerConcreteSyntax(new ModelMetaInformation());
    assertTrue(testFile.exists());
  }

  public void testEMFTextRepresentation() {
    IMetaInformation metaInfo = DynamicEMFTextProvider.getMetaInformation(testFile);
    assertNotNull(metaInfo);
   
    EMFTextRepresentation representation = new EMFTextRepresentation(testFile, metaInfo);
    assertNotNull(representation);
   
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.