/**
* Creates a new mode.
* @param control the owner of this mode
*/
public CExternalizedMode( CControl control ){
externalize = new KeyedLocationModeActionProvider( CDockable.ACTION_KEY_EXTERNALIZE, new CExternalizeAction( control ));
unmaximize = new KeyedLocationModeActionProvider( CDockable.ACTION_KEY_UNMAXIMIZE_EXTERNALIZED, new CUnmaximizeExternalizedAction( control ));
setActionProvider( new MappingLocationModeActionProvider() {
protected LocationModeActionProvider getProvider( Dockable dockable, Mode<Location> currentMode, DockActionSource currentSource ){
if( currentMode instanceof CMaximizedMode ){