Package org.emftext.access.resource

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


    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

  @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

    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

Related Classes of org.emftext.access.resource.IMetaInformation

Copyright © 2018 www.massapicom. 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.