AlfImporter importer = new AlfImporter(modelDirectory, progressStatus);
Path path = Paths.get(modelDirectory, modelFileName);
if (importer.parse(path)) {
AlfActionUtil.executeSession("Import Alf", new Runnable() {
public void run() {
importer.compile(path);
}
});
}
// It is unsafe to use the AlfCompiler API at this point.
AlfActionUtil.resetActiveProject();
// It is safe to use the AlfCompiler API from here on... |