UNICOM® Digital Transformation Toolkit (UDTT™) supports a widget with a single action tab on the Properties panel. On the action tab, you can select the type of action and action details. You can extend the action and define more than one actions associated to a widget.
1 Add the following properties in the widget configuration file:
2 Add an extension that points to org.eclipse.ui.views.properties.tabbed.propertyTabs and org.eclipse.ui.views.properties.tabbed.propertySections for the UNICOM® Digital Transformation Toolkit (UDTT™) XUI editor, set com.ibm.btt.rcp.xui.editor2.XUIEditor as the contributorId field.
3 Add propertyTabs, for example, add "ActionTab01" and "ActionTab02", set other attributes like bellow, the afterTab is to define which tab do you want to put after.
4 Add propertySection, ActionSection01 and ActionSection02, set the customized class and filter for them.
ExtActionPropertySection01.java extends ActionPropertySection and overrides the getActionName() method.
public class ExtActionPropertySection01 extends ActionPropertySection{ @Override protected String getActionName() { if (getWidgetModel().getDefinition().getProperty("action_ext01") != null) { return "action_ext01"; }else { return super.getActionName(); } }
ExtActionSectionFilter01.java extends ActionSectionFilter and overrides isAvailableForAction(IWidgetModel widget).