Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryPlatformUI.h>
Static Public Member Functions | |
static QString | PLUGIN_ID () |
static int | CreateAndRunWorkbench (Display *display, WorkbenchAdvisor *advisor) |
static Display * | CreateDisplay () |
static IWorkbench * | GetWorkbench () |
static bool | IsWorkbenchRunning () |
static TestableObject::Pointer | GetTestableObject () |
Static Public Attributes | |
static const QString | XP_WORKBENCH |
static const QString | XP_VIEWS |
static const int | RETURN_OK |
static const int | RETURN_RESTART |
static const int | RETURN_UNSTARTABLE |
static const int | RETURN_EMERGENCY_CLOSE |
The central class for access to the BlueBerry Platform User Interface. This class cannot be instantiated; all functionality is provided by static methods.
Features provided:
Definition at line 44 of file berryPlatformUI.h.
|
static |
Creates the workbench and associates it with the given display and workbench advisor, and runs the workbench UI. This entails processing and dispatching events until the workbench is closed or restarted.
This method is intended to be called by the main class (the "application"). Fails if the workbench UI has already been created.
Use createDisplay to create the display to pass in.
Note that this method is intended to be called by the application (org.blueberry.core.boot.IPlatformRunnable
). It must be called exactly once, and early on before anyone else asks getWorkbench()
for the workbench.
display | the display to be used for all UI interactions with the workbench |
advisor | the application-specific advisor that configures and specializes the workbench |
Definition at line 40 of file berryPlatformUI.cpp.
Referenced by QmitkDiffusionImagingAppApplication::Start().
|
static |
Creates the Display
to be used by the workbench. It is the caller's responsibility to dispose the resulting Display
, not the workbench's.
Definition at line 45 of file berryPlatformUI.cpp.
Referenced by QmitkDiffusionImagingAppApplication::Start().
|
static |
Returns the testable object facade, for use by the test harness.
IMPORTANT: This method is only for use by the test harness. Applications and regular plug-ins should not call this method.
Definition at line 69 of file berryPlatformUI.cpp.
|
static |
Returns the workbench. Fails if the workbench has not been created yet.
Definition at line 51 of file berryPlatformUI.cpp.
Referenced by QmitkViewNavigatorWidget::CloseAllPerspectives(), QmitkDataManagerView::CreateQtPartControl(), QmitkDefaultDropTargetListener::DropEvent(), QmitkViewNavigatorWidget::FillTreeList(), mitk::WorkbenchUtil::GetDefaultEditor(), mitk::WorkbenchUtil::GetEditorDescriptor(), berry::AbstractUICTKPlugin::GetWorkbench(), QmitkViewNavigatorWidget::ItemClicked(), QmitkPreferencesDialog::OnPreferencesTreeItemSelectionChanged(), mitk::WorkbenchUtil::OpenEditor(), QmitkExtWorkbenchWindowAdvisor::PostWindowCreate(), QmitkViewNavigatorWidget::ResetCurrentPerspective(), QmitkFileExitAction::Run(), SafeHandleNavigatorView(), QmitkFunctionalityCoordinator::Start(), berry::UITestApplication::Stop(), QmitkFunctionalityCoordinator::Stop(), and berry::UITestCase::UITestCase().
|
static |
Returns whether createAndRunWorkbench has been called to create the workbench, and the workbench has yet to terminate.
Note that this method may return true
while the workbench is still being initialized, so it may not be safe to call workbench API methods even if this method returns true. See bug 49316 for details.
true
if the workbench has been created and is still running, and false
if the workbench has not yet been created or has completed Definition at line 62 of file berryPlatformUI.cpp.
Referenced by QmitkFunctionalityCoordinator::Stop().
|
static |
Definition at line 30 of file berryPlatformUI.cpp.
Referenced by berry::ExtensionFactory::Create(), and berry::ExtensionFactory::SetInitializationData().
|
static |
Return code (value 3) indicating that the workbench was terminated with a call to IWorkbenchConfigurer::emergencyClose.
Definition at line 86 of file berryPlatformUI.h.
|
static |
Return code (value 0) indicating that the workbench terminated normally.
Definition at line 58 of file berryPlatformUI.h.
|
static |
Return code (value 1) indicating that the workbench was terminated with a call to IWorkbench.restart
.
Definition at line 68 of file berryPlatformUI.h.
Referenced by QmitkDiffusionImagingAppApplication::Start().
|
static |
Return code (value 2) indicating that the workbench failed to start.
Definition at line 77 of file berryPlatformUI.h.
|
static |
Definition at line 50 of file berryPlatformUI.h.
|
static |
Definition at line 49 of file berryPlatformUI.h.