You can define component properties with custom types, and provide edit controls for these properties on the Edit Composite Properties tab of the Composite Application Editor.
The com.ibm.rcp.ca.utils.properties extension point has a “type” element you can use to define a custom type for a component property. To add the element, perform the following steps.
- Right-click the extension and click New -> Type.
- In the type element, specify a type ID and name and reference the Java™ class for the type.
class must implement com.ibm.rcp.ca.utils.componentconfig.IComponentPreferenceType. It defines the edit control that will appear on the Edit Composite Properties tab and, optionally, a button, such as a browse button or a color picker. The edit control can be a composite that contains multiple controls. The following schematic shows the basic display layout for the edit control:
When you define a property with a custom type in the com.ibm.rcp.ca.utils.properties extension point, the property “typeId” attribute should reference the ID of the custom type.
Parent topic: Defining properties through an extension point
Defining properties through an extension point