Perspective perspective = perspectiveManager.getCurrentPerspective();
if(perspective == NullPerspective.NULL_PERSPECTIVE ||
!LayoutManager.isValidLayout(dockableHolder.getDockingManager(), pageId, perspective)){
perspective = perspectiveManager.getDefaultPerspective();
}
perspective.switchPerspective(this, pageId, false);
}
}