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:
- Create a plug-in project that depends on the plug-in: ilog.rules.studio.ui.
- In this plug-in, define an extension for ilog.rules.studio.ui.propertyEditors.
- 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>
- Save the plug-in project.
- Deploy the plug-in.
Results
Your custom property editor for a specific property is
now saved, built, and deployed to your Rule Designer installation.