Examples of EMFText2TextOperation


Examples of org.tuba.operation.emftext2text.operation.EMFText2TextOperation

    System.out.println(testFile.getAbsolutePath());
    assertTrue(testFile.exists());
  }

  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());
    System.out.println(representation.getSourceText());

    IArtefactRepresentation rep2 = operation.process(representation, null);
    assertNotNull(rep2);
    assertTrue(rep2 instanceof StyledTextRepresentation);
    assertNotNull(((StyledTextRepresentation) rep2).getDocument());
    System.out.println(((StyledTextRepresentation) rep2).getDocument());
  }
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.