| 43 | } |
| 44 | |
| 45 | IWorkbench* |
| 46 | PlatformUI::GetWorkbench() |
| 47 | { |
| 48 | if (Workbench::GetInstance() == nullptr) |
| 49 | { |
| 50 | // app forgot to call createAndRunWorkbench beforehand |
| 51 | throw Poco::IllegalStateException("Workbench has not been created yet."); |
| 52 | } |
| 53 | return Workbench::GetInstance(); |
| 54 | } |
| 55 | |
| 56 | bool |
| 57 | PlatformUI::IsWorkbenchRunning() |
no outgoing calls