The Host Access perspective

A default perspective class, hostaccess.perspectives.MainPerspective, has been provided for you in the com.ibm.hats.rcp.runtime.extension plug-in project. This class extends from the ZIETrans com.ibm.hats.rcp.ui.Perspective class which implements the Eclipse perspective interface, org.eclipse.ui.IPerspectiveFactory. The default title for this perspective is Host Access, although you can change the title by modifying the plugin_en.properties file in the com.ibm.hats.rcp.runtime.extension plug-in project.
Note: You will need to modify each of the plugin_xx.properties files for each language you will be supporting.
Table 1 lists the methods that can be overridden in your perspective class.
Table 1. Methods to override perspective class
Method Description
addApplicationsView(IPageLayout) Adds the ZIETrans applications view to the perspective.
createTransformationViewsPlaceholder(IPageLayout) Creates a placeholder for the ZIETrans transformation views.
createPrintJobViewsPlaceholder(IPageLayout)</code> Creates the placeholder area for the 3270 and 5250 print jobs view.
addPrintActionsSet(IPageLayout)</code> Adds the print action set (defined in the plugin.xml of the com.ibm.hats.rcp.rntime.extension plug-in) to the perspective.

To change the default perspective first opened by the Host Access runtime application, edit the HostAccessWorkbenchAdvisor source file in com.ibm.hats.rcp.runtime.extension plug-in project, and change the PERSPECTIVE_ID to your custom perspective ID. See HostAccessWorkbenchAdvisor for more information about the Host Access perspective.

The following is an example showing how the Host Access perspective is registered in the plug-in descriptor for com.ibm.hats.rcp.runtime.extension:
<extension 
     point="org.eclipse.ui.perspectives">
     <perspective
            name="%PERSPECTIVE_TITLE"
            icon="images/applications_view.gif"
            class="hostaccess.perspectives.MainPerspective"
            id="hostaccess.perspectives.main">
      </perspective>
</extension>     

You are not required to use the Host Access perspective, although it provides your end users with easy access to the ZIETrans applications you have provided them. You can use the Host Access perspective as a starting point, or start from scratch and develop a perspective that better fits the needs of your users.

By default, the Host Access perspective includes the Applications view. See Applications view for more information on this view.

See the Javadoc API for more information on the com.ibm.hats.rcp.ui.Perspective class