Package org.evolizer.core.util.projecthandling

Examples of org.evolizer.core.util.projecthandling.JavaProjectHelper


     *
     * @throws CoreException
     * @throws IOException
     */
    public static void setUpProject() throws CoreException, IOException{
        JavaProjectHelper helper = new JavaProjectHelper();
        helper.createProject("TestProject1", "bin", null);
        helper.addStandartSourceFolder(null);
        helper.addPackage("testPackage", null);
        helper.addPackage("testPackage.ae", null);
   
        helper.addSourceFile("testPackage.ae", "IEnumPlanet.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/ae/IEnumPlanet.java")), null);
        helper.addSourceFile("testPackage.ae", "EnumPlanet.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/ae/EnumPlanet.java")), null);
        helper.addSourceFile("testPackage.ae", "UseEnumPlanet.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/ae/UseEnumPlanet.java")), null);
    }
View Full Code Here


     *
     * @throws CoreException
     * @throws IOException
     */
    public static void setUpProject() throws CoreException, IOException{
        JavaProjectHelper helper = new JavaProjectHelper();
        helper.createProject("TestProject1", "bin", null);
        helper.addStandartSourceFolder(null);
        helper.addPackage("testPackage", null);
        helper.addPackage("testPackage.ae", null);
   
        helper.addSourceFile("testPackage", "Base.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Base.java")), null);
        helper.addSourceFile("testPackage", "IBase.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/IBase.java")), null);
        helper.addSourceFile("testPackage", "InnerAnonym.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/InnerAnonym.java")), null);
        helper.addSourceFile("testPackage", "Sum.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Sum.java")), null);
        helper.addSourceFile("testPackage", "Variables.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Variables.java")), null);
        helper.addSourceFile("testPackage.ae", "Test.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/ae/Test.java")), null);
    }
View Full Code Here

  @After
  public void tearDown() throws Exception {
  }

  protected static void setUpProject() throws CoreException, IOException{
    JavaProjectHelper helper = new JavaProjectHelper();
    helper.createProject("TestTheBigVoid", "bin", null);
    helper.addStandartSourceFolder(null);
    helper.addPackage("thebigvoid", null);
   
    helper.addSourceFile("thebigvoid", "Galaxy.java", getFileContent(DAForJavaPlugin.getDefault().openBundledFile("./data/thebigvoid/Galaxy.java")), null);
    helper.addSourceFile("thebigvoid", "GasGiant.java", getFileContent(DAForJavaPlugin.getDefault().openBundledFile("./data/thebigvoid/GasGiant.java")), null);
    helper.addSourceFile("thebigvoid", "ILawsOfTheUniverse.java", getFileContent(DAForJavaPlugin.getDefault().openBundledFile("./data/thebigvoid/ILawsOfTheUniverse.java")), null);
    helper.addSourceFile("thebigvoid", "INonSolidObject.java", getFileContent(DAForJavaPlugin.getDefault().openBundledFile("./data/thebigvoid/INonSolidObject.java")), null);
    helper.addSourceFile("thebigvoid", "Planet.java", getFileContent(DAForJavaPlugin.getDefault().openBundledFile("./data/thebigvoid/Planet.java")), null);
    helper.addSourceFile("thebigvoid", "StellarObject.java", getFileContent(DAForJavaPlugin.getDefault().openBundledFile("./data/thebigvoid/StellarObject.java")), null);
    helper.addSourceFile("thebigvoid", "Universe.java", getFileContent(DAForJavaPlugin.getDefault().openBundledFile("./data/thebigvoid/Universe.java")), null);
  }
View Full Code Here

//    parser.parseProject(project, null);
    aModel = parser.getModel();
  }

  protected static void setUpProject1() throws CoreException, IOException{
    JavaProjectHelper helper = new JavaProjectHelper();
    helper.createProject("TestProject1", "bin", null);
    helper.addStandartSourceFolder(null);
    helper.addPackage("testPackage", null);
   
    helper.addSourceFile("testPackage", "Base.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Base.java")), null);
    helper.addSourceFile("testPackage", "IBase.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/IBase.java")), null);
    helper.addSourceFile("testPackage", "InnerAnonym.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/InnerAnonym.java")), null);
    helper.addSourceFile("testPackage", "Sum.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Sum.java")), null);
    helper.addSourceFile("testPackage", "Variables.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Variables.java")), null);
  }
View Full Code Here

    helper.addSourceFile("testPackage", "Sum.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Sum.java")), null);
    helper.addSourceFile("testPackage", "Variables.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Variables.java")), null);
  }
 
  protected static void setUpProject2() throws CoreException, IOException{
    JavaProjectHelper helper = new JavaProjectHelper();
    helper.createProject("TestProject2", "bin", null);
    helper.addStandartSourceFolder(null);
    helper.addPackage("testPackage.ae", null);
   
    helper.addSourceFile("testPackage.ae", "Test.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/ae/Test.java")), null);
  }
View Full Code Here

     *
     * @throws CoreException
     * @throws IOException
     */
    public static void setUpProject() throws CoreException, IOException{
        JavaProjectHelper helper = new JavaProjectHelper();
        helper.createProject("TestProject1", "bin", null);
        helper.addStandartSourceFolder(null);
        helper.addPackage("testPackage", null);
        helper.addPackage("testPackage.ae", null);
   
        helper.addSourceFile("testPackage.ae", "SimpleTemplate.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/ae/SimpleTemplate.java")), null);
        helper.addSourceFile("testPackage.ae", "UseTemplates.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/ae/UseTemplates.java")), null);
        helper.addSourceFile("testPackage", "IBase.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/IBase.java")), null);
        helper.addSourceFile("testPackage", "Base.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Base.java")), null);
        helper.addSourceFile("testPackage.ae", "IImplementTemplate.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/ae/IImplementTemplate.java")), null);
        helper.addSourceFile("testPackage.ae", "ImplementTemplate.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/ae/ImplementTemplate.java")), null);
    }
View Full Code Here

TOP

Related Classes of org.evolizer.core.util.projecthandling.JavaProjectHelper

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.