for( int i = history.length-1; i >= 0; i-- ){
Dockable next = history[i];
if( next instanceof CommonDockable ){
CDockable cdockable = ((CommonDockable)next).getDockable();
if( cdockable.getExtendedMode() != ExtendedMode.MINIMIZED ){
getController().setFocusedDockable( cdockable.intern(), true );
}
}
}
}
}