Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
MinimalApplicationSnippet.cpp
Go to the documentation of this file.
1
/*============================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center (DKFZ)
6
All rights reserved.
7
8
Use of this source code is governed by a 3-clause BSD license that can be
9
found in the LICENSE file.
10
11
============================================================================*/
12
14
berry::Display
*
display
=
berry::PlatformUI::CreateDisplay
();
15
16
wbAdvisor.reset(
new
berry::WorkbenchAdvisor
);
17
int
code
=
berry::PlatformUI::CreateAndRunWorkbench
(display, wbAdvisor.data());
18
19
// exit the application with an appropriate return code
20
return
code ==
berry::PlatformUI::RETURN_RESTART
? EXIT_RESTART : EXIT_OK;
code
int code
Definition:
MinimalApplicationSnippet.cpp:17
berry::WorkbenchAdvisor
Definition:
berryWorkbenchAdvisor.h:92
berry::PlatformUI::CreateDisplay
static Display * CreateDisplay()
Definition:
berryPlatformUI.cpp:41
berry::PlatformUI::RETURN_RESTART
static const int RETURN_RESTART
Definition:
berryPlatformUI.h:64
berry::Display
Definition:
berryDisplay.h:23
berry::PlatformUI::CreateAndRunWorkbench
static int CreateAndRunWorkbench(Display *display, WorkbenchAdvisor *advisor)
Definition:
berryPlatformUI.cpp:36
display
berry::Display * display
[MinimalApplicationClass_StartMethod]
Definition:
MinimalApplicationSnippet.cpp:14
Source
Examples
Plugins
org.mitk.example.gui.customviewer
documentation
doxygen
code_snippets
MinimalApplicationSnippet.cpp
Generated on Thu Mar 12 2020 10:23:38 for Medical Imaging Interaction Toolkit by
1.8.13