Examples of EMFTextRepresentation


Examples of org.tuba.representation.emftext.EMFTextRepresentation

    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());
View Full Code Here

Examples of org.tuba.representation.emftext.EMFTextRepresentation

  public IArtefactRepresentation process(
      IArtefactRepresentation representation, Configuration configuration) {
    if(representation == null || !EMFTextRepresentation.TYPE.equals(representation.getType())){
      return null;
    }
    EMFTextRepresentation emftextRep = (EMFTextRepresentation) representation;
//    URI emftextResource = emftextRep.getModelURI();

    // constructing the RTF doc
    String plainText = emftextRep.getSourceText();
//    BufferedReader reader = getEMFTextContent(emftextResource);
//
//    String line;
//    try {
//      while((line = reader.readLine()) != null) {
View Full Code Here

Examples of org.tuba.representation.emftext.EMFTextRepresentation

    if (file == null)
      return null;

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

Examples of org.tuba.representation.emftext.EMFTextRepresentation

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