You can implement a property editor to provide a custom
graphical interface for all properties of a specific type.
About this task
When you implement a custom editor, you can associate
the implementation with all properties of a specific type.
Procedure
To integrate the implementation of a custom editor
for all properties of a specific type:
- Create a plug-in project that depends on the plug-in: ilog.rules.studio.ui.
For hep with creating a plug-in project, see Creating a plug-in project.
- Define a custom property editor by implementing the Eclipse
class CellEditor.
- 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.
- In the extension point, set these attributes:
For example, to assign the editor IlrBoolCellEditor to
all properties of the type EBoolean, you specify
the extension as follows:
<extension point="ilog.rules.studio.ui.propertyEditors">
<propertyEditor
target="EBoolean"
cellEditorClass=
"ilog.rules.studio.brm.ui.propertysheet.editors.IlrBooleanCellEditor">
</propertyEditor>
</extension>
- Save the plug-in project.
- Deploy the plug-in.
For help with deploying
a plug-in, see Deploying a plug-in.
Results
Your custom property editor for all properties of a given
type is now saved, built, and deployed to your Rule
Designer
installation.