To support perspectives JYDocking provides the IPerspectiveFactory interface with the method #getPerspective(String id). This method has to return a Perspective instance for your views.
All relevant lines are highlighted. Press Run... button to start the example.