import

The EGL import statement identifies a set of parts that are in a specified package, and allows you to reference the imported parts as if they were in the same package as the file containing the import statement. If the statement identifies a fully qualified part name, it is called a single part import.

You can use the wildcard character (*) to import any referenced parts within a given package, as in the following example:
import com.companyb.crmpackage.*;

This is called an on demand import; parts are imported only as needed.

You can also import packages from outside your current project. For more information, refer to the EGL Generation Guide.

To understand how EGL resolves potential conflicts between part names, see EGL part resolution rules.

Syntax

Syntax diagram for core import statement
packageName
This is the name of the package to search for the requested part. You cannot import parts from the default package.
partName
The name of the part to be imported. You can replace this name with an asterisk to import all parts as needed.

Feedback