Showing posts with label perspective.. Show all posts
Showing posts with label perspective.. Show all posts

Thursday, January 26, 2012

Programmatically Changing Eclipse Perspectives

Use the code below to change perspectives in a Eclipse plug-in or RCP application.

try 
{
   PlatformUI.getWorkbench().showPerspective("perspective.id",       
         PlatformUI.getWorkbench().getActiveWorkbenchWindow());
} 
catch (WorkbenchException e) 
{
   e.printStackTrace();
}