Defining Java Classes

You can use the Contents tab to define the Java classes used by the extension and made available to Isight. The Contents tab displays the extension’s core classes as defined by the SDK (Software Development Kit). You can add new classes and edit existing classes.

This task shows you how to:

Add Java Classes

You add classes to your Isight extension via the Contents tab by specifying the new class’s name, package, and type options.

  1. Click the Contents tab on the right side of the Isight Developer Perspective.

  2. Click Add.

    The Isight Class dialog box appears.

  3. Select the simple implementation of the API class. For example, select Basic Component Editor if you are creating a component editor.

  4. Click Next.

  5. In the Class Name text box, type a name for the class.

  6. In the Package text box, specify a package for the class.

  7. Click Finish.

    You return to the Contents tab, and the new class is added to the list of existing classes.

  8. Click the newly created class to select it.

    Additional options appear on the right side of the tab.

  9. Use the Type list to determine how the selected class will be used by this extension in Isight. For example, you can specify that the class will be an editor (as well as defining the specific type of editor), executor, handler, etc.

  10. Click to save your changes to the extension.

Edit Java Classes

Java classes that already existing in your extension can be edited either by directly accessing the associated Java code or by altering the options displayed on the Contents tab.

  1. Click the Contents tab on the right side of the Isight Developer Perspective.

  2. Select the class you want to edit from the list of classes. The classes are divided into subsections (Handler, Runtime, Editor, etc.).

    The current settings for the selected class appear to the right of the list of classes.

  3. To edit the class Java code directly, click Edit.

    A new Eclipse tab displays the associated Java code.

  4. If desired, change how the class will be used by this extension in Isight using the Type list.

  5. If desired, change the class file associated with the specified type by clicking Browse and selecting a different, existing class. This option is useful if you are working with multiple versions of a class and need to switch between versions.

  6. Click to save your changes to the extension.