Extending : Widget extension : Enabling a customized widget in the XUI editor : Importing a widget
  
Importing a widget
To enable a customized widget to be used in the XUI editor, a technical developer must add an extension point for the widget in the plugin.xml file in the extension plug-in project.
To import a widget
1 Open the plugin.xml file.
2 Click the Extensions tab, and then click Add. The New Extension window opens.
This graphic is described in the surrounding text.
3 In the Extension Point Filter field of the Extension points tab, enter com.ibm.btt, and then select com.ibm.btt.tools.xui.editor2.widgets. Click Finish.
4 In the All Extensions panel, right-click com.ibm.btt.tools.xui.editor2.widgets, and then click New > widget.
Note Click category to create a new widget category. The category is used to group widgets.
This graphic is described in the surrounding text.
5 On the Extension Element Details panel, enter detailed information for the widget.
In the Name field, enter a name for the widget. Because the name serves as the ID of the widget, it must be unique.
In the Label field, enter a display name for the widget. The label is displayed in the palette as the widget name. It supports NLS.
In the Icon field, select an image to display the widget in widget palette of XUI Editor. It is recommended that images in 16x16 pixels are used to ensure consistency with existing UDTT widgets.
In the Category field, enter the Category to which the widget belongs.
In the Config field, enter the file name for the widget definition .xml file. For more information on the widget definition .xml file, see Defining a widget.
In the Container field, specify whether the widget can contain other widgets. To enable the widget to contain other widgets, select true. If you do not require the widget to contain other widgets, select false.
In the Description field, enter a short description for the widget.
Go up to
Enabling a customized widget in the XUI editor