Implementing a custom editor for a specific property

You can implement a property editor to provide a custom graphical interface for a specific property.

About this task

When you implement a custom editor, you can associate the implementation with a specific property.

Procedure

To integrate the implementation of a custom editor for a specific property:

  1. Create a plug-in project that depends on the plug-in: ilog.rules.studio.ui.

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

  2. In this plug-in, define an extension for ilog.rules.studio.ui.propertyEditors.

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

  3. In the extension point, set these attributes:
    • Use the target attribute to specify the name of the property or the name of the key you used in the Editor Name property of that property

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

    For example, to associate the editor IlrScoreCellEditor with the property that has the Editor Name property set to myScoreEditor, you specify the extension as follows:

    
    <extension point="ilog.rules.studio.ui.propertyEditors">
       <propertyEditor 
          target="myScoreEditor"
          cellEditorClass=
           "ilog.rules.studio.brm.ui.propertysheet.editors.IlrScoreCellEditor">
       </propertyEditor>
    </extension>
    
  4. Save the plug-in project.
  5. Deploy the plug-in.

    For help with deploying a plug-in, see Deploying a plug-in.

Results

Your custom property editor for a specific property is now saved, built, and deployed to your Rule Designer installation.