Class EnginesContextUtil

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

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

    • getMainProject

      public static IRuntimeProject getMainProject(IEnginesContext engctx)
      Retrieve the main project.
      Parameters:
      engctx - JEB engines context
      Returns:
      the main project, or null if no project is open
    • 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 from the initial processing
      Throws:
      IOException - on project creation or artifact-processing error