{
switch(myViewRepresentation){
case VISU::View::OBJECTBROWSER:
- myApplication->dockWindow( SalomeApp_Application::WT_ObjectBrowser )->setVisible( myState );
+ myApplication->getWindow( SalomeApp_Application::WT_ObjectBrowser )->setVisible( myState );
break;
case VISU::View::PYTHON:
- myApplication->dockWindow( SalomeApp_Application::WT_PyConsole )->setVisible( myState );
+ myApplication->getWindow( SalomeApp_Application::WT_PyConsole )->setVisible( myState );
break;
case VISU::View::MESSAGES:
- myApplication->dockWindow( SalomeApp_Application::WT_LogWindow )->setVisible( myState );
+ myApplication->getWindow( SalomeApp_Application::WT_LogWindow )->setVisible( myState );
break;
case VISU::View::VIEWER:
{