Examples of IArtefactRepresentation


Examples of org.tuba.plugins.IArtefactRepresentation

    String curDir = System.getProperty("user.dir"); //$NON-NLS-1$
    String modelFile = curDir + "/test/CompositePattern.ecore"; //$NON-NLS-1$
    EcoreModelRepresentation model = new EcoreModelRepresentation(modelFile);

    Operation operation = new Operation();
    IArtefactRepresentation artefact = operation.process(model, null);
    Assert.assertNotNull(artefact);

    EcoreToolsGMFDiagramURI diagram = (EcoreToolsGMFDiagramURI) artefact;
    String fileName = diagram.getDiagramURI().toFileString();
    File file = new File(fileName);
View Full Code Here

Examples of org.tuba.plugins.IArtefactRepresentation

    String imageFile = curDir + TEST_IMAGE;

    ImageRepresentation image = new ImageRepresentation(
        new File(imageFile), ImageType.PNG);
    ImageScaler scaler = new ImageScaler();
    IArtefactRepresentation result = scaler.process(image, configuration);

    Assert.assertNotNull(result);
    String type = result.getType();
    Assert.assertEquals(ImageRepresentation.TYPE, type);

    ImageRepresentation resultImage = (ImageRepresentation) result;
    File f = image.getImageFile();
    Assert.assertTrue(f.exists());
View Full Code Here

Examples of org.tuba.plugins.IArtefactRepresentation

    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

Examples of org.tuba.plugins.IArtefactRepresentation

    monitor.setLocalSteps(nrOfStepsToDo);

    // TODO externalize
    logger.info("get artefact from provider '" //$NON-NLS-1$
        + reference.getProvider().getId() + "'"); //$NON-NLS-1$
    IArtefactRepresentation representation = getArtefactFromProvider(reference
        .getProvider());
    monitor.doLocalStep();

    representation = applyOperations(representation, reference
        .getOperations(), monitor);
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.