}
if( destination == null ){
throw new IllegalArgumentException( "destination is null" );
}
CDockFrontend frontend = control.getOwner().intern();
Setting layout = frontend.getSetting( source );
if( layout == null ){
throw new IllegalArgumentException( "no perspective registered with name '" + source + "'" );
}
frontend.setSetting( destination, layout );
frontend.delete( source );
if( source.equals( frontend.getCurrentSetting() )){
frontend.setCurrentSettingName( destination );
}
}