protected DockLayoutComposition replaceMultipleDockables( DockFrontendInternals frontend, CSettingAccess setting, DockLayoutComposition composition ){
if( composition == null ){
return null;
}
DockLayoutInfo info = composition.getLayout();
if( info != null ){
DockLayout<?> layout = info.getDataLayout();
if( layout != null ){
MultipleCDockable match = setting.findMatch( layout );
if( match != null ){
DockLayout<?> newLayout = new DockLayout<MultipleCDockable>( REPLACEMENT_FACTORY_ID, match );
DockLayoutInfo newInfo = new DockLayoutInfo( newLayout );
newInfo.setLocation( info.getLocation() );
info = newInfo;
}
}
}