code: public void switchPerspective(JideApplicationWindow window, String pageId, boolean saveCurrent){
  		DockingManager manager = window.getDockingManager();
  		PerspectiveManager perspectiveManager = 
  			((JideApplicationPage)window.getPage()).getPerspectiveManager();
  		if(saveCurrent){
  			LayoutManager.savePageLayoutData(manager, pageId, perspectiveManager.getCurrentPerspective().getId());
  		}
  		if(!LayoutManager.loadPageLayoutData(manager, pageId, this)){
  			display(manager);
  		}
  		perspectiveManager.setCurrentPerspective(this);
  	}
docs: /*
  To switch a perspective is a three stage process:
  i) Possibly save the layout of the current perspective
  ii) Change the layout to that of the new perspective using an
  existing layout if it exists or the display definition if not
  iii) Set the current perspective in the perspective manager to
  the new one.