Create Interface
The Add Interface SmartGuide lets you create a new
interface or add an existing one from the repository.
To create a new interface:
- In the Project field, provide the name of a project to contain the new
interface. This can be a new name, in which case the SmartGuide creates the project before
it creates the interface. Alternatively, you can select an existing project. Click Browse
to choose from a list of projects in the workspace.
- Likewise provide a new or existing package name for the interface in the Package
field.
- Select the Create a new interface radio button.
- Enter a name for the interface.
- If the interface extends other interfaces, add them to the extended interfaces list by
clicking the Add button and selecting from interfaces in the workspace.
To remove an interface from this list, select it and click Remove.
- If you want to open an interface browser on the interface once it has been generated,
enable the Browse the interface when finished check box.
- Click Next to specify additional options, including import statements
and access modifier, or click Finish.
To add an interface from the repository:
- In the Project field, provide the name of a project to contain the new
interface. This can be a new name, in which case the SmartGuide creates the project before
it creates the interface. Alternatively, you can select an existing project. Click Browse
to choose from a list of projects in the workspace.
- Likewise provide a new or existing package name for the interface in the Package
field.
- Select the Add interfaces from the repository field.
- The Available interfaces list shows the interfaces that are available
for the project and package. Select one by enabling its check box. Note:
Only those interfaces that were created for the selected package can be added
back to the package.
- The Available editions list shows the editions of the selected
interface in the repository. Select one by enabling its check box.
- If needed, select more than one interface to add to the workspace by repeating the two
previous steps.
- Click Finish.
