Showing the perspective bar
The perspective bar, which resides near the top of the workbench
window, provides quick access to perspectives that are already open,
and provides the ability for end users to open a new perspective.
Showing the perspective bar is a quick and easy way to allow your
end users to work with different perspectives. To show the perspective
bar:
- From the Navigator or Package Explorer view, open the HostAccessWorkbenchWindowAdvisor class located in the hostaccess package of the com.ibm.hats.rcp.runtime.extension plug-in project.
- Find the preWindowOpen() method and
update it to call the setShowPerspectiveBar method of the
IWorkbenchWindowConfigurer object. to true:
public void preWindowOpen() { IWorkbenchWindowConfigurer configurer = getWindowConfigurer(); configurer.setShowPerspectiveBar(true); ... }