Wednesday, 30 December 2015

Show Perspective switch bar in Eclipse RCP application


Show Perspective switch bar in Eclipse RCP application

Open file ApplicationWorkbenchWindowAdvisor.java in your plug-in project.

Override the method, preWindowOpen and as shown below, setShowPerspectiveBar as True.


 @Override
    public void preWindowOpen ()
    {
        IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
        configurer.setShowPerspectiveBar( true );
    }


Run your RCP application, and on Right side top, you will be able to see perspective Switch.

Following Books are good to refer :