Class EnginesContextUtil

java.lang.Object
com.pnfsoftware.jeb.core.EnginesContextUtil

public class EnginesContextUtil extends Object
Utility routines for JEB Engines context.
  • Constructor Details

    • EnginesContextUtil

      public EnginesContextUtil()
  • Method Details

    • getMainProject

      public static IRuntimeProject getMainProject(IEnginesContext engctx)
      Retrieve the main project.
      Parameters:
      engctx - JEB engines context
      Returns:
      the main project, null if no project is opene
    • createNewProjectFromFile

      public static IRuntimeProject createNewProjectFromFile(IEnginesContext engctx, File file) throws IOException
      Process a file in a newly-created JEB project.
      Parameters:
      engctx - JEB engines context
      file - the artifact file to be processed
      Returns:
      the created project, containing a single file artifact, and units and sub-units resulting form the initial processing
      Throws:
      IOException