Package org.tuba.spatschorke.diploma.representation.ecore

Examples of org.tuba.spatschorke.diploma.representation.ecore.EcoreModelRepresentation


  @Test
  public void generationTest() {
    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);
View Full Code Here


      IArtefactRepresentation representation, Configuration configuration) {
    if((representation == null) || !EcoreModelRepresentation.TYPE.equals(representation.getType())){
      return null;
    }

    EcoreModelRepresentation ecoreModel = (EcoreModelRepresentation) representation;
    EObject root = getDomainRootElement(ecoreModel.getModelURI());
    for (FeatureIterator<EReference> featureIterator =
      (FeatureIterator)root.eCrossReferences().iterator();
    featureIterator.hasNext(); )
    {
      EObject eObject = (EObject)featureIterator.next();
      EReference eReference = (EReference)featureIterator.feature();
     
    }


    URI modelURI = ecoreModel.getModelURI();

    return null;
  }
View Full Code Here

    if (representation == null
        || !EcoreModelRepresentation.TYPE.equals(representation
            .getType()))
      return null;

    EcoreModelRepresentation ecoreModel = (EcoreModelRepresentation) representation;
    final URI modelURI = ecoreModel.getModelURI();
    final EObject domainElement = getDomainRootElement(ecoreModel
        .getModelURI());

    final URI diagramURI;
    try {
      diagramURI = URI.createFileURI(File.createTempFile(
View Full Code Here

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

    file.deleteOnExit();
    return new EcoreModelRepresentation(file.getAbsolutePath());
  }
View Full Code Here

  private static final String URL = "http://svn-st.inf.tu-dresden.de/svn/reuseware/trunk/EMFText%20Languages/org.emftext.language.dot/metamodel/dot.ecore"; //$NON-NLS-1$

  @Test
  public void exportTest() {
    EcoreProvider repository = new EcoreProvider();
    EcoreModelRepresentation ecoreModelRep = repository.getArtefact(URL);

    Assert.assertNotNull(ecoreModelRep);
    String filename = ecoreModelRep.getModelURI().toFileString();
    File file = new File(filename);

    Assert.assertTrue(file.exists());
  }
View Full Code Here

TOP

Related Classes of org.tuba.spatschorke.diploma.representation.ecore.EcoreModelRepresentation

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.