Transformation view

A view is a visual component of an Eclipse perspective that displays information to a user. For more information on perspectives, see The Host Access perspective. Each ZIETrans rich client application contributes a view, which extends from the base com.ibm.hats.rcp.ui.views.TransformationView class, to the Eclipse environment it is running in. The transformation view is used by a user to interact with a ZIETrans rich client application.

Table 1 lists the methods of your application’s transformation view class can be overridden.
Table 1. Transformation view methods
Method Description
createViewActions() Creates actions for the view's menu.
Note: After actions are created, they must then be registered. See Extending the transformation view's menu for more information.
createKeyboardActions() Creates keyboard action classes for all known ZIETrans keyboard functions registered in the plugin.xml of the com.ibm.hats.rcp.runtime.extension plug-in project. Once keyboard actions are created, each is registered with the IKeyBindingService of the workbench window by the registerKeyboardActions() method.
getApplicationKeypadDisplayInfo() Controls which buttons to display in the application keypad area of the view's toolbar. By default, the application's settings are read to determine what keys to display. You can override this method in your transformation view class if you need to calculate what is displayed. This method has no affect if the view's toolbar is hidden.
getHostKeypadDisplayInfo() Controls which keys to display in the host keypad area of the view, and indicates how the keys are displayed. By default, the application's settings are read to determine which keys to display. You can override this method in your transformation view class if you need to calculate what is displayed.
getOiaDisplayInfo() Indicates what information to display in the OIA of the transformation view. By default, the application's settings are read to determine what to display. You can override this method in your transformation view class if you need to calculate what is displayed.
getToolbarDisplayInfo() Indicates whether the view's toolbar is displayed. If displayed, this method also indicates how buttons are rendered on the toolbar. By default, the application's settings are read to determine how the toolbar is presented. You can override this method in your transformation view class.
shouldAutoStart() Indicates whether the application should connect automatically when this view is opened.
Note: If you need to override how the application keypad, host keypad, OIA, or toolbar is displayed for a specific transformation, override the appropriate method in the transformation class, not in the transformation view class. Only override these methods in the transformation view class if you need to programmatically alter how these areas are displayed. See Customizing the host keypad for an example of overriding how the host keypad is displayed for a specific transformation.

See the ZIETrans Rich Client API Reference for more information on these methods.