Implementing a value editor for Rule Designer

You use a value editor to provide a custom graphical interface for your business-specific BOM types.

About this task

After you associated a BOM class with a value editor key (see Associating a value editor with a BOM type), you can implement a value editor for Rule Designer , and then create a Rule Designer plug-in with a value editor extension point.

Note:

The following procedure describes how to create a value editor for Abstract Windows Toolkit (AWT) editors. You can also create a value editor for Standard Windows Toolkit (SWT) editors by using the ilog.rules.brl.value.editor.IlrSWTValueEditorComposite and ilog.rules.brl.value.editor.IlrSWTValueEditorDialog classes.

An SWT implementation works only for the Intellirule editor.

Procedure

To implement a value editor for Rule Designer:

  1. Extend the class IlrAWTValueEditor.
  2. Create a plug-in project that depends on the plug-in: ilog.rules.studio.model.brl.

    For help with creating a plug-in project, refer to Creating a plug-in project.

  3. In this plug-in, create an extension for ilog.rules.studio.model.brl.valueEditors.

    For help with defining a plug-in extension, refer to Defining a plug-in extension.

  4. In the extension point, set these attributes:
    • Use the key attribute to specify the name of the key you used for the property valueEditor.

    • Use the class attribute to specify the fully qualified name of the value editor class.

  5. Put the value editor class in the plug-in project.
  6. Deploy the plug-in.

    For help with deploying a plug-in, refer to Deploying a plug-in.

Results

You can now use the value editor in Rule Designer.