text: /*===================================================================
  
  The Medical Imaging Interaction Toolkit (MITK)
  
  Copyright (c) German Cancer Research Center,
  Division of Medical and Biological Informatics.
  All rights reserved.
  
  This software is distributed WITHOUT ANY WARRANTY; without
  even the implied warranty of MERCHANTABILITY or FITNESS FOR
  A PARTICULAR PURPOSE.
  
  See LICENSE.txt or http://www.mitk.org for details.
  
  ===================================================================*/
  
  #include "QmitkDiffusionImagingAppApplication.h"
  
  #include <berryPlatformUI.h>
  
  #include "QmitkDiffusionImagingAppWorkbenchAdvisor.h"
  
  QVariant QmitkDiffusionImagingAppApplication::Start(berry::IApplicationContext*)
  {
    berry::Display* display = berry::PlatformUI::CreateDisplay();
  
    int code = berry::PlatformUI::CreateAndRunWorkbench(display, new QmitkDiffusionImagingAppWorkbenchAdvisor());
  
    // exit the application with an appropriate return code
    return code == berry::PlatformUI::RETURN_RESTART
                ? EXIT_RESTART : EXIT_OK;
  }
  
  void QmitkDiffusionImagingAppApplication::Stop()
  {
  
  }
  