The EGL import statement provides access to the parts in a second, named package. The import statement is used in two ways:
import myPkg.MyProgram;
import myPkg.*;
The example makes available all the parts in the myPkg package:
An import statement can give access to parts that are in another package repository, which is a directory or compressed file that holds one or more packages. Access requires that you reference the package repository in the EGL build path, which is a list of repositories. If you are working in batch mode, you set the list by coding the generation command; in particular, the command's eglpath parameter.