Creating an EGL external type

The IDE provides a fast way for you to embed an external capability that is already available to your EGL project.

First, ensure that any Java code that you want to embed is either in your project or is available on the Java build path of your project. To access the Java build path, do as follows:
  1. Right click your project.
  2. Click Properties.
  3. At the Java Build Path pane, click Add. The Required Project Selection dialog is displayed.
  4. Select the projects of interest and click OK. The Java Build Path pane is made available again.
  5. Click OK.
Here are the steps for creating an EGL external type:
  1. Right click a package and do the fastest process available:
    • Click New > External Type; or
    • Click New > Other, expand EGL, and click ExternalType.

    The New External Type wizard is displayed.

  2. Specify the file name.
  3. Click External Type from Java Type. The External Type from Java Type page is displayed.
  4. Click Browse to display the Choose a Java Type dialog. Type the initial characters of the Java class or interface name and double click a listed name.
  5. Back at the External Type from Java Type page, select the type. Alternatively, you can expand the type and select the public fields, methods, and constructors to include in your external type.
  6. You can click Next to preview the output, which you can change only by returning to a previous page or by updating the file when the file is created.
  7. Click Finish. The IDE creates an external type for you to customize, and the procedure ends.
For details on the external type for Java, see the following topic:
You can create an external type for JavaScript, although the wizard is not yet available. For details, see the following topic: