ShowTable of Contents
Lotus Expeditor Client for Desktop users may access locally running portlets. APAR LO53837 allows developers to decorate a portlet's title bar with an icon; this is similar in appearance to Eclipse views used throughout Expeditor.
Adding an Icon
Icons may be added through two methods which have slightly different use cases.
When using the com.ibm.rcp.portletviewer.portlets extension point to add a portlet as a view in a perspective, APAR LO5383 adds an icon parameter to the portletData. The result is an icon in the view's title bar.
Side Shelf Portlets
Portlets like any other Eclipse view can be added to the side shelf. To display an icon within the side shelf portlet, a preference must be added to the portlet.xml bundled within the plugin.
<!-- references the plugin's image file -->
Sample code is being moved. This article will be updated when posting is complete.
Provides the portlet to the Expeditor client. The portlet.xml demonstrated above is contained within this plugin.
Creates a launch item to view the portlet. The extension point demonstrated above is contained within this plugin.
Provides a composite application that contains the portlet within the side shelf.
Running the Sample
Access the "Sample : Popup Portlet" launch item in the Open menu to demonstrate the com.ibm.rcp.portletviewer.portlets extension. Open the PortletSideShelf.ca using File -> Open -> Composite Application to demonstrate the side shelf portlet.