/*
* Logic: if the current perspective is either the null on (first time
* use) or the layout is invalid then use the default perspective.
*/
PerspectiveManager perspectiveManager = ((JideApplicationPage)getPage()).getPerspectiveManager();
Perspective perspective = perspectiveManager.getCurrentPerspective();
if(perspective == NullPerspective.NULL_PERSPECTIVE ||
!LayoutManager.isValidLayout(dockableHolder.getDockingManager(), pageId, perspective)){
perspective = perspectiveManager.getDefaultPerspective();
}
perspective.switchPerspective(this, pageId, false);
}