If your application uses the default personality (com.ibm.rcp.platform.personality) or any personality using DefaultWorkbenchWindowAdvisor. you can control the width of various borders in perspectives in your Rich Client applications, either programmatically or through extension points in a branding plugin.
To control border widths in a branding plugin, complete the following steps:
- Add the following properties (with appropriate values) in a themes extension point in the plugin.xml for your branding plugin:
The height of the highlight bar, a horizontal separator displayed between the toolbar (or the application tab) and the main composite.com.ibm.rcp.platform.PAGE_SWITCHER_FORM_PADDING
The padding between the left- and righthand edges of the window and the adjacent parts in the perspective.com.ibm.rcp.platform.PAGE_SWITCHER_FORM_SASH_SIZE
The sash size (margin) between the view or editor parts and the left or right sidebar.com.ibm.rcp.ui.SASH_SIZE
The sash size between the view and editor parts in the perspective.
For all of the above properties, values greater than or equal to zero set the size (in pixels) accordingly; values less than zero set the size to the default.
The following snippet shows these values in plugin.xml. All sizes are set to 10 pixels, except for com.ibm.rcp.ui.SASH_SIZE, which is set to the default size.
- Specify the theme in plugin_customization.ini in your branding plugin:
The graphic below shows where these parameters are applied.
For more information about working with themes programmatically, see Using themes
Parent topic: Using personalities: XPD622