To create an EGL source file that contains an EGL service part, do as follows:
- Identify a project or folder to contain the file. You must create a project
or folder if you do not already have one.
- In the workbench, click File > New > Service. The New EGL Service
Part wizard opens
- In the Source folder field, select a source folder
to hold the new file.
- In the Package field, select a package to hold
the new file.
- In the EGL source file name field, type a name
for the new file.
Since the name of the new service will be identical to
the name of the file, type a name that adheres to EGL part name conventions.
- If you want the new service part to implement any EGL interface parts,
follow these steps:
- Click Add. The Implemented Interfaces Selection
window opens.
- In the Choose interfaces field, type a search string.
- A question mark (?) represents any one character
- An asterisk (*) represents a series of any characters
The interface parts that match the search string are listed under Matching
parts.
- Click the interface part you want the service part to implement.
- Click Add.
- When you are finished choosing interface parts, click OK.
The interface parts you chose are listed in the Implements
Interfaces field. You can remove an interface part by clicking
it and then clicking Remove.
- New service parts can include functions that call an EGL called program.
If you want the new service part to have functions that call an EGL called
program, follow these steps:
- Click Show Advanced.
- Click the Add button next to Basic Called
Programs. The Basic Called Program Selection window opens.
- In the Choose Programs field, type a search string.
- A question mark (?) represents any one character
- An asterisk (*) represents a series of any characters
The programs that match the search string are listed under Matching
parts.
- Click the program name.
- Click Add.
- When you are finished choosing programs, click OK.
The programs you chose are listed in the Basic Called Programs field.
You can remove an interface part by clicking it and then clicking Remove.
For each of the programs in this field, the new service part will have a function
that calls the program.
- Click Finish.