Package no.hal.jex.jdt

Examples of no.hal.jex.jdt.JdtTestAnnotationsToModelConverter


      return false;
    }
    URI testsResourceUri = URI.createPlatformResourceURI(resource.getFullPath() + "." + JexResource.JEX_EXTENSION, true);
    IJavaElement javaElement = JdtHelper.findIJavaElement(javaProject, segments, 1);
    if (javaElement != null) {
      JdtTestAnnotationsToModelConverter testAnnotationsToModelConverter = new JdtTestAnnotationsToModelConverter(JexFactory.eINSTANCE.createExercise(), javaElement);
      if (testAnnotationsToModelConverter.canConvert()) {
        Exercise exercise = testAnnotationsToModelConverter.convert();
        Resource jexResource = resourceSet.createResource(testsResourceUri);
        jexResource.getContents().add(exercise);
        return true;
      }
    }
View Full Code Here

TOP

Related Classes of no.hal.jex.jdt.JdtTestAnnotationsToModelConverter

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.