You can specify the layout of perspective by configuring an XML file, and then add the path of the XML file in plug-in editor. See the following screen capture of specifying the perspective layout:
Refer to BTT Rich Client Perspective Definition Items extension point description.
See the following example of a layout configuration file:
<perspectiveDef> <view id="com.ibm.btt.rcp.views.NavigatorView" relationship="left" ratio="1.0" refId="editarea" /> <folder id="integration" relationship="right" ratio="0.28" refId="com.ibm.btt.rcp.views.NavigatorView"> <page id="com.ibm.btt.rcp.views.WorkingAreaView:com.ibm.btt.rcp.sample.ExcelActivity" holder="true"/> <page id="com.ibm.btt.rcp.views.WorkingAreaView:com.ibm.btt.rcp.sample.website" holder="true"/> </folder> <folder id="workarea" relationship="bottom" ratio="0.4" refId="integration"> <page id="com.ibm.btt.rcp.views.WorkingAreaView:com.ibm.btt.rcp.sample.logo" holder="true" moveable="false" closeable="false"/> <page id="com.ibm.btt.rcp.views.WorkingAreaView:*" holder="true"/> </folder> </perspectiveDef>
Three tags are defined in this configuration file: view, folder and page. Page is a special view to hold in the folder. All the attributes are designed to map the Eclipse perspective layout definition.
Attributes in layout configuration files: