AlfActionUtil.importFrom is a static method that takes a directory path (as a string) and a file name, and carries out the functionality of the Import From > Alf File command (see Importing Alf). That is, it does the following:
When the method completes, it is safe to continue to perform Alf compiler operations on the Project. Any parsing, constraint checking or mapping errors (but not IO exceptions) are reported to the MagicDraw Message Window.
AlfActionUtil.importFrom(modelDirectory, modelFileName); |