IBM WebSphere Multichannel Bank Transformation Toolkit, Version 7.1

Customizing a property editor

IBM® WebSphere® Multichannel Bank Transformation Toolkit provides several types of property editors to edit widget properties. The property editors can be used to edit proper types that are listed in the Table 3 table in the Defining a widget topic. If there is another type of property such as Color, a technical developer must develop and register new property editor.

Implementing a property editor

WebSphere Multichannel Bank Transformation Toolkit follows the Eclipse framework of implementing a property editor. All property editors must extend org.eclipse.ui.views.properties.PropertyDescriptor. A technical developer can either use an existing property descriptor implementation of Eclipse or extend org.eclipse.ui.views.properties.PropertyDescriptor to implement their own property editor.

Furthermore, WebSphere Multichannel Bank Transformation Toolkit implements the com.ibm.btt.tools.xui.editor2.properties.desc.SelectionPropertyDescriptor abstract class for the convenience of a technical developer to implement the SelectList style property editor. When extending com.ibm.btt.tools.xui.editor2.properties.desc.SelectionPropertyDescriptor, a technical developer must override the protected String[] getSelections() method to return all possible options.

Registering a property editor

To enable customized property editor to be used in the XUI editor, technical developers must register the property editor as an extension point of plug-in.

To register a property editor, do the following steps:
  1. In the Extensions tab of plugin file, click Add to open the New Extension window, and then select com.ibm.btt.tools.xui.editor2.properties. Click Finish.
  2. Right-click com.ibm.btt.tools.xui.editor2.generator, and then click New > property.
  3. In the Extension Detail panel, enter the following required information:
    • type: the property type can be edited by the registered editor. The property type must be the same as the type that is specified in the widget definition .xml file. For more information on the widget definition .xml file, refer to the Defining a widget topic.
    • class: the implementation class of the property editor.


Feedback