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