Package com.pnfsoftware.jeb.core
Class EnginesContextUtil
java.lang.Object
com.pnfsoftware.jeb.core.EnginesContextUtil
Utility routines for
JEB Engines context.-
Method Summary
Modifier and TypeMethodDescriptionstatic IRuntimeProjectcreateNewProjectFromFile(IEnginesContext engctx, File file) Process a file in a newly-created JEB project.static IRuntimeProjectgetMainProject(IEnginesContext engctx) Retrieve the main project.
-
Method Details
-
getMainProject
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 contextfile- 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
-