return theModule->getApp()->selectionMgr();
}
+ SUIT_ResourceMgr*
+ GetResourceMgr( const SalomeApp_Module* )
+ {
+ return SUIT_Session::session()->resourceMgr();
+ }
_PTR(Study)
GetCStudy(const SalomeApp_Study* theStudy)
{
SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>
(SUIT_Session::session()->activeApplication());
- if (app && app->activeViewManager())
- return app->activeViewManager()->getActiveView();
+ if (app && app->desktop() )
+ return app->desktop()->activeWindow();
else
return NULL;
}